battery manager fix and stop rovers when we should

This commit is contained in:
legop3
2025-12-24 16:58:06 -05:00
parent 195ecb7d61
commit 0b564c7ee7
2 changed files with 4 additions and 1 deletions
+2 -1
View File
@@ -147,7 +147,8 @@ function handleSensorEvent({ roverId, sensors, batteryState }) {
});
}
const waitingHalfOrMore = waitingPercent != null && waitingPercent >= 0.5;
// const waitingHalfOrMore = waitingPercent != null && waitingPercent >= 0.5;
const waitingHalfOrMore = true;
const shouldUnlock = state.batteryLocked && waitingLongEnough && waitingHalfOrMore;
if (shouldUnlock) {