Open dforegger opened 8 years ago
Wheel speed defaults to 0. You can send an OSC message like /wheel/speed 0.3
to port 7000 to start it spinning, but that doesn't make it super easy to simulate. The default should have been nonzero for easier simulation, but I didn't want to make physical setup confusing. I'll think about this a bit.
In the meantime, you can just change line 99 in wheel.py to something other than zero to see the wheel spinning in simulation. Sorry for the confusion!
Thanks! I assumed the /wheel/speed was being used elsewhere but couldn't find it. I've got it working by adding a param to the options that only works if --sim is used. It then sends a message with the speed when the simulator is started. I'll clean it up and send a pull request later tonight.
It looks like the wheel_position is not getting updated running on linux-mint.
I modified dewb-wheelSpinEffect to print wheel_position, ie: def wheelSpinEffect(system, state): print state.wheel_position for pixel in system:
...
The result:
(Some output whitespace modified for github formatting)
If you don't have any ideas offhand I'll take a look tonight at the source to try to debug it. Thanks! ~DF