Compare commits

...

2 commits

2 changed files with 4 additions and 9 deletions

View file

@ -57,28 +57,28 @@ void OvmsVehicleRenaultZoePh2::IncomingBCM(uint16_t type, uint16_t pid, const ch
}
case 0x6310: { // TPMS temp - front left
if (CAN_UINT(0) < 32512) {
StandardMetrics.ms_v_tpms_temp->SetElemValue(MS_V_TPMS_IDX_FL, fabs((CAN_UINT(0) * 0.001) - 30.0f), Celcius);
StandardMetrics.ms_v_tpms_temp->SetElemValue(MS_V_TPMS_IDX_FL, (30.0f - (CAN_UINT(0) * 0.001)), Celcius);
}
//ESP_LOGD(TAG, "6310 BCM tpms temp FL: %f", fabs((CAN_UINT(0) * 0.001) - 30.0f));
break;
}
case 0x6311: { // TPMS temp - front right
if (CAN_UINT(0) < 32512) {
StandardMetrics.ms_v_tpms_temp->SetElemValue(MS_V_TPMS_IDX_FR, fabs((CAN_UINT(0) * 0.001) - 30.0f), Celcius);
StandardMetrics.ms_v_tpms_temp->SetElemValue(MS_V_TPMS_IDX_FR, (30.0f - (CAN_UINT(0) * 0.001)), Celcius);
}
//ESP_LOGD(TAG, "6311 BCM tpms temp FR: %f", fabs((CAN_UINT(0) * 0.001) - 30.0f));
break;
}
case 0x6312: { // TPMS temp - rear left
if (CAN_UINT(0) < 32512) {
StandardMetrics.ms_v_tpms_temp->SetElemValue(MS_V_TPMS_IDX_RL, fabs((CAN_UINT(0) * 0.001) - 30.0f), Celcius);
StandardMetrics.ms_v_tpms_temp->SetElemValue(MS_V_TPMS_IDX_RL, (30.0f - (CAN_UINT(0) * 0.001)), Celcius);
}
//ESP_LOGD(TAG, "6312 BCM tpms temp RL: %f", fabs((CAN_UINT(0) * 0.001) - 30.0f));
break;
}
case 0x6313: { // TPMS temp - rear right
if (CAN_UINT(0) < 32512) {
StandardMetrics.ms_v_tpms_temp->SetElemValue(MS_V_TPMS_IDX_RR, fabs((CAN_UINT(0) * 0.001) - 30.0f), Celcius);
StandardMetrics.ms_v_tpms_temp->SetElemValue(MS_V_TPMS_IDX_RR, (30.0f - (CAN_UINT(0) * 0.001)), Celcius);
}
//ESP_LOGD(TAG, "6313 BCM tpms temp RR: %f", fabs((CAN_UINT(0) * 0.001) - 30.0f));
break;
@ -214,10 +214,6 @@ void OvmsVehicleRenaultZoePh2::IncomingBCM(uint16_t type, uint16_t pid, const ch
}
break;
}*/
case 0x6098: { //Light sensor reading, TESTING, no actual usecase for
ESP_LOGD(TAG, "6098 Light sensor reading: %d", CAN_UINT(0));
break;
}
/*case 0x6214: { //Interior tailgate light, working but no actual usecase for
if ((bool)CAN_UINT(0)) {
ESP_LOGD(TAG, "6214 Rain sensor: RAINING");

View file

@ -87,7 +87,6 @@ static const OvmsVehicle::poll_pid_t renault_zoe_polls[] = {
{ 0x745, 0x765, VEHICLE_POLL_TYPE_OBDIIEXTENDED, 0x60C6, { 0, 3, 6, 60 }, 0, ISOTP_STD }, // Ignition relay (switch), working but behavior on CHARING testing needed
//{ 0x745, 0x765, VEHICLE_POLL_TYPE_OBDIIEXTENDED, 0x6164, { 0, 5, 5, 5 }, 0, ISOTP_STD }, // Interior front roof light, working but no actual usecase for
//{ 0x745, 0x765, VEHICLE_POLL_TYPE_OBDIIEXTENDED, 0x6166, { 0, 5, 5, 5 }, 0, ISOTP_STD }, // Interior tailgate light, working but no actual usecase for
{ 0x745, 0x765, VEHICLE_POLL_TYPE_OBDIIEXTENDED, 0x6098, { 0, 5, 5, 5 }, 0, ISOTP_STD }, // Light sensor reading, working but no actual usecase for
//{ 0x745, 0x765, VEHICLE_POLL_TYPE_OBDIIEXTENDED, 0x6214, { 0, 5, 5, 5 }, 0, ISOTP_STD }, // Rain detection, working butno actual usecase for
{ 0x745, 0x765, VEHICLE_POLL_TYPE_OBDIIEXTENDED, 0x4060, { 0, 600, 0, 0 }, 0, ISOTP_STD }, // Vehicle identificaftion number