TPMS implement OVMS-way
This commit is contained in:
parent
6da38c3b9b
commit
6c5bbda6a0
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue