diff --git a/sw/airborne/firmwares/rotorcraft/autopilot.c b/sw/airborne/firmwares/rotorcraft/autopilot.c index e9685f32c5..d33e24eaa9 100644 --- a/sw/airborne/firmwares/rotorcraft/autopilot.c +++ b/sw/airborne/firmwares/rotorcraft/autopilot.c @@ -102,7 +102,7 @@ void autopilot_set_mode(uint8_t new_autopilot_mode) { /* horizontal mode */ switch (new_autopilot_mode) { case AP_MODE_FAILSAFE: -#ifndef BOOZ_KILL_AS_FAILSAFE +#ifndef KILL_AS_FAILSAFE booz_stab_att_sp_euler.phi = 0; booz_stab_att_sp_euler.theta = 0; booz2_guidance_h_mode_changed(BOOZ2_GUIDANCE_H_MODE_ATTITUDE); @@ -135,7 +135,7 @@ void autopilot_set_mode(uint8_t new_autopilot_mode) { /* vertical mode */ switch (new_autopilot_mode) { case AP_MODE_FAILSAFE: -#ifndef BOOZ_KILL_AS_FAILSAFE +#ifndef KILL_AS_FAILSAFE booz2_guidance_v_zd_sp = SPEED_BFP_OF_REAL(0.5); booz2_guidance_v_mode_changed(BOOZ2_GUIDANCE_V_MODE_CLIMB); break;