diff --git a/conf/airframes/ENAC/quadrotor/booz2_g1.xml b/conf/airframes/ENAC/quadrotor/booz2_g1.xml index d388bb1014b..cc8f78e1f77 100644 --- a/conf/airframes/ENAC/quadrotor/booz2_g1.xml +++ b/conf/airframes/ENAC/quadrotor/booz2_g1.xml @@ -4,6 +4,16 @@ + + + + + + @@ -31,9 +41,9 @@ - + @@ -165,7 +175,8 @@
- + + diff --git a/conf/flight_plans/rotorcraft_vision.xml b/conf/flight_plans/rotorcraft_vision.xml new file mode 100644 index 00000000000..69fe7a703c0 --- /dev/null +++ b/conf/flight_plans/rotorcraft_vision.xml @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/sw/airborne/firmwares/rotorcraft/autopilot.c b/sw/airborne/firmwares/rotorcraft/autopilot.c index 3d45e47fc9e..0f029292023 100644 --- a/sw/airborne/firmwares/rotorcraft/autopilot.c +++ b/sw/airborne/firmwares/rotorcraft/autopilot.c @@ -256,7 +256,11 @@ void autopilot_on_rc_frame(void) { uint8_t new_autopilot_mode = 0; AP_MODE_OF_PPRZ(radio_control.values[RADIO_MODE], new_autopilot_mode); /* don't enter NAV mode if GPS is lost (this also prevents mode oscillations) */ - if (!(new_autopilot_mode == AP_MODE_NAV && GpsIsLost())) + if (!(new_autopilot_mode == AP_MODE_NAV +#if USE_GPS + && GpsIsLost() +#endif + )) autopilot_set_mode(new_autopilot_mode); }