Update can_dash.cpp
(cherry picked from commit a2844721b5dd048afb0070dd809b73328dd23f52)
This commit is contained in:
parent
d84101b8c8
commit
ac07b9c963
|
@ -609,11 +609,11 @@ void canDashboardHaltech(CanCycle cycle) {
|
||||||
{
|
{
|
||||||
CanTxMessage msg(CanCategory::NBC, 0x361, 8);
|
CanTxMessage msg(CanCategory::NBC, 0x361, 8);
|
||||||
/* Fuel pressure */
|
/* Fuel pressure */
|
||||||
tmp = (uint16_t)(Sensor::getOrZero(SensorType::FuelPressureLow));
|
tmp = (uint16_t)((Sensor::getOrZero(SensorType::FuelPressureLow) + 101.3) * 10);
|
||||||
msg[0] = (tmp >> 8);
|
msg[0] = (tmp >> 8);
|
||||||
msg[1] = (tmp&0x00ff);
|
msg[1] = (tmp&0x00ff);
|
||||||
/* Oil pressure */
|
/* Oil pressure */
|
||||||
tmp = (uint16_t)(Sensor::getOrZero(SensorType::OilPressure));
|
tmp = (uint16_t)((Sensor::getOrZero(SensorType::OilPressure) + 101.3) * 10);
|
||||||
msg[2] = (tmp >> 8);
|
msg[2] = (tmp >> 8);
|
||||||
msg[3] = (tmp & 0x00ff);
|
msg[3] = (tmp & 0x00ff);
|
||||||
/* Engine Demand */
|
/* Engine Demand */
|
||||||
|
@ -729,7 +729,7 @@ void canDashboardHaltech(CanCycle cycle) {
|
||||||
{
|
{
|
||||||
CanTxMessage msg(CanCategory::NBC, 0x368, 8);
|
CanTxMessage msg(CanCategory::NBC, 0x368, 8);
|
||||||
/* Wideband Sensor 1 */
|
/* 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[0] = (tmp >> 8);
|
||||||
msg[1] = (tmp & 0x00ff);
|
msg[1] = (tmp & 0x00ff);
|
||||||
/* Wideband Sensor 2 */
|
/* Wideband Sensor 2 */
|
||||||
|
|
Loading…
Reference in New Issue