界面可以跟随改变,已经添加了设置函数

This commit is contained in:
2020-04-27 18:08:03 +08:00
parent 87a189eb3d
commit 8d3a756f92
5 changed files with 250 additions and 353 deletions
+7
View File
@@ -427,6 +427,9 @@ void WayPointItem::RefreshPos()
{
core::Point point = map->FromLatLngToLocal(coord);
SetLat(coord.Lat());
SetLng(coord.Lng());
this->setPos(point.X(), point.Y());
emit localPositionChanged(this->pos(), this);
}
@@ -464,8 +467,12 @@ void WayPointItem::SetDefault(double lat,double lng,float alt,uint16_t seq)
property.y = lng * 10e5;
property.z = alt;
property.seq = seq;
property.group = 0;
property.command = MAV_CMD::MAV_CMD_NAV_WAYPOINT;
property.frame = MAV_FRAME::MAV_FRAME_GLOBAL;
property.current = 0;
property.autocontinue = 0;
property.mission_type = 0;
//...
}