Skip to content

Commit

Permalink
Use separate keys for leds and motor timestamps
Browse files Browse the repository at this point in the history
  • Loading branch information
jfabellera committed Sep 25, 2024
1 parent 39b3936 commit 604b4b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/models/src/fcs/FeedingTheFutureFCS.ts
Original file line number Diff line number Diff line change
Expand Up @@ -686,7 +686,7 @@ export class PacketManager {
this.broadcastCallback(result);

// Stop motor after the configured duration
this.actionQueue.set(goal, {
this.actionQueue.set(goal + ':motor', {
timestamp:
Date.now() + this.fieldOptions.foodProductionMotorDurationMs,
callback: () => {
Expand Down Expand Up @@ -735,7 +735,7 @@ export class PacketManager {
);
this.broadcastCallback(result);

this.actionQueue.set(goal, {
this.actionQueue.set(goal + ':leds', {
timestamp:
Date.now() +
Math.floor(this.fieldOptions.foodProductionDelayMs / steps),
Expand Down

0 comments on commit 604b4b4

Please sign in to comment.