mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
commander: CMD_COMPONENT_ARM_DISARM don't block disarm if maybe_landed
This commit is contained in:
parent
7b41ce4711
commit
ade8a13203
@ -680,7 +680,7 @@ Commander::handle_command(vehicle_status_s *status_local, const vehicle_command_
|
||||
const bool enforce = (static_cast<int>(roundf(cmd.param2)) == 21196);
|
||||
|
||||
if (!enforce) {
|
||||
if (!_land_detector.landed && !is_ground_rover(&status)) {
|
||||
if (!(_land_detector.landed || _land_detector.maybe_landed) && !is_ground_rover(&status)) {
|
||||
if (cmd_arms) {
|
||||
if (armed_local->armed) {
|
||||
mavlink_log_warning(&mavlink_log_pub, "Arming denied! Already armed");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user