mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
Changed soft stop check
This commit is contained in:
parent
21760a5856
commit
c4bb6b53e8
@ -1668,10 +1668,10 @@ Commander::run()
|
||||
status_changed = true;
|
||||
}
|
||||
|
||||
const bool is_not_rotary_wing = (status.vehicle_type != vehicle_status_s::VEHICLE_TYPE_ROTARY_WING);
|
||||
const bool should_soft_stop = (status.vehicle_type != vehicle_status_s::VEHICLE_TYPE_ROTARY_WING);
|
||||
|
||||
if (armed.soft_stop != is_not_rotary_wing) {
|
||||
armed.soft_stop = status.vehicle_type == vehicle_status_s::VEHICLE_TYPE_FIXED_WING;
|
||||
if (armed.soft_stop != should_soft_stop) {
|
||||
armed.soft_stop = should_soft_stop;
|
||||
status_changed = true;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user