mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-09 22:49:53 +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);
|
||||
actuators_mkk.idx++;
|
||||
if (actuators_mkk.idx<ACTUATORS_MKK_NB) {
|
||||
#ifdef KILL_MOTORS
|
||||
DeviceBuf[0] = 0;
|
||||
#else
|
||||
DeviceBuf[0] = supervision.commands[actuators_mkk.idx];
|
||||
#endif
|
||||
DeviceTransmit(actuators_addr[actuators_mkk.idx], 1, &actuators_mkk.i2c_done);
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user