Update CAN

There are only 7 RX mailboxes available, so one of the filters won't
work.
This commit is contained in:
2022-03-13 21:06:05 +01:00
parent d0afcb6da4
commit c6c0fa987e
4 changed files with 51 additions and 81 deletions

View File

@ -54,7 +54,7 @@ String get_value(Value val) {
}
return String(Vehicle_data.gear);
case VAL_RPM:
return String(Vehicle_data.revol);
return String(Vehicle_data.revol / 2);
case VAL_TT_FL:
return "00";
case VAL_TT_FR:
@ -64,7 +64,8 @@ String get_value(Value val) {
case VAL_TT_RR:
return "11";
case VAL_LAPTIME:
return "93.13";
return String(
Vehicle_data.lap_time_sec + Vehicle_data.lap_time_msec / 1000.0, 2);
case VAL_UBATT:
return String(0.0706949 * Vehicle_data.u_batt, 2);
case VAL_TMOT: