Skip to content

Commit

Permalink
rotorcraft: make it the default to go into kill mode until ahrs is al…
Browse files Browse the repository at this point in the history
…igned

to be able to change the mode via RC if the AHRS is not yet aligned, define AUTOPILOT_DISABLE_AHRS_KILL
  • Loading branch information
flixr committed Apr 6, 2012
1 parent ffd501a commit cee6dc5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sw/airborne/firmwares/rotorcraft/autopilot.c
Expand Up @@ -46,7 +46,7 @@ bool_t autopilot_detect_ground_once;

#define AUTOPILOT_IN_FLIGHT_TIME 40

#ifdef AUTOPILOT_KILL_WITHOUT_AHRS
#ifndef AUTOPILOT_DISABLE_AHRS_KILL
#include "subsystems/ahrs.h"
static inline int ahrs_is_aligned(void) {
return (ahrs.status == AHRS_RUNNING);
Expand Down

0 comments on commit cee6dc5

Please sign in to comment.