From 71f0912e1cf42ba6a54bfdd565ac055b761e059d Mon Sep 17 00:00:00 2001 From: Alexander Thoukydides Date: Tue, 17 Sep 2024 13:55:05 +0100 Subject: [PATCH] Added 'robotPowerDown' completion state --- src/aeg-robot-log.ts | 3 ++- src/aegapi-types.ts | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/aeg-robot-log.ts b/src/aeg-robot-log.ts index cfb38a2..b026849 100644 --- a/src/aeg-robot-log.ts +++ b/src/aeg-robot-log.ts @@ -59,7 +59,8 @@ const completionNames: Record = { cleaningFinishedSuccessfulInCharger: 'Successfully cleaned and returned to charger', cleaningFinishedSuccessfulInStartPose: 'Successfully cleaned and returned to starting location', endedNotFindingCharger: 'Failed to return home to charger', - error: 'Error' + error: 'Error', + robotPowerDown: 'Powered down' }; // Robot tick duration diff --git a/src/aegapi-types.ts b/src/aegapi-types.ts index 62e3cfb..3f4692e 100644 --- a/src/aegapi-types.ts +++ b/src/aegapi-types.ts @@ -62,7 +62,8 @@ export type Completion = 'abortedByUser' | 'cleaningFinishedSuccessfulInCharger' | 'cleaningFinishedSuccessfulInStartPose' | 'endedNotFindingCharger' - | 'error'; + | 'error' + | 'robotPowerDown'; // Zone status export type ZoneStatusStatus = 'finished' | 'terminated' | 'aborted';