SENT GM magic numbers
This commit is contained in:
parent
495e5875d4
commit
ca72064858
|
@ -3,6 +3,7 @@
|
|||
|
||||
#include <cstdint>
|
||||
#include <cstring>
|
||||
#include "sent_canbus_protocol.h"
|
||||
|
||||
#include "fault.h"
|
||||
#include "io_pins.h"
|
||||
|
@ -132,9 +133,9 @@ static void sendOutSentData() {
|
|||
m_frame.DLC = 8;
|
||||
|
||||
// See scaled_high_pressure scaled_channel, 0.1 bar resolution
|
||||
uint16_t press = GmPressureGetPressure() * 10;
|
||||
uint16_t press = GmPressureGetPressure() * GM_SENT_CANBUS_SCALE_PRESSURE;
|
||||
// See scaled_temperature scaled_channel, 0.001 deg C resolution
|
||||
int16_t temp = GmPressureGetTemperature() * 100;
|
||||
int16_t temp = GmPressureGetTemperature() * GM_SENT_CANBUS_SCALE_TEMPERATURE;
|
||||
|
||||
m_frame.data16[0] = press;
|
||||
m_frame.data16[1] = temp;
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit fa7cc2db4d5de3fd168224f63f9d2e3fb1908d1c
|
||||
Subproject commit eb28edcccfac6d3d25138e0c6eae77cd447b84a9
|
Loading…
Reference in New Issue