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
@@ -40,7 +40,9 @@ function OvercurrentOverlay({ roverId = null, overcurrentLimiter = null, compact
? 'Drive stopped'
: status === 'recovering'
? 'Protection recovering'
: 'Overcurrent limiting';
: status === 'limiting'
? 'Overcurrent limiting'
: 'Overcurrent detected';
const detail = bypassed
? 'Admin bypass'
: stopped && protection?.drive?.requiresNeutral
@@ -35,6 +35,7 @@ function statusLabel(protection) {
if (protection?.adminImmune) return 'Admin bypass';
if (protection?.status === 'stopped') return 'Drive stopped';
if (protection?.status === 'limiting') return 'Limiting';
if (protection?.status === 'overcurrent') return 'Overcurrent detected';
if (protection?.status === 'recovering') return 'Recovering';
return 'Ready';
}
+1
View File
@@ -64,6 +64,7 @@ export function useOvercurrentLimiter(roverId) {
},
overcurrent: { motors: motorFlags, groups: groupFlags },
isActive: protection?.status === 'limiting'
|| protection?.status === 'overcurrent'
|| protection?.status === 'stopped'
|| protection?.status === 'recovering',
adminImmune,