ToughTechs151 / robot-template

Template for Tough Techs robots.
Other
1 stars 0 forks source link

Fix Power Distribution Reporting. #35

Open blu28 opened 1 year ago

blu28 commented 1 year ago

During the first competition of 2023, we saw console errors of various types relating to the PDP. At the time we thought it had to do with the Robot having a PDP instead of the expected PDH, but the docs suggest that it shouldn't make any difference, and that the WPILIB/HAL will create the correct object and both types have monitoring capability. One thing to note, however, is that the PDP must be CAN ID 1 and the PDH must be CAN ID 0. It may be that these were incorrect. We should find out the source of the problem and adapt the template software to either deal with both types, or detect of there is a configuration problem. There are methods to read the PD type, and CAN ID, so this should be doable.