From 0f6c5b67f26a29985a65b4ccf51d4e2745ad4739 Mon Sep 17 00:00:00 2001 From: Gautier Hattenberger Date: Wed, 4 Aug 2010 17:32:07 +0000 Subject: [PATCH] fix kill_throttle handler when kill setting is received from the gcs --- sw/airborne/booz/booz2_autopilot.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sw/airborne/booz/booz2_autopilot.h b/sw/airborne/booz/booz2_autopilot.h index 928e1daf6b..39e621770a 100644 --- a/sw/airborne/booz/booz2_autopilot.h +++ b/sw/airborne/booz/booz2_autopilot.h @@ -92,7 +92,8 @@ extern uint16_t booz2_autopilot_flight_time; #define booz2_autopilot_KillThrottle(_v) { \ kill_throttle = _v; \ - booz2_autopilot_motors_on = !kill_throttle; \ + if (kill_throttle) booz2_autopilot_motors_on = FALSE; \ + else booz2_autopilot_motors_on = TRUE; \ } #define booz2_autopilot_SetPowerSwitch(_v) { \