pioneers / dawn-v0

(archived; now in PiECentral) Dawn is a cross-platform frontend for the Pioneers in Engineering robotics control system.
https://pioneers.berkeley.edu
4 stars 33 forks source link

Read encoders method #263

Closed bodiddles closed 8 years ago

bodiddles commented 8 years ago

Here's the code that supports reading encoders in the form of get_motor_distance in Robot.py. As you can probably see, it's probably not the most efficient way of implementing this as it constantly updates memcache with encoder values but it definitely works.

matthew-zhao commented 8 years ago

Has this code been tested? Can I merge it

bodiddles commented 8 years ago

I did test it and it works but I didn't try stress testing it yet

nikitakit commented 8 years ago

Don't merge until past merge conflicts are fized

matthew-zhao commented 8 years ago

Bob can you fix this tonight? I can also just pull your code and fix that conflict.

bodiddles commented 8 years ago

Fixed. Will make new pull request.