mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
removed unnecessary case
Signed-off-by: RomanBapst <bapstroman@gmail.com>
This commit is contained in:
parent
02d344d9d9
commit
79ec39e561
@ -768,9 +768,6 @@ FixedwingPositionControl::set_control_mode_current(const hrt_abstime &now)
|
||||
// we handle loss of position control during backtransition as a special case
|
||||
_control_mode_current = FW_POSCTRL_MODE_TRANSITON;
|
||||
|
||||
} else if (_param_nav_gpsf_lt.get() > 0.f && _vehicle_status.in_transition_mode) {
|
||||
_control_mode_current = FW_POSCTRL_MODE_AUTO_ALTITUDE;
|
||||
|
||||
} else if (hrt_elapsed_time(&_time_in_fixed_bank_loiter) < (_param_nav_gpsf_lt.get() * 1_s)
|
||||
&& !_vehicle_status.in_transition_mode) {
|
||||
if (commanded_position_control_mode != FW_POSCTRL_MODE_AUTO_ALTITUDE) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user