forked from achamaikin/CCSModuleSW30Web
stable beta version
This commit is contained in:
@@ -114,8 +114,8 @@ typedef struct {
|
||||
uint16_t measuredChargingVoltage;
|
||||
uint16_t measuredChargingCurrent;
|
||||
uint16_t highestVoltageOfBatteryCell;
|
||||
uint8_t groupNrOfCellWithHighestVoltage;
|
||||
uint16_t currentChargeState;
|
||||
//uint8_t groupNrOfCellWithHighestVoltage;
|
||||
uint8_t currentChargeState;
|
||||
uint16_t estimatedRemainingChargingTime;
|
||||
|
||||
}GBT_BCS_t;
|
||||
|
||||
@@ -299,8 +299,12 @@ void GBT_ChargerTask(){
|
||||
//GBT_ChargerCurrentStatus.chargingPermissible = 0b1111111111111100;//NOT PERMITTED
|
||||
GBT_ChargerCurrentStatus.chargingPermissible = 0b1111111111111101;
|
||||
GBT_ChargerCurrentStatus.chargingTime = (get_Current_Time() - GBT_TimeChargingStarted)/60;
|
||||
GBT_ChargerCurrentStatus.outputCurrent = 4000 - GBT_EDCAN_Output.requestedCurrent;
|
||||
GBT_ChargerCurrentStatus.outputVoltage = GBT_EDCAN_Output.requestedVoltage;
|
||||
// GBT_ChargerCurrentStatus.outputCurrent = 4000 - GBT_EDCAN_Output.requestedCurrent;
|
||||
// GBT_ChargerCurrentStatus.outputVoltage = GBT_EDCAN_Output.requestedVoltage;
|
||||
GBT_ChargerCurrentStatus.outputCurrent = 4000 - GBT_EDCAN_Input.measuredCurrent;
|
||||
GBT_ChargerCurrentStatus.outputVoltage = GBT_EDCAN_Input.measuredVoltage;
|
||||
GBT_EDCAN_Output.chargingElapsedTimeMin = (get_Current_Time() - GBT_TimeChargingStarted)/60;
|
||||
GBT_EDCAN_Output.chargingElapsedTimeSec = (get_Current_Time() - GBT_TimeChargingStarted)%60;
|
||||
|
||||
if(j_rx.state == 0) GBT_SendCCS();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user