Package frc.robot.shuffleboard
Class MotorTab
java.lang.Object
frc.robot.shuffleboard.MotorTab
This class is used to create a tab on the shuffleboard that displays information about the motor power and current
-
Constructor Summary
ConstructorDescriptionThis constructor is used to create a MotorTab, periodic() must be called in the subsystem's periodic methodThis constructor is used to create a MotorTab, periodic() must be called in the subsystem's periodic method -
Method Summary
Modifier and TypeMethodDescriptionvoid
this method must be called in activateShuffleboard() to add the motors to the shuffleboard in the correct positionvoid
addMotor
(com.revrobotics.CANSparkMax[] newMotors) This method is used to add a motor to the MotorTabvoid
update()
this MUST be called in periodic()
-
Constructor Details
-
MotorTab
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 MotorTabtabName
- the name of the tabrowOffset
- the number of rows that all of the motor displays will be lowered by
-
MotorTab
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 MotorTabtabName
- 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()
-