Skip to content

Commit

Permalink
[refactor] using less verbose convenience method instead of vehicle_s…
Browse files Browse the repository at this point in the history
…tatus fields directly
  • Loading branch information
TomasTwardzik committed Mar 6, 2025
1 parent 5793c00 commit d230215
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/modules/commander/Commander.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -583,8 +583,7 @@ transition_result_t Commander::arm(arm_disarm_reason_t calling_reason, bool run_
return TRANSITION_DENIED;
}

if ((_vehicle_status.vehicle_type == vehicle_status_s::VEHICLE_TYPE_ROVER
|| _vehicle_status.vehicle_type == vehicle_status_s::VEHICLE_TYPE_BOAT)
if ((is_ground_vehicle(_vehicle_status))
&& !_failsafe_flags.manual_control_signal_lost && !_is_throttle_near_center) {

mavlink_log_critical(&_mavlink_log_pub, "Arming denied: throttle not centered\t");
Expand Down

0 comments on commit d230215

Please sign in to comment.