这是indexloc提供的服务,不要输入任何密码
Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions opendbc/safety/safety/safety_hyundai_canfd.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down
Loading