This is the code for FRC Power Up(2018) as written by Gurvinder Singh[Lead Programmer] for the team. This code was written between January - March 2018 and has been updated during/after competition season for various reasons including but not limited to changing PWM ports, addition/deletion of physical sensors, etc.
- Getting Started
- Requirements
- Eclipse IDE
- Java 8 JDK
- Install the correct development plugins
- Image the roboRio
- Program the Radio
- Installation
- Built With
- wpilibj
- AHRS
- License
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. These instructions will also help you deploy your code to the roboRio. See requirements & blank for notes on how to deploy the project on a live system.
- Eclipse IDE - Used to compile/build and deploy code to roboRio.
- Java 8 JDK - To use Eclipse you must have Java 8 JDK installed on your system. Do not select Java 9 as it is not supported.
- Make sure JDK 8 is currently the one being used/selected
- Open Preferences and Navigate to the "Installed JREs" tab
- Select JDK 1.8.* and click "OK"
- Make sure JDK 8 is currently the one being used/selected
- Install the correct development plugins:
- Open Eclipse IDE
- Select "Help"
- Click "Install new software"
- From here you need to add a software update site, the location where the plugins will be downloaded. Push the "Add..." button then fill in the "Add Repository" dialog with:
- Name: FRC Plugins
- Location: http://first.wpi.edu/FRC/roborio/release/eclipse/
- Click "OK"
- Image the roboRio:
- Make sure roboRIO imaging tool and latest image are installed with the latest NI Update Suite.
- Connect the roboRIO USB Device port to the PC using a USB Type-A (Male) to Type-B (Male) cable
- The roboRIO should only be imaged via the USB connection. It is not recommended to attempt imaging using the Ethernet connection.
- Launch the imaging tool and after launching, the roboRIO Imaging Tool will scan for available roboRIOs and indicate any found in the top left box
- Begin imaging process
- Make sure the roboRIO is selected in the top left pane
- Enter your team number in the box in the top right
- Make sure the Disable RT Startup App box is unchecked in the bottom right
- Check the box to Format Target and select the latest image version in the box
- Click Reformat to begin the imaging process
- Reboot the roboRIO using the Reset button to have the new team number take effect
- Recompile and deploy any robot code
- Program the Radio:
- Download the latest FRC Radio Configuration Utility Installer
- Disable WiFi connections on your computer, as it may prevent the configuration utility from properly communicating with the bridge
- Launch the software and refresh the available network interfaces
- Select the ethernet interface called "Local Area Connection"
- Click "OK"
- Update or re-load the FRC Firmware to OpenMesh radio
- Make sure the OpenMesh radio is selected in the Radio dropdown
- Make sure the radio is connected to the PC via Ethernet and is detected
- Press the Load Firmware button
- When prompted, plug in the radio power. The software should detect the radio, load the firmware and prompt you when complete
- Configuration Process
- Make sure the correct Team #### is displayed in the text box
- Enter WPA Key - (Optional)
- Make sure radio and mode are correct
- Click "Configure"
- Open Eclipse IDE
- Load current project into project Explorer
- Right click on the project in the Project Explorer
- Select "Run As"
- Select "WPILib Java Deploy"
- There is no need to reboot the roboRIO to run the new code, as the newly deployed code will begin running automatically
- wpilibj - Set of Java classes that controls the hardware in the FRC control system.
- AHRS - Used to control navX-MXP 9-axis inertial/magnetic sensor and motion processor.
This project is licensed under the MIT License - see the LICENSE file for more details.
a project by Gurvinder Singh