TPMS implement OVMS-way

This commit is contained in:
Carsten Schmiemann 2022-04-17 01:12:01 +02:00
parent 6da38c3b9b
commit 6c5bbda6a0
2 changed files with 1 additions and 9 deletions

View File

@ -28,7 +28,7 @@
void OvmsVehicleRenaultZoePh2::IncomingBCM(uint16_t type, uint16_t pid, const char* data, uint16_t len) {
switch (pid) {
case 0x4204: {
tpms_press_fl = (CAN_UINT(0));
StandardMetrics.ms_v_tpms_pressure->SetElemValue(MS_V_TPMS_IDX_FL, (float)CAN_UINT(0)));
ESP_LOGD(TAG, "4204 BCM tpms pressure FL: %f", float(CAN_UINT(0)));
break;
}

View File

@ -71,14 +71,6 @@ 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);