Skip to content

Commit

Permalink
[rotorcraft] fix KillThrottle
Browse files Browse the repository at this point in the history
  • Loading branch information
flixr committed Jul 6, 2012
1 parent 5e7aa06 commit b8cbce5
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions sw/airborne/firmwares/rotorcraft/autopilot.h
Expand Up @@ -90,8 +90,11 @@ extern uint16_t autopilot_flight_time;
_mode = MODE_MANUAL; \
}

#define autopilot_KillThrottle(_v) { \
autopilot_set_motors_on(_v); \
#define autopilot_KillThrottle(_kill) { \
if (_kill) \
autopilot_set_motors_on(FALSE); \
else \
autopilot_set_motors_on(TRUE); \
}

#ifdef POWER_SWITCH_LED
Expand Down

0 comments on commit b8cbce5

Please sign in to comment.