Package frc.robot

Class SubsystemManager

java.lang.Object
frc.robot.SubsystemManager

public class SubsystemManager extends Object
The SubsystemManager coordinates all of the classes and ensures only one sequence is run at at time.
  • Field Details

  • Method Details

    • getPoseEstimate

      public edu.wpi.first.math.geometry.Pose2d getPoseEstimate()
      Returns the estimated pose. Updates PoseEstimator with odometry readings for most accurate estimate.
      Returns:
      The updated pose estimate.
    • getComponentPoses

      public edu.wpi.first.math.geometry.Pose3d[] getComponentPoses()
    • getPidReferenceSpeeds

      public edu.wpi.first.math.kinematics.ChassisSpeeds getPidReferenceSpeeds()
      Returns the current robot speeds for reference for pid control.
      Returns:
      The current robot-relative chassis speeds.
    • update

      public void update(RobotContainer.JoystickInputs stick_inputs)
    • setupOrchestra

      public void setupOrchestra()
    • setupOrchestra

      public void setupOrchestra(int tracks)
      Clears and refills the orchestra to play MIDI sequences.
      Parameters:
      tracks - The number of tracks the midi file contains.