界面可以跟随改变,已经添加了设置函数
This commit is contained in:
@@ -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;
|
||||
//...
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user