AdvantageKit
AdvantageKit copied to clipboard
Logging Commands
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)
)