mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-11 02:18:29 -04:00
Rover: integrate variable max num commands
This commit is contained in:
parent
fdec917607
commit
7ff379850c
@ -1438,7 +1438,7 @@ mission_item_send_failed:
|
|||||||
if (mavlink_check_target(packet.target_system,packet.target_component)) break;
|
if (mavlink_check_target(packet.target_system,packet.target_component)) break;
|
||||||
|
|
||||||
// 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