TripleHelixProgramming / Crescendo

Triple Helix's code for the 2024 FRC Crecendo season
MIT License
1 stars 0 forks source link

Climber/power measurement #95

Closed nlaverdure closed 8 months ago

nlaverdure commented 8 months ago

Added pdp object https://docs.wpilib.org/en/stable/docs/software/can-devices/power-distribution-module.html

Partially answers #92 Climbing draws 10-16 A of current upstream of the motor controller Substantially raised (to 60 A) current limit downstream of motor; this is appropriate for a NEO motor per

It still may be a good idea to add the smart current limiting features https://codedocs.revrobotics.com/java/com/revrobotics/cansparkbase#setSmartCurrentLimit(int,int,int)

Closes #93 Output duty cycle is a more reliable indicator of the polarity of the current draw, instead of motor velocity