Log BMS because no values shown
This commit is contained in:
parent
3432b69207
commit
cf5f1572c6
2 changed files with 4 additions and 4 deletions
|
@ -153,7 +153,7 @@ void OvmsVehicle::BmsSetCellLimitsTemperature(float min, float max)
|
||||||
|
|
||||||
void OvmsVehicle::BmsSetCellVoltage(int index, float value)
|
void OvmsVehicle::BmsSetCellVoltage(int index, float value)
|
||||||
{
|
{
|
||||||
// ESP_LOGV(TAG,"BmsSetCellVoltage(%d,%f) c=%d", index, value, m_bms_bitset_cv);
|
ESP_LOGV(TAG,"BmsSetCellVoltage(%d,%f) c=%d", index, value, m_bms_bitset_cv);
|
||||||
if ((index<0)||(index>=m_bms_readings_v)) return;
|
if ((index<0)||(index>=m_bms_readings_v)) return;
|
||||||
if ((value<m_bms_limit_vmin)||(value>m_bms_limit_vmax)) return;
|
if ((value<m_bms_limit_vmin)||(value>m_bms_limit_vmax)) return;
|
||||||
m_bms_voltages[index] = value;
|
m_bms_voltages[index] = value;
|
||||||
|
@ -275,7 +275,7 @@ void OvmsVehicle::BmsSetCellVoltage(int index, float value)
|
||||||
|
|
||||||
void OvmsVehicle::BmsSetCellTemperature(int index, float value)
|
void OvmsVehicle::BmsSetCellTemperature(int index, float value)
|
||||||
{
|
{
|
||||||
// ESP_LOGV(TAG,"BmsSetCellTemperature(%d,%f) c=%d", index, value, m_bms_bitset_ct);
|
ESP_LOGV(TAG,"BmsSetCellTemperature(%d,%f) c=%d", index, value, m_bms_bitset_ct);
|
||||||
if ((index<0)||(index>=m_bms_readings_t)) return;
|
if ((index<0)||(index>=m_bms_readings_t)) return;
|
||||||
if ((value<m_bms_limit_tmin)||(value>m_bms_limit_tmax)) return;
|
if ((value<m_bms_limit_tmin)||(value>m_bms_limit_tmax)) return;
|
||||||
m_bms_temperatures[index] = value;
|
m_bms_temperatures[index] = value;
|
||||||
|
|
|
@ -66,7 +66,7 @@ void OvmsVehicleRenaultZoePh2::IncomingLBC(uint16_t type, uint16_t pid, const ch
|
||||||
StandardMetrics.ms_v_bat_energy_recd->SetValue((float) (CAN_UINT32(0) * 0.001), kWh);
|
StandardMetrics.ms_v_bat_energy_recd->SetValue((float) (CAN_UINT32(0) * 0.001), kWh);
|
||||||
ESP_LOGD(TAG, "9246 LBC ms_v_bat_energy_recd: %f", CAN_UINT32(0) * 0.001);
|
ESP_LOGD(TAG, "9246 LBC ms_v_bat_energy_recd: %f", CAN_UINT32(0) * 0.001);
|
||||||
break;
|
break;
|
||||||
}
|
}/* Acquired by ovms_bms
|
||||||
case 0x9007: { //Cell Max Voltage
|
case 0x9007: { //Cell Max Voltage
|
||||||
StandardMetrics.ms_v_bat_pack_vmax->SetValue((float) (CAN_UINT(0) * 0.001), Volts);
|
StandardMetrics.ms_v_bat_pack_vmax->SetValue((float) (CAN_UINT(0) * 0.001), Volts);
|
||||||
ESP_LOGD(TAG, "9007 LBC ms_v_bat_pack_vmax: %f", CAN_UINT(0) * 0.001);
|
ESP_LOGD(TAG, "9007 LBC ms_v_bat_pack_vmax: %f", CAN_UINT(0) * 0.001);
|
||||||
|
@ -86,7 +86,7 @@ void OvmsVehicleRenaultZoePh2::IncomingLBC(uint16_t type, uint16_t pid, const ch
|
||||||
StandardMetrics.ms_v_bat_pack_tmin->SetValue((float) (CAN_UINT(0) * 0.0625 - 40), Celcius);
|
StandardMetrics.ms_v_bat_pack_tmin->SetValue((float) (CAN_UINT(0) * 0.0625 - 40), Celcius);
|
||||||
ESP_LOGD(TAG, "9013 LBC ms_v_bat_pack_tmin: %f", CAN_UINT(0) * 0.0625 - 40);
|
ESP_LOGD(TAG, "9013 LBC ms_v_bat_pack_tmin: %f", CAN_UINT(0) * 0.0625 - 40);
|
||||||
break;
|
break;
|
||||||
}
|
}*/
|
||||||
case 0x9018: { //Max charge power
|
case 0x9018: { //Max charge power
|
||||||
mt_bat_max_charge_power->SetValue((float) (CAN_UINT(0) * 0.01), kW);
|
mt_bat_max_charge_power->SetValue((float) (CAN_UINT(0) * 0.01), kW);
|
||||||
ESP_LOGD(TAG, "9018 LBC mt_bat_max_charge_power: %f", CAN_UINT(0) * 0.01);
|
ESP_LOGD(TAG, "9018 LBC mt_bat_max_charge_power: %f", CAN_UINT(0) * 0.01);
|
||||||
|
|
Loading…
Reference in a new issue