FRC1761 / RoboRioCode

RobotSource Code for FRC using Roborio
BSD 3-Clause "New" or "Revised" License
1 stars 0 forks source link

Write a timed Autonomous Command #2

Closed ankiewiczk closed 6 years ago

ankiewiczk commented 6 years ago

This should be as straight forward as filling in code in the execute method of the AutonomousCommand.java file

We need to give the commands to the drivetrain to drive and then use the Timer.delay(int seconds) and then turn the motors off. I believe you access drivetrain subsystem as a static property of robot then just call its drive method with a left and right value.

eventually we should try to use the encoders to drive instead of just using a timer but that will be a second task once we have at least a reasonable working autonomous command.