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
ConstructorsConstructorDescriptionThis 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 TypeMethodDescriptionvoidthis method must be called in activateShuffleboard() to add the motors to the shuffleboard in the correct positionvoidThis method is used to add a motor to the MotorTabvoidupdate()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
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()
-