comparison Small_CPU/Src/scheduler.c @ 859:d32901746950 Evo_2_23

Improvment battery charger visualization: In the previous version the green flash (charge complete) was shown even battery had not reached 100% charge. Root cause was that the pin signaling the end of charge could be raised for other reasons then a full battery. The new version will show the green flash only in case the battery is rated as full. In addition the graph visualization has been updated to continously progress. In the previous version it only progressed in case the charge value changed. Especially at charging start the charger is doing some battery evaluation which does not increase the charge state. In such a case the graph seemed to be frozen.
author Ideenmodellierer
date Tue, 07 May 2024 21:20:33 +0200
parents 91d5ef16f1fd
children 3311b720a072
comparison
equal deleted inserted replaced
858:08ea8e9d6cfe 859:d32901746950
140 global.sensorError[i] = HAL_OK; // HAL_OK = 0; 140 global.sensorError[i] = HAL_OK; // HAL_OK = 0;
141 } 141 }
142 142
143 global.dataSendToMaster.RTE_VERSION_high = firmwareVersionHigh();//RTE_VERSION_HIGH;; 143 global.dataSendToMaster.RTE_VERSION_high = firmwareVersionHigh();//RTE_VERSION_HIGH;;
144 global.dataSendToMaster.RTE_VERSION_low = firmwareVersionLow();//RTE_VERSION_LOW;; 144 global.dataSendToMaster.RTE_VERSION_low = firmwareVersionLow();//RTE_VERSION_LOW;;
145 global.dataSendToMaster.chargeStatus = 0; 145 global.dataSendToMaster.chargeStatus = CHARGER_off;
146 146
147 global.dataSendToMaster.power_on_reset = 0; 147 global.dataSendToMaster.power_on_reset = 0;
148 global.dataSendToMaster.header.checkCode[0] = 0xA1; 148 global.dataSendToMaster.header.checkCode[0] = 0xA1;
149 global.dataSendToMaster.header.checkCode[1] = SPI_RX_STATE_OFFLINE; 149 global.dataSendToMaster.header.checkCode[1] = SPI_RX_STATE_OFFLINE;
150 global.dataSendToMaster.header.checkCode[2] = 0xA3; 150 global.dataSendToMaster.header.checkCode[2] = 0xA3;
158 global.sync_error_count = 0; 158 global.sync_error_count = 0;
159 global.check_sync_not_running = 0; 159 global.check_sync_not_running = 0;
160 160
161 global.deviceDataSendToMaster.RTE_VERSION_high = firmwareVersionHigh();//RTE_VERSION_HIGH; 161 global.deviceDataSendToMaster.RTE_VERSION_high = firmwareVersionHigh();//RTE_VERSION_HIGH;
162 global.deviceDataSendToMaster.RTE_VERSION_low = firmwareVersionLow();//RTE_VERSION_LOW; 162 global.deviceDataSendToMaster.RTE_VERSION_low = firmwareVersionLow();//RTE_VERSION_LOW;
163 global.deviceDataSendToMaster.chargeStatus = 0; 163 global.deviceDataSendToMaster.chargeStatus = CHARGER_off;
164 164
165 global.deviceDataSendToMaster.power_on_reset = 0; 165 global.deviceDataSendToMaster.power_on_reset = 0;
166 global.deviceDataSendToMaster.header.checkCode[0] = 0xDF; 166 global.deviceDataSendToMaster.header.checkCode[0] = 0xDF;
167 global.deviceDataSendToMaster.header.checkCode[1] = 0xDE; 167 global.deviceDataSendToMaster.header.checkCode[1] = 0xDE;
168 global.deviceDataSendToMaster.header.checkCode[2] = 0xDD; 168 global.deviceDataSendToMaster.header.checkCode[2] = 0xDD;