mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-06-05 06:54:49 +08:00
[rotorcraft] fix KillThrottle
This commit is contained in:
@@ -90,8 +90,11 @@ extern uint16_t autopilot_flight_time;
|
|||||||
_mode = MODE_MANUAL; \
|
_mode = MODE_MANUAL; \
|
||||||
}
|
}
|
||||||
|
|
||||||
#define autopilot_KillThrottle(_v) { \
|
#define autopilot_KillThrottle(_kill) { \
|
||||||
autopilot_set_motors_on(_v); \
|
if (_kill) \
|
||||||
|
autopilot_set_motors_on(FALSE); \
|
||||||
|
else \
|
||||||
|
autopilot_set_motors_on(TRUE); \
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef POWER_SWITCH_LED
|
#ifdef POWER_SWITCH_LED
|
||||||
|
|||||||
Reference in New Issue
Block a user