[nav] in_flight detection is not implemented in fixedwing firmware (#2641)

this case the nav_home to fail in vertical control
This commit is contained in:
Gautier Hattenberger
2021-01-06 21:33:33 +01:00
committed by GitHub
parent 0252f04d5f
commit 2b0f2c330a
+1 -1
View File
@@ -424,7 +424,7 @@ void nav_home(void)
NavCircleWaypoint(WP_HOME, FAILSAFE_HOME_RADIUS);
/** Nominal speed */
nav_pitch = 0.;
if (autopilot_in_flight() && autopilot.launch) {
if (autopilot.launch) {
v_ctl_mode = V_CTL_MODE_AUTO_ALT;
} else {
v_ctl_mode = V_CTL_MODE_AUTO_THROTTLE;