Skip to content
Snippets Groups Projects
Commit d089c427 authored by Andreas Antener's avatar Andreas Antener
Browse files

quadchute code style fix

parent 6f1eda2b
No related branches found
No related tags found
No related merge requests found
......@@ -512,7 +512,7 @@ VtolAttitudeControl::is_fixed_wing_requested()
void
VtolAttitudeControl::abort_front_transition(char *reason)
{
if(!_abort_front_transition) {
if (!_abort_front_transition) {
mavlink_log_critical(&_mavlink_log_pub, "Abort: %s", reason);
_abort_front_transition = true;
_vtol_vehicle_status.vtol_transition_failsafe = true;
......
......@@ -196,8 +196,8 @@ bool VtolType::can_transition_on_ground()
void VtolType::check_quadchute_condition()
{
// fixed-wing minimum altitude
if(_params->fw_min_alt > FLT_EPSILON && _armed->armed){
if(-(_local_pos->z) < _params->fw_min_alt){
if (_params->fw_min_alt > FLT_EPSILON && _armed->armed) {
if (-(_local_pos->z) < _params->fw_min_alt) {
_attc->abort_front_transition("Minimum altitude");
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment