canDashboardHaltech AcceleratorPedal

This commit is contained in:
rusefillc 2024-02-28 10:31:13 -05:00
parent c8bfa13c69
commit af94e3de19
1 changed files with 2 additions and 2 deletions

View File

@ -631,8 +631,7 @@ void canDashboardHaltech(CanCycle cycle) {
CanTxMessage msg(CanCategory::NBC, 0x471, 2);
msg[0] = 0x00;
msg[1] = 0x00;
msg[2] = 0x00;
msg[3] = 0x00;
msg.setShortValueMsb(Sensor::getOrZero(SensorType::AcceleratorPedal) * 10, 2);
}
}
@ -871,6 +870,7 @@ void canDashboardHaltech(CanCycle cycle) {
msg[3] = 0x00;
msg[4] = 0x00;
msg[5] = 0x00;
// gear goes somewhere here open question enum encoding
msg[6] = 0x00;
msg[7] = 0x00;
}