mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-23 00:04:02 -04:00
Copter: integrate variable max num commands
This commit is contained in:
parent
fcea127537
commit
7b6906ae3f
@ -1534,7 +1534,7 @@ mission_item_send_failed:
|
|||||||
}
|
}
|
||||||
|
|
||||||
// start waypoint receiving
|
// start waypoint receiving
|
||||||
if (packet.count > AP_MISSION_MAX_COMMANDS) {
|
if (packet.count > mission.num_commands_max()) {
|
||||||
// send NAK
|
// send NAK
|
||||||
mavlink_msg_mission_ack_send(chan, msg->sysid, msg->compid, MAV_MISSION_NO_SPACE);
|
mavlink_msg_mission_ack_send(chan, msg->sysid, msg->compid, MAV_MISSION_NO_SPACE);
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user