-
Notifications
You must be signed in to change notification settings - Fork 1
Autonomous Routines
So, to perform this turn, we will be taking an odd approach, where only one side of the drivetrain will move, while the other remains stationary. We discovered in testing that doing a tank turn works most of the time, but there are times where the motors can't receive the same amount of power. However, this isn't encountered with the one-sided turn.
One way we can do this is by programmatically getting the Alliance Color from the FMS (DriverStation.getInstance().getAlliance()
) and setting which side of the motor should turn. However, this means that we will have to remember to set this when testing. This can be done from the FRC Driver Station very easily.
These routines involve the robot placing the gear on the peg. Also, the wheel we turn with will vary based on position.
Hopper Red: Left Hopper Blue: Right Boiler Red: Right Boiler Blue: Left
- Drive Forward to Baseline
- Turn to Lift Peg
- Drive Forward to Peg
- Drive Forward to Peg
- Drive Forward to Baseline
- Turn to Lift Peg
- Drive Forward to Peg
Baseline: 93.25 inches (From Game Manual)