mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-23 08:13:56 -04:00
AP_Mission: updated comment
altitude and lat/lng are all used
This commit is contained in:
parent
6afb3895c0
commit
1026e7df45
@ -536,7 +536,7 @@ bool AP_Mission::mavlink_to_mission_cmd(const mavlink_mission_item_t& packet, AP
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case MAV_CMD_NAV_CONTINUE_AND_CHANGE_ALT: // MAV ID: 30
|
case MAV_CMD_NAV_CONTINUE_AND_CHANGE_ALT: // MAV ID: 30
|
||||||
copy_location = true; // only using alt
|
copy_location = true; // lat/lng used for heading lock
|
||||||
cmd.p1 = packet.param1; // Climb/Descend
|
cmd.p1 = packet.param1; // Climb/Descend
|
||||||
// 0 = Neutral, cmd complete at +/- 5 of indicated alt.
|
// 0 = Neutral, cmd complete at +/- 5 of indicated alt.
|
||||||
// 1 = Climb, cmd complete at or above indicated alt.
|
// 1 = Climb, cmd complete at or above indicated alt.
|
||||||
@ -867,7 +867,7 @@ bool AP_Mission::mission_cmd_to_mavlink(const AP_Mission::Mission_Command& cmd,
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case MAV_CMD_NAV_CONTINUE_AND_CHANGE_ALT: // MAV ID: 30
|
case MAV_CMD_NAV_CONTINUE_AND_CHANGE_ALT: // MAV ID: 30
|
||||||
copy_location = true; //only using alt
|
copy_location = true; // lat/lng used for heading lock
|
||||||
packet.param1 = cmd.p1; // Climb/Descend
|
packet.param1 = cmd.p1; // Climb/Descend
|
||||||
// 0 = Neutral, cmd complete at +/- 5 of indicated alt.
|
// 0 = Neutral, cmd complete at +/- 5 of indicated alt.
|
||||||
// 1 = Climb, cmd complete at or above indicated alt.
|
// 1 = Climb, cmd complete at or above indicated alt.
|
||||||
|
Loading…
Reference in New Issue
Block a user