Beta8397 / virtual_robot

A 2D robot simulator to help beginners learn Java programming for FTC Robotics
100 stars 171 forks source link

List of changes we did for Skystone #33

Closed alan412 closed 3 years ago

alan412 commented 3 years ago

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

jkenney2 commented 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.