AdvantageKit icon indicating copy to clipboard operation
AdvantageKit copied to clipboard

Logging Commands

Open blaze-developer opened this issue 10 months ago • 0 comments

It would be useful to have built in command factories for recording outputs, this would make it simpler to record the state of a SequentialCommandGroup.

E.g.

Commands.sequence(
    grabber.setVelocityCommand(kCollectVelocity),
    LoggerCommands.recordOutput("AlgaeCollect/State", "Waiting"),
    Commands.waitUntil(() -> !grabber.algaeSensor() && grabber.getGrabberVelocity().abs(DegreesPerSecond) < 30),
    LoggerCommands.recordOutput("AlgaeCollect/State", "Grabbed On"),
    grabber.setVoltageCommand(kHoldVoltage)
)

blaze-developer avatar Feb 16 '25 23:02 blaze-developer