navigator fix vehicle_command_ack (don't copy external)

This commit is contained in:
Daniel Agar
2017-10-06 20:11:19 +02:00
committed by Lorenz Meier
parent aa2566970e
commit 80dd87536e
3 changed files with 15 additions and 25 deletions
@@ -839,7 +839,8 @@ bool calibrate_cancel_check(orb_advert_t *mavlink_log_pub, int cancel_sub)
orb_copy(ORB_ID(vehicle_command), cancel_sub, &cmd);
if (cmd.from_external) { // ignore internal commands, such as VEHICLE_CMD_DO_MOUNT_CONTROL from vmount
// ignore internal commands, such as VEHICLE_CMD_DO_MOUNT_CONTROL from vmount
if (cmd.from_external) {
if (cmd.command == vehicle_command_s::VEHICLE_CMD_PREFLIGHT_CALIBRATION &&
(int)cmd.param1 == 0 &&
(int)cmd.param2 == 0 &&
+1 -1
View File
@@ -1206,7 +1206,7 @@ bool handle_command(struct vehicle_status_s *status_local, const struct safety_s
case vehicle_command_s::VEHICLE_CMD_LOGGING_START:
case vehicle_command_s::VEHICLE_CMD_LOGGING_STOP:
case vehicle_command_s::VEHICLE_CMD_NAV_DELAY:
/* ignore commands that handled in low prio loop */
/* ignore commands that are handled by other parts of the system */
break;
default: