mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-27 17:06:31 +08:00
fix kill_throttle handler when kill setting is received from the gcs
This commit is contained in:
@@ -92,7 +92,8 @@ extern uint16_t booz2_autopilot_flight_time;
|
|||||||
|
|
||||||
#define booz2_autopilot_KillThrottle(_v) { \
|
#define booz2_autopilot_KillThrottle(_v) { \
|
||||||
kill_throttle = _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) { \
|
#define booz2_autopilot_SetPowerSwitch(_v) { \
|
||||||
|
|||||||
Reference in New Issue
Block a user