mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-18 20:29:06 +08:00
quadchute code style fix
This commit is contained in:
parent
6f1eda2b18
commit
d089c427ec
@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user