Alpha Bots #8608
  • Alpha Bots #8608
  • Sponsors
  • What is FRC?
  • Our Vision
  • Community Involvement
  • Looking to Join?
    • Under 13
    • 7-12th Grade
    • FRC in the News
    • Mentors
  • Current Year Info
    • Weekly Practice
    • Kickoff and Season Start
    • Our Events
    • 2025 Competition
  • Previous Years
    • 2024 - Pizza Joe
      • Checklists
    • 2023 - Cowboy Joe
    • 2022 - (Airport) Joe
    • 2021 - Founding year
  • Class learning
    • Lecture and in Class Discussions
      • Class orientation
      • Class - Hand Tools
      • Kick-Off and Rushed-Design
      • Control Systems Engineer
      • Parts Suppliers
  • Learning Resources
    • Programming
      • Robot Vision
      • API and Software
      • Laptop Driver station/Programmer Quick setup guide
      • Pid Programming
      • XRP/Romi Setup
    • Cad/Design
    • Marketing/AV
    • 3D printing
    • Electrical Connections
    • Hand Tools resources
    • Scouting
Powered by GitBook
On this page

Was this helpful?

  1. Learning Resources
  2. Programming

XRP/Romi Setup

PreviousPid ProgrammingNextCad/Design

Last updated 7 months ago

Was this helpful?

Open up xrp box, follow assembly instructions on website on box

  • Follow assembly, then test robot sensors and drivetrain using included website, experiment with block and python programming (though we'll be using Java in FRC)

  • Follow "getting started with xrp" instructions at docs.wpilib.org and flash your image

  • Connect to your xrp wifi with password "xrp-wpilib" and test website

  • Download and install latest wpilib release from wpilib GitHub (2024.3.2 at writing)

  • During wpilib install, install vs code

  • Create new robo rio advanced command template project in java (this is the one you'll be working in)

  • Create xrp reference (this is your cheat sheet)

  • (optional) Setup driver station enable = true

  • Do a hello world using system.out.println("hello world"); (explain when it will show during boot)

  • Instantiation of command controller as well as the underlying hid.

  • If button pressed print line if statement

  • Register button press for the command structure

  • Print from each button type (trigger, button, bumper pov hat)

  • Boot up Xrpgyro and building accelerometer

  • Instantiate onboardIO

  • Create a xrpmotor object(hard way or copy)

  • Move xrpmotor forward and backwards.

  • Boot up both spark motors and get their encoders. (channels in cheat project or documentation online)

  • Move both motors same direction

  • get joysticks axis output

  • move robot with joystick outputs

  • setup hello world command (explain the parts of a command and when your hello world will print)

  • Setup default command for drivetrain (at this point may just be two motors)

  • Create drivetrain file if advanced, if in robot container teach refactor

  • create differential drive and assign the two motors

http://192.168.42.1:5000