FRC1076 / 2020-Shooter

Working code to test out encoder controlling shooter speed and advancing of balls in queue
MIT License
0 stars 0 forks source link

Add feature where the motor rpm is displayed in Shuffleboard (using NetworkTables/SmartDashboard) #4

Open mcolinj opened 4 years ago

mcolinj commented 4 years ago

Check with Mark Newman for some assistance with getting the Shuffleboard/SmartDashboard working. Also look at robot.py example code SmartDashboard for the 5 or 6 lines of code that you can use to do this. https://robotpy.readthedocs.io/projects/pynetworktables/en/stable/examples.html#robot-example

  1. Import the network tables library (at the top)
  2. Create the smart dashboard object in robotInit
  3. In teleop init push the RPM (or just the encoder value if you want) into the appropriate variable.
EmilyRobotics commented 4 years ago

Shuffleboard is not currently updated to 2020 robotpy, so we might want to wait on this one for at least until after finals.

mcolinj commented 4 years ago

Understood. We can run a simple SmartDashboard client on just about anything, even if we don't have shuffleboard. We need to cultivate this expertise, though.