Changes between Version 17 and Version 18 of ControlSystems/SoftwareTeam/Training/GettingStarted
- Timestamp:
- Sep 8, 2019, 11:07:31 PM (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ControlSystems/SoftwareTeam/Training/GettingStarted
v17 v18 27 27 The best way to learn about robot programming a robot is to start with a simple example program, run it, study what it does, and incrementally expand its functionality. The WPILib software you installed includes example programs that you can compile and run on a RoboRIO. Review [https://wpilib.screenstepslive.com/s/currentCS/m/79833/l/941601-vs-code-basics-and-wpilib-in-vs-code how to use VSCode] and then try [https://wpilib.screenstepslive.com/s/currentCS/m/79833/l/932465-creating-a-new-wpilib-project-in-vs-code creating a new robot project]. 28 28 29 * WPILib provides [https://wpilib.screenstepslive.com/s/currentCS/m/java/l/599697-choosing-a-base-class 3 frameworks] for building robot programs. Build your first program using the TimedRobot (previously had beenIterativeRobot) framework as described [https://wpilib.screenstepslive.com/s/currentCS/m/java/l/145307-creating-your-benchtop-test-program here].29 * WPILib provides [https://wpilib.screenstepslive.com/s/currentCS/m/java/l/599697-choosing-a-base-class 3 frameworks] for building robot programs. Build your first program using the !TimedRobot (previously had been !IterativeRobot) framework as described [https://wpilib.screenstepslive.com/s/currentCS/m/java/l/145307-creating-your-benchtop-test-program here]. 30 30 31 31 * Connect your laptop to the RoboRIO USB port … … 38 38 **Congratulations**, you've just built and run your first robot program. 39 39 40 * Create another WPILib project based on the TimedRobot framework40 * Create another WPILib project based on the !TimedRobot framework 41 41 * Study an example program. This is a simple program for one of our test robots: Peanut 2. 42 42 * 2-wheel-drive (2WD) robot with two CIM motors driving plaction wheels … … 214 214 * You can learn more about FRC robot programming [https://frc-pdr.readthedocs.io/en/latest/index.html here] 215 215 * You can learn more about game controllers [https://github.com/MTHSRoboticsClub/Documentation/wiki/Drive-Controller-Comparison here] 216 217 * Note: you can also program and operate a peanut robot wirelessly: 218 * Find the Peanut's !WiFi access point and connect to it; the default password is "password" 219 * From within VSCode, choose WPILib->Deploy Robot Code 220 * Launch the Driver Station 221 * Enable and then start driving! 222 223 * Note: the sample program assumes two !TalonSRX motor controllers at IDs 3 and 4. You can set them using the CTRE Phoneix Tuner 224 * Note: the !RoboRIO web web interface is available via browser at 10.25.37.2