Class BlingUtil
java.lang.Object
frc.alotobots.library.subsystems.bling.util.BlingUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Trigger
scheduleAtMatchTime
(Command command, Time timeRemaining) Schedules a command to run when a specific amount of time remains in the current match period.static Trigger
scheduleAtMatchTime
(Command command, Time timeRemaining, Time tolerance, Time totalMatchTime) Schedules a command to run when a specific amount of time remains in the current match period.
-
Constructor Details
-
BlingUtil
public BlingUtil()
-
-
Method Details
-
scheduleAtMatchTime
public static Trigger scheduleAtMatchTime(Command command, Time timeRemaining, Time tolerance, Time totalMatchTime) Schedules a command to run when a specific amount of time remains in the current match period. Handles different timing behaviors based on FMS connection status. Only runs during teleop.- Parameters:
command
- The command to scheduletimeRemaining
- Time remaining in the match when the command should triggertolerance
- Time tolerance to account for periodic executiontotalMatchTime
- Total duration of the match (typically 135 seconds for teleop)- Returns:
- The created Trigger object that will schedule the command
-
scheduleAtMatchTime
Schedules a command to run when a specific amount of time remains in the current match period. Uses default tolerance of 0.1 seconds and default teleop time of 135 seconds.- Parameters:
command
- The command to scheduletimeRemaining
- Time remaining in the match when the command should trigger- Returns:
- The created Trigger object that will schedule the command
-