From ac07b9c9638ac83d25291a14882a12cdee47c6b2 Mon Sep 17 00:00:00 2001 From: TurboMarian Date: Fri, 28 Oct 2022 07:15:36 -0400 Subject: [PATCH] Update can_dash.cpp (cherry picked from commit a2844721b5dd048afb0070dd809b73328dd23f52) --- firmware/controllers/can/can_dash.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/firmware/controllers/can/can_dash.cpp b/firmware/controllers/can/can_dash.cpp index bbbd0ca81b..0f57777ea1 100644 --- a/firmware/controllers/can/can_dash.cpp +++ b/firmware/controllers/can/can_dash.cpp @@ -609,11 +609,11 @@ void canDashboardHaltech(CanCycle cycle) { { CanTxMessage msg(CanCategory::NBC, 0x361, 8); /* Fuel pressure */ - tmp = (uint16_t)(Sensor::getOrZero(SensorType::FuelPressureLow)); + tmp = (uint16_t)((Sensor::getOrZero(SensorType::FuelPressureLow) + 101.3) * 10); msg[0] = (tmp >> 8); msg[1] = (tmp&0x00ff); /* Oil pressure */ - tmp = (uint16_t)(Sensor::getOrZero(SensorType::OilPressure)); + tmp = (uint16_t)((Sensor::getOrZero(SensorType::OilPressure) + 101.3) * 10); msg[2] = (tmp >> 8); msg[3] = (tmp & 0x00ff); /* Engine Demand */ @@ -729,7 +729,7 @@ void canDashboardHaltech(CanCycle cycle) { { CanTxMessage msg(CanCategory::NBC, 0x368, 8); /* Wideband Sensor 1 */ - tmp = (uint16_t)(Sensor::getOrZero(SensorType::Lambda1) * 1000); + tmp = (uint16_t)(Sensor::getOrZero(SensorType::Lambda1) * 1000 * 14.7); msg[0] = (tmp >> 8); msg[1] = (tmp & 0x00ff); /* Wideband Sensor 2 */