The power distribution board (pdp) we use is also capable of talking on the CAN bus (the communication bus that the talons and other devices use). The board is actually made by the same company that makes the talons.
In Robot.java (or in another class if you see fit) we need to complete these tasks:
create a new power distribution panel object with the valid can ID
log voltage and current of every channel on the board to the SmartDashboard
log any other relevant information
set up a "PDP" SmartDashboard tab which has fields which display all this info. Make you save the layout. This is for use with the Electrical and Mechanical teams
The power distribution board (pdp) we use is also capable of talking on the CAN bus (the communication bus that the talons and other devices use). The board is actually made by the same company that makes the talons.
http://www.ctr-electronics.com/pdp.html
We need to use this device better. By monitoring the current and voltage we can learn more about various subsystems of the robot.
Here is some example code using the WPILib:
https://github.com/wpilibsuite/allwpilib/blob/main/wpilibjExamples/src/main/java/edu/wpi/first/wpilibj/examples/canpdp/Robot.java
In Robot.java (or in another class if you see fit) we need to complete these tasks: