mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-19 07:08:29 -04:00
GCS_MAVLInk: MissionItemProtocol_Waypoints: remove unnessisary sets on ret_packet
This commit is contained in:
parent
8b6f58b024
commit
9b39ab0a6d
@ -97,13 +97,8 @@ MAV_MISSION_RESULT MissionItemProtocol_Waypoints::get_item(const GCS_MAVLINK &_l
|
|||||||
// set packet's current field to 1 if this is the command being executed
|
// set packet's current field to 1 if this is the command being executed
|
||||||
if (cmd.id == (uint16_t)mission.get_current_nav_cmd().index) {
|
if (cmd.id == (uint16_t)mission.get_current_nav_cmd().index) {
|
||||||
ret_packet.current = 1;
|
ret_packet.current = 1;
|
||||||
} else {
|
|
||||||
ret_packet.current = 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// set auto continue to 1
|
|
||||||
ret_packet.autocontinue = 1; // 1 (true), 0 (false)
|
|
||||||
|
|
||||||
return MAV_MISSION_ACCEPTED;
|
return MAV_MISSION_ACCEPTED;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user