Add convenience function for testing encoders #152

Open
virtuald opened this Issue Jun 30, 2015 · 1 comment

Projects

None yet

2 participants

@virtuald
Member

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

@schreiaj

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.

@virtuald virtuald added this to the Someday milestone Jan 2, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment