Open mcolinj opened 5 years ago
In the main robot loop we'll just either being doing something semi-autonomous, or doing the robot thing. However, we should maybe at least look for the driver or operator taking back control?
I found some example code from the NavX folks that should be useful. They don't have sample code for Python, but you could work from the C++ implementation and do pretty well. It is a decent place to start. Maybe we can get it nice and clean and give it to the kauailabs folks for their web site.
https://pdocs.kauailabs.com/navx-mxp/examples/rotate-to-angle-2/
You can hook a NavX directly to a windows laptop over USB and look at the data coming from it using this application. (looks like it could be illuminating)
Create a subdirectory for some various semi-autonomous features. Start with Turner(gyro, amount, speed, time-limit), and see what you can do.
We'll need methods to indicate time has expired, to do the work, and to clean up if it thinks it is done.