wpilibsuite / xrp-wpilib-firmware

7 stars 9 forks source link

Make servos play nice with Encoders #3

Closed zhiquanyeo closed 1 year ago

zhiquanyeo commented 1 year ago

The previous implementation had the encoders hardcoded to use PIO0, and when new Servo objects got created, they clobbered PIO0. This PR makes the encoders use the same PIO registration mechanism that the Servo objects use to ensure that no clobbering occurs