Giter Site home page Giter Site logo

gurvinder / powerup Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 688 KB

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.

Home Page: http://team1228.org/

License: MIT License

Java 100.00%
eclipse-ide wpilibj java ahrs frc-powerup wpilib mit-license roborio

powerup's Introduction

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.