Add Intake Air Temperature, Add Fuel Level (#4028)
Co-authored-by: hugovw1976 <hugovw1976@hotmail.com>
This commit is contained in:
parent
f9db687f67
commit
5364ba431c
|
@ -1045,8 +1045,9 @@ void canDashboardHaltech(CanCycle cycle) {
|
||||||
msg[0] = (tmp >> 8);
|
msg[0] = (tmp >> 8);
|
||||||
msg[1] = (tmp & 0x00ff);
|
msg[1] = (tmp & 0x00ff);
|
||||||
/* Air Temperature */
|
/* Air Temperature */
|
||||||
msg[2] = 0x00;
|
tmp = ((Sensor::getOrZero(SensorType::Iat) + 273.15) * 10);
|
||||||
msg[3] = 0x00;
|
msg[2] = (tmp >> 8);
|
||||||
|
msg[3] = (tmp & 0x00ff);
|
||||||
/* Fuel Temperature */
|
/* Fuel Temperature */
|
||||||
msg[4] = 0x00;
|
msg[4] = 0x00;
|
||||||
msg[5] = 0x00;
|
msg[5] = 0x00;
|
||||||
|
@ -1073,8 +1074,9 @@ void canDashboardHaltech(CanCycle cycle) {
|
||||||
{
|
{
|
||||||
CanTxMessage msg(0x3E2, 2);
|
CanTxMessage msg(0x3E2, 2);
|
||||||
/* Fuel Level in Liters */
|
/* Fuel Level in Liters */
|
||||||
msg[0] = 0x00;
|
tmp = (Sensor::getOrZero(SensorType::FuelLevel)* 10);
|
||||||
msg[1] = 0xff;
|
msg[0] = (tmp >> 8);
|
||||||
|
msg[1] = (tmp & 0x00ff);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 0x3E3 = 5Hz rate */
|
/* 0x3E3 = 5Hz rate */
|
||||||
|
|
Loading…
Reference in New Issue