mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-30 11:37:06 +08:00
fixed KILL_MOTORS cflag to work with MKK speed controllers and Lisa board
This commit is contained in:
@@ -49,7 +49,11 @@ void tim2_irq_handler(void) {
|
|||||||
TIM_ClearITPendingBit(TIM2, TIM_IT_Update);
|
TIM_ClearITPendingBit(TIM2, TIM_IT_Update);
|
||||||
actuators_mkk.idx++;
|
actuators_mkk.idx++;
|
||||||
if (actuators_mkk.idx<ACTUATORS_MKK_NB) {
|
if (actuators_mkk.idx<ACTUATORS_MKK_NB) {
|
||||||
|
#ifdef KILL_MOTORS
|
||||||
|
DeviceBuf[0] = 0;
|
||||||
|
#else
|
||||||
DeviceBuf[0] = supervision.commands[actuators_mkk.idx];
|
DeviceBuf[0] = supervision.commands[actuators_mkk.idx];
|
||||||
|
#endif
|
||||||
DeviceTransmit(actuators_addr[actuators_mkk.idx], 1, &actuators_mkk.i2c_done);
|
DeviceTransmit(actuators_addr[actuators_mkk.idx], 1, &actuators_mkk.i2c_done);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|||||||
Reference in New Issue
Block a user