DeepBlueRobotics / lib199

Code that we reuse in different projects/years.
Other
2 stars 0 forks source link

Add fallback encoders to `SwerveModule` #52

Open CoolSpy3 opened 1 year ago

CoolSpy3 commented 1 year ago

As mentioned in the lib199 tour, SwerveModule could be updated to get an initial angle from the CANCoders, and then fallback on the Spark Maxs' relative encoders if the CANCoders are disconnected. (It should probably print an error message). Then, if the encoder reconnects, it can re-synchronize its position and return to using the CANCoder data.

CoolSpy3 commented 1 year ago

Status Update