DeepBlueRobotics / Offseason2016

Code written during offseason training, as well as specifically for the offseason robot
GNU General Public License v3.0
0 stars 0 forks source link

Widgets #11

Open ana-tudor opened 7 years ago

ana-tudor commented 7 years ago

To start learning widgets on your own: http://wiki.carlmontrobotics.org/Java_10:_Advanced_Topics

ana-tudor commented 7 years ago
  1. Install Netbeans: https://netbeans.org/downloads/
  2. Clone our Robot2016 repository
  3. Import the Widgets2016 project into Netbeans and use our widgets as reference
  4. First widget project:

Design a widget that has a dropdown menu with four different autonomous options (you can name these options anything you want) and a save button. Make it work such that you can select a certain autonomous option, and when you press the save button it passes a string to NetworkTables that represents the option. The robot can later access this string to know which autoMode to run.

ana-tudor commented 7 years ago

When you're done:

  1. "Clean and build jar file" using Netbeans
  2. Find the jar file, probably located in your project folder
  3. Copy and paste the jar file into: SmartDashboard/extensions (create this "extensions" folder if it is not there already)