diff --git a/src/modules/vtol_att_control/vtol_att_control_main.cpp b/src/modules/vtol_att_control/vtol_att_control_main.cpp index 5cfd3da4b9..57e0a98170 100644 --- a/src/modules/vtol_att_control/vtol_att_control_main.cpp +++ b/src/modules/vtol_att_control/vtol_att_control_main.cpp @@ -509,7 +509,7 @@ VtolAttitudeControl::is_fixed_wing_requested() void VtolAttitudeControl::abort_front_transition() { - if(!_abort_front_transition) { + if (!_abort_front_transition) { mavlink_log_critical(&_mavlink_log_pub, "Transition timeout or FW min alt occured, aborting"); _abort_front_transition = true; _vtol_vehicle_status.vtol_transition_failsafe = true; diff --git a/src/modules/vtol_att_control/vtol_type.cpp b/src/modules/vtol_att_control/vtol_type.cpp index 73d90fb3b3..83e331a581 100644 --- a/src/modules/vtol_att_control/vtol_type.cpp +++ b/src/modules/vtol_att_control/vtol_type.cpp @@ -179,8 +179,8 @@ void VtolType::update_fw_state() } // quadchute - 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(); } } @@ -190,8 +190,8 @@ void VtolType::update_fw_state() void VtolType::update_transition_state() { // quadchute - 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(); } }