mirror of
https://github.com/legop3/MultiRoombaRover.git
synced 2026-09-16 01:21:20 -04:00
autodock is useful after all
This commit is contained in:
@@ -288,6 +288,11 @@ function startDockGuard(record, reason, idleMs) {
|
||||
state.reason = reason;
|
||||
state.startedAt = Date.now();
|
||||
const reasonText = reason === 'passive' ? 'passive mode' : 'idle and undocked';
|
||||
sendAlert({
|
||||
color: ALERT_COLOR,
|
||||
title: 'Dock Guard Triggered',
|
||||
message: `${record.id} ${reasonText}. Seeking dock and restarting sensors until movement.`,
|
||||
});
|
||||
publishEvent({
|
||||
source: 'roverManager',
|
||||
type: 'rover.dockGuard',
|
||||
|
||||
Reference in New Issue
Block a user