mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-17 20:07:35 +08:00
Commander: make sure unsupported do reposition command result is published
todo: need to consolidate the command ack strategy in this function
This commit is contained in:
committed by
Daniel Agar
parent
ff8663b0b1
commit
27e6a0d227
@@ -701,7 +701,7 @@ Commander::handle_command(const vehicle_command_s &cmd)
|
||||
const bool unsupported_bits_set = (change_mode_flags & ~1) != 0;
|
||||
|
||||
if (mode_switch_not_requested || unsupported_bits_set) {
|
||||
cmd_result = vehicle_command_ack_s::VEHICLE_CMD_RESULT_UNSUPPORTED;
|
||||
answer_command(cmd, vehicle_command_ack_s::VEHICLE_CMD_RESULT_UNSUPPORTED);
|
||||
|
||||
} else {
|
||||
if (_user_mode_intention.change(vehicle_status_s::NAVIGATION_STATE_AUTO_LOITER)) {
|
||||
|
||||
Reference in New Issue
Block a user