-
Notifications
You must be signed in to change notification settings - Fork 14
Description
The XRP returns the motor encoder count to the robot program, but the robot program cannot get the rate (speed) from the encoder.
I've written some code that will allow the XRP to return the most recent period between encoder pulses, so that the robot code could determine the encoder rate. I've made the change I made available on my GitHub (https://github.com/beardedone55/xrp-wpilib-firmware/tree/lepageb). This change does require a change WPILIB for it to be able to use the encoder rate returned by the XRP; however, I did verify that with my change to the XRP firmware, the current version of WPILIB still works as it does now; it just does not make use of the encoder period (and cannot calculate speed).
I would appreciate it if my update could be pulled into the official XRP firmware repo so that others can use it. If this change is accepted, I will submit the corresponding change for WPILIB to use the encoder period data for inclusion in the official WPILIB code base.
Thanks!