This commit is contained in:
legop3
2026-07-17 14:38:47 -04:00
parent c9842d7ba5
commit 955f6f213d
9 changed files with 17 additions and 7 deletions
@@ -421,6 +421,10 @@ function createOvercurrentProtectionService(options = {}) {
if (state.driveBlocked) return 'stopped';
const anyLimited = MOTOR_KEYS.some((key) => state.motors[key].cap < 1);
if (anyLimited && anyOvercurrent) return 'limiting';
// The raw Roomba flag is useful operator information even while stress is
// still inside the transient grace region. Reporting it separately keeps
// HUD visibility immediate without falsely claiming output is being scaled.
if (anyOvercurrent) return 'overcurrent';
if (anyLimited) return 'recovering';
return 'idle';
}