GwhsRobotics3 / Team-5507-2018

1 stars 2 forks source link

Create a SmartDashboard tab for motor information #22

Closed gregmarra closed 6 years ago

gregmarra commented 6 years ago

We should start to build our "permanent" SmartDashboard tabs. We'll want to configure a few dashboard views: one for displaying during matches, others for displaying while debugging and testing.

Let's create a SmartDashboard tab that displays motor status. For each motor, set up a list widget that contains the motor's:

The Victor may not provide as much information as the Talon, so include what you can for each motor controller type. I'm not sure what information the default Talon objects in SmartDashboard give you, vs what you'll have to log yourself.

The SmartDashboard documentation suggests you can make widgets more easily grouped by naming things with a consistent prefix path (https://wpilib.screenstepslive.com/s/currentCS/m/smartdashboard/l/255411-smartdashboard-namespace):

SmartDashboard.putNumber("Elevator/Motor Voltage", voltage);
SmartDashboard.putNumber("Elevator/Position", position);

Talon SRX software manual: http://www.ctr-electronics.com/downloads/pdf/Talon%20SRX%20Software%20Reference%20Manual.pdf

Prioritize these for the motors we're doing the most debugging on:

  1. Gripper
  2. Elevator
  3. DriveTrain
  4. Intake
  5. Climber
  6. Winch
GwhsRobotics3 commented 6 years ago

Separate tabs created for each Subsystem