diff --git a/opendbc/safety/safety/safety_hyundai_canfd.h b/opendbc/safety/safety/safety_hyundai_canfd.h index 093b92952fb..f0c46e6aa69 100644 --- a/opendbc/safety/safety/safety_hyundai_canfd.h +++ b/opendbc/safety/safety/safety_hyundai_canfd.h @@ -117,8 +117,8 @@ static void hyundai_canfd_rx_hook(const CANPacket_t *to_push) { vehicle_moving = (speed_avg > HYUNDAI_STANDSTILL_THRSLD); - // average of all 4 wheel speeds. Conversion: raw * 0.03125 - UPDATE_VEHICLE_SPEED(speed_avg / 4U * 0.03125); + // average of all 4 wheel speeds. Conversion: raw * 0.03125 / 3.6 = m/s + UPDATE_VEHICLE_SPEED(speed_avg * 0.03125 / 3.6); } }