wiki:ControlSystems/SoftwareTeam/Training/GettingStarted

Version 4 (modified by David Albert, 7 years ago) (diff)

--

Welcome to Software!

Gear Needed

To start developing robot software for team 2537 you will need the following

Setup your laptop:

  1. Install the Java JDK 8
  2. Install Microsoft VSCode and the latest WPILib extension. Detailed instructions are here
  3. Install the National Instruments (NI) FRC 2018 Update Suite here. Detailed instructions are here
  4. Install the CTRE Phoenix Framework

Start with an example

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 how to use VSCode and then try creating a new robot project.

  • WPILib provides 3 frameworks for building robot programs. Build your first program using the iterative robot framework as described here.
  • Connect your laptop to the RoboRIO USB port
  • Connect your joystick or xbox controller to another USB port on your laptop
  • Launch the NI Driver Station Software. For details see here
  • Confirm that the software detects your joystick/controller and responds to button presses and stick movement
  • Use Microsoft Internet Explorer (not Chrome or Firefox) to connect to the RoboRIO's web interface (usually at http://172.22.11.2) and confirm that you have connectivity with the RobORIO
  • Create a test project and follow these instructions to build, load, and run it on your RoboRIO/Robot

Congratulations, you've just built and run your first robot program.

  • Create another WPILib project based on the IterativeRobot? framework
    • Start with the base program
  • You can learn more about FRC robot programming here
  • You can learn more about game controllers here