Merge remote-tracking branch 'origin/devel' into feature/interface_autogen_merged

This commit is contained in:
Samuel Sadok
2020-05-22 21:27:58 +02:00
22 changed files with 156 additions and 115 deletions
+1 -1
View File
@@ -647,7 +647,7 @@ void update_brake_current() {
return;
}
int high_on = static_cast<int>(TIM_APB1_PERIOD_CLOCKS * (1.0f - brake_duty));
int high_on = (int)(TIM_APB1_PERIOD_CLOCKS * (1.0f - brake_duty));
int low_off = high_on - TIM_APB1_DEADTIME_CLOCKS;
if (low_off < 0) low_off = 0;
safety_critical_apply_brake_resistor_timings(low_off, high_on);