Add one tpms pressure sensor
This commit is contained in:
parent
9f993bfc4d
commit
6da38c3b9b
|
@ -27,7 +27,9 @@
|
|||
|
||||
void OvmsVehicleRenaultZoePh2::IncomingBCM(uint16_t type, uint16_t pid, const char* data, uint16_t len) {
|
||||
switch (pid) {
|
||||
case 0x001: {
|
||||
case 0x4204: {
|
||||
tpms_press_fl = (CAN_UINT(0));
|
||||
ESP_LOGD(TAG, "4204 BCM tpms pressure FL: %f", float(CAN_UINT(0)));
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
|
@ -71,6 +71,14 @@ class OvmsVehicleRenaultZoePh2 : public OvmsVehicle {
|
|||
void WebDeInit();
|
||||
bool CarIsDriving = false;
|
||||
bool CarIsCharging = false;
|
||||
float tpms_press_fr = 0;
|
||||
float tpms_press_fl = 0;
|
||||
float tpms_press_rr = 0;
|
||||
float tpms_press_rl = 0;
|
||||
float tpms_temp_fr = 0;
|
||||
float tpms_temp_fl = 0;
|
||||
float tpms_temp_rr = 0;
|
||||
float tpms_temp_rl = 0;
|
||||
|
||||
protected:
|
||||
void IncomingINV(uint16_t type, uint16_t pid, const char* data, uint16_t len);
|
||||
|
|
Loading…
Reference in New Issue