Skip to content

Commit

Permalink
Added 'robotPowerDown' completion state
Browse files Browse the repository at this point in the history
  • Loading branch information
thoukydides committed Sep 17, 2024
1 parent 8d9daee commit 71f0912
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/aeg-robot-log.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ const completionNames: Record<Completion, string> = {
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
Expand Down
3 changes: 2 additions & 1 deletion src/aegapi-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ export type Completion = 'abortedByUser'
| 'cleaningFinishedSuccessfulInCharger'
| 'cleaningFinishedSuccessfulInStartPose'
| 'endedNotFindingCharger'
| 'error';
| 'error'
| 'robotPowerDown';

// Zone status
export type ZoneStatusStatus = 'finished' | 'terminated' | 'aborted';
Expand Down

0 comments on commit 71f0912

Please sign in to comment.