You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ui32_SPEED_km_h=ui32_SPEED_km_h_accumulated >> 2; //calculate speed in m/h conversion from sec to hour --> *3600, conversion from mm to km --> /1000000, tic frequency 15625 Hz
// select virtual erps speed based on speedsensor type
99
99
if (((ui16_aca_flags&EXTERNAL_SPEED_SENSOR) ==EXTERNAL_SPEED_SENSOR)) {
100
-
ui16_virtual_erps_speed=ui16_speed_kph_to_erps_ratio* ((uint16_t) (ui32_SPEED_km_h / 100)) / 1000; // /100/1000 instead of more plausible /1000/100 cause of 16bit overflow
0 commit comments