修正当航点切换时,type会变回默认值3的问题

This commit is contained in:
hm
2022-04-10 17:44:35 +08:00
parent 22cc465986
commit 786edf906e
7 changed files with 35 additions and 22 deletions
+2
View File
@@ -783,6 +783,8 @@ void WayPointItem::SetDefault(double lat,double lng,float alt,uint16_t seq)
property.autocontinue = true;
property.mission_type = 3;
qDebug() << "waypoint item set default" << property.mission_type;
if(property.command > MAV_CMD::MAV_CMD_NAV_LAST)
{
qDebug() << "is cmd point";