correct can speed calcs

This commit is contained in:
smayzy 2026-04-11 15:34:12 +02:00
parent 7dad14fa4e
commit 5c4c342455

View File

@ -115,7 +115,7 @@ void read_can(Tel *t, int soc) {
case 0x382:
if (frame.can_dlc >= 2) {
t->rpm.data = frame.data[0] | (frame.data[1] << 8);
t->speed.data = t->rpm.data * 0.017;
t->speed.data = (int)(t->rpm.data * 0.017f);
}
break;
default: