Changes between Version 1 and Version 2 of ControlSystems/SoftwareTeam/Training/GettingStarted/Autonomous
- Timestamp:
- Oct 31, 2019, 7:09:55 PM (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ControlSystems/SoftwareTeam/Training/GettingStarted/Autonomous
v1 v2 1 1 == Autonomous 2 In the examples above, we learned to apply power to the wheel motors and to see how far the wheel has turned using encoders. Now we're going to put them together to drive the robot a controlled distance. We're also going to learn about autonomous mode. Every FRC match starts with a 15 second autonmous period where the robot drives itself and tries to accomplish some task with no human driver. For this example, our task is just to drive 3 feetand then stop (harder than it sounds).2 In the previous examples, we learned to [wiki:ControlSystems/SoftwareTeam/Training/GettingStarted/DCMotor apply power to the wheel motors] and to see how far the wheel has turned using [wiki:ControlSystems/SoftwareTeam/Training/GettingStarted/Encoders encoders]. Now we're going to put them together to drive the robot a controlled distance. We're also going to learn about autonomous mode. Every FRC match starts with a 15 second autonmous period where the robot drives itself and tries to accomplish some task with no human driver. For this example, our task is to drive 3 feet forward and then stop (harder than it sounds). 3 3 4 Create another program using the !TimedRobot java template and name it !AutonomousTest1. Modify the generated code as follows:4 Create another program using the !TimedRobot java template and name it AutonomousTest1. Modify the generated code as follows: 5 5 6 6 * Add the following imports: