Skip to content

Repository files navigation

2024 Flame of the West Robot Code Base

Important Resources

How to find your way around the code

  • The file main/cpp/Robot.cpp contains the skeleton of what the robot does in autonomous and teleop.
  • Other files in main/cpp control specific subsystems on the robot.
  • The Include folder contains class headers laying out the functions of each subsystem.
  • The file Include/Robot.h includes all of the library files used by the code base.
  • The Include/Constants folder contains all of the useful numbers that must be changed to tune the robot.

Standards in the code base

  1. Robot-oriented coordinates are measured with positive X facing away, Y facing left, and Z facing upwards. The origin is centered on the chassis (x/y) and is on the ground (z).
  2. Robot-oriented coordinates are measured from the perspective of the blue driver station with positive X facing away, Y facing left, and Z facing upwards. The origin is in the close right corner of the field.
  3. Positive heading rotation of the robot is (generally) counterclockwise positive with 0 degrees facing in the positive X direction.
  4. Positive roll rotation of the robot is counterclockwise positive with 0 degrees facing in the positive Y direction.
  5. Systems' constant values are not used in Robot.cpp
  6. General good practice is observed - ex. no changing of class object member values outside of functions of that class.

About

FRC Team 2584's Robot Code for the 2024 Crescendo Season

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages