mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-29 03:36:07 +08:00
commander: force arming is not an option from RC
This commit is contained in:
committed by
Matthias Grob
parent
4a5ef1c81e
commit
93c505b163
@@ -981,10 +981,10 @@ Commander::handle_command(const vehicle_command_s &cmd)
|
||||
|
||||
} else {
|
||||
if (cmd_from_manual_stick) {
|
||||
arming_res = arm(arm_disarm_reason_t::rc_stick, !forced);
|
||||
arming_res = arm(arm_disarm_reason_t::rc_stick);
|
||||
|
||||
} else if (cmd_from_manual_switch) {
|
||||
arming_res = arm(arm_disarm_reason_t::rc_switch, !forced);
|
||||
arming_res = arm(arm_disarm_reason_t::rc_switch);
|
||||
|
||||
} else {
|
||||
arming_res = arm(arm_disarm_reason_t::command_internal, !forced);
|
||||
|
||||
Reference in New Issue
Block a user