Closed alan412 closed 3 years ago
Thanks. I'll merge this in. With regard to "time", I will also: declare time "volatile" (since it will be accessed by opModeThread, and possibly also by a new thread created for a linear op mode); and, update time before the call to opMode.initLoop in addition to the update before the call to loop.
The only base change is to making sure the time is updated in the opmode.
However, the changes we made to our auto might be instructive for others as it makes for a relatively simple pattern