Commander: allow disarmin not-landed boat like rover

This is a hotfix and a boat should never even detect a takeoff
in normal operation.
This commit is contained in:
Matthias Grob
2022-10-05 09:07:18 -04:00
committed by Daniel Agar
parent dafead6f20
commit 46e6e83e14
3 changed files with 13 additions and 1 deletions
+1 -1
View File
@@ -685,7 +685,7 @@ transition_result_t Commander::disarm(arm_disarm_reason_t calling_reason, bool f
{
if (!forced) {
const bool landed = (_vehicle_land_detected.landed || _vehicle_land_detected.maybe_landed
|| is_ground_rover(_vehicle_status));
|| is_ground_vehicle(_vehicle_status));
const bool mc_manual_thrust_mode = _vehicle_status.vehicle_type == vehicle_status_s::VEHICLE_TYPE_ROTARY_WING
&& _vehicle_control_mode.flag_control_manual_enabled
&& !_vehicle_control_mode.flag_control_climb_rate_enabled;