Class MotorTab

java.lang.Object
frc.robot.shuffleboard.MotorTab

public class MotorTab extends Object
This class is used to create a tab on the shuffleboard that displays information about the motor power and current
  • Constructor Summary

    Constructors
    Constructor
    Description
    MotorTab(int totalNumberOfMotors, String tabName)
    This constructor is used to create a MotorTab, periodic() must be called in the subsystem's periodic method
    MotorTab(int totalNumberOfMotors, String tabName, int rowOffset)
    This constructor is used to create a MotorTab, periodic() must be called in the subsystem's periodic method
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    this method must be called in activateShuffleboard() to add the motors to the shuffleboard in the correct position
    void
    addMotor(com.revrobotics.CANSparkMax[] newMotors)
    This method is used to add a motor to the MotorTab
    void
    this MUST be called in periodic()

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • MotorTab

      public MotorTab(int totalNumberOfMotors, String tabName, int rowOffset)
      This constructor is used to create a MotorTab, periodic() must be called in the subsystem's periodic method
      Parameters:
      totalNumberOfMotors - the total number of motors that will be added to the MotorTab
      tabName - the name of the tab
      rowOffset - the number of rows that all of the motor displays will be lowered by
    • MotorTab

      public MotorTab(int totalNumberOfMotors, String tabName)
      This constructor is used to create a MotorTab, periodic() must be called in the subsystem's periodic method
      Parameters:
      totalNumberOfMotors - the total number of motors that will be added to the MotorTab
      tabName - the name of the tab
  • Method Details

    • addMotor

      public void addMotor(com.revrobotics.CANSparkMax[] newMotors)
      This method is used to add a motor to the MotorTab
      Parameters:
      newMotors - an array of the new motors to be added
    • activateShuffleboard

      public void activateShuffleboard()
      this method must be called in activateShuffleboard() to add the motors to the shuffleboard in the correct position
    • update

      public void update()
      this MUST be called in periodic()