Changes between Version 1 and Version 2 of ControlSystems/SoftwareTeam/Training/GettingStarted/Autonomous


Ignore:
Timestamp:
Oct 31, 2019, 7:09:55 PM (6 years ago)
Author:
David Albert
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ControlSystems/SoftwareTeam/Training/GettingStarted/Autonomous

    v1 v2  
    11== 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 feet and then stop (harder than it sounds).
     2In 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).
    33
    4 Create another program using the !TimedRobot java template and name it !AutonomousTest1. Modify the generated code as follows:
     4Create another program using the !TimedRobot java template and name it AutonomousTest1. Modify the generated code as follows:
    55
    66* Add the following imports: