use bpx voltage instead
Some checks failed
EIVE/eive-obsw/pipeline/pr-main There was a failure building this commit
Some checks failed
EIVE/eive-obsw/pipeline/pr-main There was a failure building this commit
This commit is contained in:
parent
f2e15bb134
commit
5036836b44
@ -211,7 +211,7 @@ void PowerController::watchStateOfCharge() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ReturnValue_t PowerController::calculateOpenCircuitVoltageCharge() {
|
ReturnValue_t PowerController::calculateOpenCircuitVoltageCharge() {
|
||||||
float vBatCorrected = p60CoreHk.batteryVoltage.value - iBat * batteryInternalResistance;
|
float vBatCorrected = bpxBatteryHk.battVoltage.value - iBat * batteryInternalResistance;
|
||||||
uint8_t lookUpTableIdx = LOOK_UP_TABLE_MAX_IDX;
|
uint8_t lookUpTableIdx = LOOK_UP_TABLE_MAX_IDX;
|
||||||
ReturnValue_t result = lookUpTableOcvIdxFinder(vBatCorrected, lookUpTableIdx);
|
ReturnValue_t result = lookUpTableOcvIdxFinder(vBatCorrected, lookUpTableIdx);
|
||||||
if (result != returnvalue::OK) {
|
if (result != returnvalue::OK) {
|
||||||
@ -231,7 +231,7 @@ ReturnValue_t PowerController::calculateCoulombCounterCharge() {
|
|||||||
return returnvalue::FAILED;
|
return returnvalue::FAILED;
|
||||||
}
|
}
|
||||||
if ((not pwrCtrlCoreHk.coulombCounterCharge.isValid()) or
|
if ((not pwrCtrlCoreHk.coulombCounterCharge.isValid()) or
|
||||||
(p60CoreHk.batteryVoltage.value > coulombCounterVoltageUpperThreshold and
|
(bpxBatteryHk.battVoltage.value > coulombCounterVoltageUpperThreshold and
|
||||||
pwrCtrlCoreHk.coulombCounterCharge.value >= coulombCounterChargeUpperThreshold)) {
|
pwrCtrlCoreHk.coulombCounterCharge.value >= coulombCounterChargeUpperThreshold)) {
|
||||||
coulombCounterCharge = openCircuitVoltageCharge;
|
coulombCounterCharge = openCircuitVoltageCharge;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user