Add inverter temperature
This commit is contained in:
parent
17149d7b7c
commit
6d6e4cc398
|
@ -86,6 +86,7 @@ static const OvmsVehicle::poll_pid_t renault_zoe_polls[] = {
|
||||||
|
|
||||||
//Motor Inverter
|
//Motor Inverter
|
||||||
//{ 0x18dadff1, 0x18daf1df, VEHICLE_POLL_TYPE_OBDIISESSION, SESSION_EXTDIAG, { 60, 60, 60, 60 }, 0, ISOTP_EXTFRAME }, // OBD Extended Diagnostic Session
|
//{ 0x18dadff1, 0x18daf1df, VEHICLE_POLL_TYPE_OBDIISESSION, SESSION_EXTDIAG, { 60, 60, 60, 60 }, 0, ISOTP_EXTFRAME }, // OBD Extended Diagnostic Session
|
||||||
|
{ 0x18dadff1, 0x18daf1df, VEHICLE_POLL_TYPE_OBDIIEXTENDED, 0x700C, { 0, 10, 3, 10 }, 0, ISOTP_EXTFRAME }, // Inverter temperature
|
||||||
{ 0x18dadff1, 0x18daf1df, VEHICLE_POLL_TYPE_OBDIIEXTENDED, 0x700F, { 0, 10, 3, 10 }, 0, ISOTP_EXTFRAME }, // Stator Temperature 1
|
{ 0x18dadff1, 0x18daf1df, VEHICLE_POLL_TYPE_OBDIIEXTENDED, 0x700F, { 0, 10, 3, 10 }, 0, ISOTP_EXTFRAME }, // Stator Temperature 1
|
||||||
{ 0x18dadff1, 0x18daf1df, VEHICLE_POLL_TYPE_OBDIIEXTENDED, 0x7010, { 0, 10, 3, 10 }, 0, ISOTP_EXTFRAME }, // Stator Temperature 2
|
{ 0x18dadff1, 0x18daf1df, VEHICLE_POLL_TYPE_OBDIIEXTENDED, 0x7010, { 0, 10, 3, 10 }, 0, ISOTP_EXTFRAME }, // Stator Temperature 2
|
||||||
|
|
||||||
|
@ -230,13 +231,18 @@ void OvmsVehicleRenaultZoePh2::IncomingPollReply(canbus* bus, uint16_t type, uin
|
||||||
*/
|
*/
|
||||||
void OvmsVehicleRenaultZoePh2::IncomingINV(uint16_t type, uint16_t pid, const char* data, uint16_t len) {
|
void OvmsVehicleRenaultZoePh2::IncomingINV(uint16_t type, uint16_t pid, const char* data, uint16_t len) {
|
||||||
switch (pid) {
|
switch (pid) {
|
||||||
case 0x700F: { // Motor temperature
|
case 0x700C: { // Inverter temperature
|
||||||
|
StandardMetrics.ms_v_inv_temp->SetValue(float((CAN_UINT(0) - 40)), Celcius);
|
||||||
|
ESP_LOGD(TAG, "700C INV ms_v_inv_temp: %f", float((CAN_UINT(0) - 40)));
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case 0x700F: { // Motor, Stator1 temperature
|
||||||
StandardMetrics.ms_v_mot_temp->SetValue(float((CAN_UINT(0) - 40)), Celcius);
|
StandardMetrics.ms_v_mot_temp->SetValue(float((CAN_UINT(0) - 40)), Celcius);
|
||||||
mt_mot_temp_stator1->SetValue(float((CAN_UINT(0) - 40)), Celcius);
|
mt_mot_temp_stator1->SetValue(float((CAN_UINT(0) - 40)), Celcius);
|
||||||
ESP_LOGD(TAG, "700F INV ms_v_mot_temp: %f", float((CAN_UINT(0) - 40)));
|
ESP_LOGD(TAG, "700F INV ms_v_mot_temp: %f", float((CAN_UINT(0) - 40)));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 0x7010: {
|
case 0x7010: { // Stator 2 temperature
|
||||||
mt_mot_temp_stator2->SetValue(float((CAN_UINT(0) - 40)), Celcius);
|
mt_mot_temp_stator2->SetValue(float((CAN_UINT(0) - 40)), Celcius);
|
||||||
ESP_LOGD(TAG, "7010 INV mt_mot_temp_stator2: %f", float((CAN_UINT(0) - 40)));
|
ESP_LOGD(TAG, "7010 INV mt_mot_temp_stator2: %f", float((CAN_UINT(0) - 40)));
|
||||||
break;
|
break;
|
||||||
|
@ -299,8 +305,8 @@ void OvmsVehicleRenaultZoePh2::IncomingEVC(uint16_t type, uint16_t pid, const ch
|
||||||
ESP_LOGD(TAG, "7ec inv temp: %d", CAN_BYTE(0) - 40);
|
ESP_LOGD(TAG, "7ec inv temp: %d", CAN_BYTE(0) - 40);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 0xF446: { //Ambient temperature
|
case 0xF446: { // Ambient temperature
|
||||||
StandardMetrics.ms_v_env_temp->SetValue((float) (CAN_UINT(0) - 40) * 0.01);
|
StandardMetrics.ms_v_env_temp->SetValue((float) (CAN_UINT(0) - 40) * 0.01, Celcius);
|
||||||
ESP_LOGD(TAG, "F446 EVC ms_v_env_temp: %f", (CAN_UINT(0) - 40) * 0.01);
|
ESP_LOGD(TAG, "F446 EVC ms_v_env_temp: %f", (CAN_UINT(0) - 40) * 0.01);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -374,7 +380,7 @@ void OvmsVehicleRenaultZoePh2::IncomingLBC(uint16_t type, uint16_t pid, const ch
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 0x9012: { //Battery average temperature
|
case 0x9012: { //Battery average temperature
|
||||||
StandardMetrics.ms_v_bat_temp->SetValue((float) ((CAN_UINT(0) - 40));
|
StandardMetrics.ms_v_bat_temp->SetValue((float) (CAN_UINT(0) - 40));
|
||||||
ESP_LOGD(TAG, "9012 LBC ms_v_bat_temp: %f", ((CAN_UINT(0) - 40));
|
ESP_LOGD(TAG, "9012 LBC ms_v_bat_temp: %f", ((CAN_UINT(0) - 40));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue