Skip to content
This repository has been archived by the owner on Feb 26, 2019. It is now read-only.

Team #1228s Robot Code for FRC PowerUp[2018] used to provide autonomous and teleoperated controls to the driver using gyroscopic feedback and sequentially timed mechanical operations.

License

gurvinder/powerup

Repository files navigation

Rahway Robotribe Robotics FRC Team #1228

License Java wpilibj AHRS

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

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.

Requirements

  • 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"
  • 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:
    • 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"

Installation

  • 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

Built With

  • 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.

License

This project is licensed under the MIT License - see the LICENSE file for more details.


a project by Gurvinder Singh

About

Team #1228s Robot Code for FRC PowerUp[2018] used to provide autonomous and teleoperated controls to the driver using gyroscopic feedback and sequentially timed mechanical operations.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages