Add convenience function for testing encoders #152
schreiaj
commented
Jun 30, 2015
|
Along these lines, it might be useful to have a simple convenience function for mapping PWM output -> encoder ticks given an max_rpm, reduction, and counts_per_revolution (cpr). Should help cut down on the number of magic numbers in code. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Would be useful to add a
get_encoder(pinA, pinB)that would scan the list of encoders and find a matching encoder, and return that dictionary. Perhaps even assert if it doesn't exist?From http://www.chiefdelphi.com/forums/showthread.php?t=137638