We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1337180 commit 6787d23Copy full SHA for 6787d23
BMS/src/BmsThread.cpp
@@ -413,12 +413,15 @@ void BMSThread::threadWorker() {
413
} else {
414
ThisThread::sleep_for(100ms); // 100 ms
415
}
416
- if (bmsState == BMSThreadState::BMSFaultRecover) {
+ if (bmsState == BMSThreadState::BMSFaultRecover && !(minVoltage <= BMS_FAULT_VOLTAGE_THRESHOLD_LOW ||
417
+ maxVoltage >= BMS_FAULT_VOLTAGE_THRESHOLD_HIGH ||
418
+ minTemp <= BMS_FAULT_TEMP_THRESHOLD_LOW ||
419
+ maxTemp >= BMS_FAULT_TEMP_THRESHOLD_HIGH)) {
420
bmsState = BMSThreadState::BMSIdle;
421
422
423
424
425
void BMSThread::throwBmsFault() {
- // bmsState = BMSThreadState::BMSFault;
426
+ bmsState = BMSThreadState::BMSFault;
427
0 commit comments