2021:Programming
From 1511Wookiee
Jump to navigationJump to search
General programming stuff relevant to all subsystems should be documented here.
Tasks
Task | Priority | Who is Responsible | Designed? By Who? | Implemented? | Tested working? Date |
---|---|---|---|---|---|
Drive Sensitivity Issues | 1 | Ishan | Ishan | Yes | 2/13 |
New shooter hood positioning control | 2 | Ishan | No | No | No |
Galactic Search A | 3 | Peter | Peter | Yes | Almost! Needs number tuning |
Galactic Search B | 3 | Ishan | No | No | No |
AutoNav Slalom | 3 | David | David | Yes | 2/18 |
AutoNav Bounce Path | 3 | Peter | Peter | Yes | 2/20 |
AutoNav Barrel Racing | 3 | Trevor | Trevor | Yes | 2/20 |
Limelight tuning | 4 | ? | No | No | No |
Fix arcade drive – cannot turn while driving forward | 5 | ? | No | No | No |
SVN Info
Source code for 2021 is in SVN at https://svn.penfieldrobotics.com/FRC2020/trunk/thunderbot2020/ (yes, 2020 this isn't a typo!)
For information on setting up your computer to use SVN, go to our SVN page
Set up your computer for 2021 Development
FIRST Programming Sofware (WPILib)
- Follow the instructions on the official WPILib site
- You want to follow the instructions to install for C++ development
- This will install the 2021 version of VSCode and WPILib
- You do not need to install NI FRC Game Tools for home programming - that installation is only needed to get the Driver Station software.
Thirdparty Vendor Libraries
We need "vendor libraries" installed to be able to write software using the motor controllers and some sensors on the robot. These do not get included with base WPILib - they are separate downloads from the manufacturer of the motor controllers/sensors.
- Install VSCode and WPILib first! See the previous section!
- Install CTRE Phoenix - used for the Talon motor controllers
- Download the tools from the CTRE Github site -- look at the most recent post there for "CTRE Phoenix Framework Installer" - click on the download link at the bottom of the most recent post for the Windows installer (.exe)
- Run the installer for it. This will install the software libraries and some tools (Phoenix Lifeboat and others starting with "Phoenix"). You do not need the tools, so those shortcuts can be deleted if you wish.
- Install SparkMAX software - used for the Spark MAX motor controllers
- Go to https://docs.revrobotics.com/sparkmax/software-resources/spark-max-api-information#c-api
- Click on the "Download latest c++ API" button - this will be a .zip file
- Open Windows explorer and browse to C:\Users\Public\wpilib\2021
- Expand the .zip file you downloaded into this location
- Install the Rev Color Sensor libraries -- used for the color sensor
- Go to https://www.revrobotics.com/rev-31-1557/
- Click on the "Java/C++ SDK Direct Download" link - this will download a .zip file
- Open Windows explorer and browse to C:\Users\Public\wpilib\2021
- Expand the .zip file you downloaded into this location
SVN Setup
SVN is our version control and source code system "in the cloud". This has a dedicated setup and page that also includes info on using SVN.
Helpful Links
- WPILib
- General docs, including tools use, software links, and installation info: https://docs.wpilib.org/
- C++ API Direct link for all WPILib classes
- Motor Controllers
- Rev Robotics Spark MAX
- Software Resources, including detailed software documentation and setup tools
- Programming API Direct link
- CTRE Talon-SRX Resources
- Cross the Road Electronics - includes user's guide and software links
- Phoenix Software Documentation - Programming API and setup tool documentation
- Programming API Direct link
- Rev Robotics Spark MAX
- Rev Robotics Color Sensor