Skip to content

Commit

Permalink
Enforce airspeed check for VTOLs
Browse files Browse the repository at this point in the history
  • Loading branch information
LorenzMeier committed Nov 17, 2015
1 parent 4947e89 commit 0509a5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/commander/state_machine_helper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -753,7 +753,7 @@ int preflight_check(const struct vehicle_status_s *status, const int mavlink_fd,
bool checkAirspeed = false;
/* Perform airspeed check only if circuit breaker is not
* engaged and it's not a rotary wing */
if (!status->circuit_breaker_engaged_airspd_check && !status->is_rotary_wing) {
if (!status->circuit_breaker_engaged_airspd_check && (!status->is_rotary_wing || status->is_vtol) {
checkAirspeed = true;
}

Expand Down

0 comments on commit 0509a5a

Please sign in to comment.