1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-03-15 07:29:15 +01:00

OP-1683 - Pulse length must be zeroed at each cycle

This commit is contained in:
Alessio Morale 2015-02-02 19:58:04 +01:00
parent 752f3447d2
commit 86a1ca2bcf

View File

@ -163,9 +163,9 @@ void PIOS_Servo_Update()
if (TIM_GetCounter((TIM_TypeDef *)timer) > (uint32_t)(pios_servo_bank_next_update[i] + PIOS_SERVO_SAFE_MARGIN)) {
TIM_GenerateEvent((TIM_TypeDef *)timer, TIM_EventSource_Update);
pios_servo_bank_next_update[i] = pios_servo_bank_max_pulse[i];
pios_servo_bank_max_pulse[i] = 0;
}
}
pios_servo_bank_max_pulse[i] = 0;
}
for (uint8_t i = 0; (i < servo_cfg->num_channels); i++) {
uint8_t bank = pios_servo_pin_bank[i];