Code repository for the 2023 FRC season. We are using Java (command based) for programming. On the hardware side we are using a RobioRio2, MK4 inverted swerve drive modules, primarily Falcon motors, and a Pigeon 2 gyro.
Looking at Snapshot in Tuner, we are getting readings for absolute but relative stays at zero even after manually moving the arm. This is causing issues with other commands that rely on encoder readings.
[ ] Are we using relative or absolute encoder for extension or both? Snapshot says its set to Quad/Mag (rel) which leads me to think relative approach.
[ ] Assuming we stay with relative approach, maybe try another relative Feedback?
[ ] Is code resetting the relative values somehow?
[ ] Double check (simplify temporarily) the code to make sure we are calling/reading those values
[ ] Are the sensor phase measurements and motor output in phase? Sensor phase describes the relationship between the motor output direction (positive vs negative) and sensor velocity (positive vs negative). For soft-limits and closed-loop features to function correctly, the sensor measurement and motor output must be “in-phase”.
Looking at Snapshot in Tuner, we are getting readings for absolute but relative stays at zero even after manually moving the arm. This is causing issues with other commands that rely on encoder readings.
References
CTRE docs CTRE manual as a PDF