During our configuration of the swerve module’s CANcoders, we are encountering a problem between the Absolute Position and the Absolute Position No Offset, even after changing the offset several times, the wheels always rotate to a random place even though they are configured pointing forward. Here is a screenshot of the software
1 Like
What motor controllers are you using? How are you using the CANcoders in code? Keep in mind that CANcoder now reports position in rotations, not degrees.
We are using neo motors. Cancoders are being used to control the rotation of the swerve. However, even after changing the offset values, the wheel does not start in the desired position
How are you using the CANcoders with the NEOs? Are you using WPILib’s PIDController with the CANcoder and m_sparkMax.set(pid.calculate(...))
, or are you trying to seed the SPARK MAX with the CANcoder position and use the onboard position controller?
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.