Skip to content

Commit

Permalink
Merge pull request #159 from the-orange-alliance/fix-food-cancel
Browse files Browse the repository at this point in the history
Fix food production not canceling
  • Loading branch information
kyle-flynn authored Sep 25, 2024
2 parents 63a0e50 + c0866aa commit eec3578
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/models/src/fcs/FeedingTheFutureFCS.ts
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,7 @@ export class PacketManager {
LedStripA.ALL_STRIPS,
result
);
applySetpointToMotors(0, MotorA.ALL_GOALS, result);

this.broadcastCallback(result);
};
Expand Down Expand Up @@ -613,9 +614,8 @@ export class PacketManager {
currentState !== NexusGoalState.Full &&
previousState === NexusGoalState.Full
) {
// // Cancel timer if there is one
// clearTimeout(this.timers.get(goal));
this.actionQueue.delete(goal);
// Cancel timer if there is one
this.actionQueue.delete(goal + ':leds');
}

// Broadcast update
Expand Down

0 comments on commit eec3578

Please sign in to comment.