From d089c427ec6e830f03aeccc0251461f53bb10b33 Mon Sep 17 00:00:00 2001 From: Andreas Antener Date: Mon, 1 Aug 2016 14:42:29 +0200 Subject: [PATCH] quadchute code style fix --- src/modules/vtol_att_control/vtol_att_control_main.cpp | 2 +- src/modules/vtol_att_control/vtol_type.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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 8f623461ec..6b6cbc4538 100644 --- a/src/modules/vtol_att_control/vtol_att_control_main.cpp +++ b/src/modules/vtol_att_control/vtol_att_control_main.cpp @@ -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; diff --git a/src/modules/vtol_att_control/vtol_type.cpp b/src/modules/vtol_att_control/vtol_type.cpp index 71c7432bde..138fc45637 100644 --- a/src/modules/vtol_att_control/vtol_type.cpp +++ b/src/modules/vtol_att_control/vtol_type.cpp @@ -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"); } }