Skip to content

Commit

Permalink
Update state definition for readability
Browse files Browse the repository at this point in the history
Co-authored-by: Beat Küng <[email protected]>
  • Loading branch information
antonerasm and bkueng authored Aug 7, 2020
1 parent 9b9832e commit fcaa8b3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ void
AirshipAttitudeControl::publish_actuator_controls()
{
// zero actuators if not armed
if (_vehicle_status.arming_state != 2) {
if (_vehicle_status.arming_state != vehicle_status_s::ARMING_STATE_ARMED) {
for (uint8_t i = 0 ; i < 4 ; i++) {
_actuators.control[i] = 0.0f;
}
Expand Down

0 comments on commit fcaa8b3

Please sign in to comment.