mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-31 10:26:52 +08:00
fixed code style
This commit is contained in:
@@ -509,7 +509,7 @@ VtolAttitudeControl::is_fixed_wing_requested()
|
|||||||
void
|
void
|
||||||
VtolAttitudeControl::abort_front_transition()
|
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");
|
mavlink_log_critical(&_mavlink_log_pub, "Transition timeout or FW min alt occured, aborting");
|
||||||
_abort_front_transition = true;
|
_abort_front_transition = true;
|
||||||
_vtol_vehicle_status.vtol_transition_failsafe = true;
|
_vtol_vehicle_status.vtol_transition_failsafe = true;
|
||||||
|
|||||||
@@ -179,8 +179,8 @@ void VtolType::update_fw_state()
|
|||||||
}
|
}
|
||||||
|
|
||||||
// quadchute
|
// quadchute
|
||||||
if(_params->fw_min_alt > FLT_EPSILON && _armed->armed){
|
if (_params->fw_min_alt > FLT_EPSILON && _armed->armed) {
|
||||||
if(-(_local_pos->z) < _params->fw_min_alt){
|
if (-(_local_pos->z) < _params->fw_min_alt) {
|
||||||
_attc->abort_front_transition();
|
_attc->abort_front_transition();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -190,8 +190,8 @@ void VtolType::update_fw_state()
|
|||||||
void VtolType::update_transition_state()
|
void VtolType::update_transition_state()
|
||||||
{
|
{
|
||||||
// quadchute
|
// quadchute
|
||||||
if(_params->fw_min_alt > FLT_EPSILON && _armed->armed){
|
if (_params->fw_min_alt > FLT_EPSILON && _armed->armed) {
|
||||||
if(-(_local_pos->z) < _params->fw_min_alt){
|
if (-(_local_pos->z) < _params->fw_min_alt) {
|
||||||
_attc->abort_front_transition();
|
_attc->abort_front_transition();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user