Recommend surrounding your code with [code] tags, it's pretty much impossible to read without them.
I'm surprised threads didn't work out for you... they should work in RobotPy. What error did you get?
On the other hand, I would be
very surprised if multiprocessing worked. I'm surprised we didn't pull the module out.
For periodic tasks like this, I actually tend to prefer a polling approach where the main loop keeps calling my function, without an actual while loop in there. The key to this is to make sure the main loop is controlled tightly without too much variance (using something like our
PreciseDelay object). Once you control the loop, you can even do things like
adjust the robot angle with pretty good accuracy.
What rate are you trying to reach?