DeepBlueRobotics / RobotCode2024

Other
4 stars 1 forks source link

Figure out and verify what is inverted *before* attaching the chains #17

Open brettle opened 8 months ago

brettle commented 8 months ago

https://github.com/DeepBlueRobotics/RobotCode2024/blob/864bd307aef11cefdb3b42233551b75dce458c0b/src/main/java/org/carlmontrobotics/Constants.java#L37-L40

To avoid damaging anything, before attaching the chains verify that the above 3 "inverted" constants are correct by checking that running either of the forward sysid tests causes both motors to spin in the direction that would cause the arm to lift away from the intake position and verify that manually lifting the arm away from the intake position causes the value reported by the absolute encoder to move in a positive direction.

brettle commented 8 months ago

Note that there is a version of follow() that takes an invert parameter. I recommend using it.