Beta8397 / virtual_robot

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

Should support opMode #4

Closed alan412 closed 5 years ago

alan412 commented 5 years ago

OpModes (that aren't linear) should be the main support. LinearOpModes are simply a derived class from OpMode, so bringing over that declaration would allow both OpModes and LinearOpModes to be supported.

I forked the project so I could see about adding this support. If I am able to get to it, then I'll issue a pull request.

jkenney2 commented 5 years ago

Thanks, Have merged pull request into a new branch for testing before merging into master branch.

jkenney2 commented 5 years ago

Tweaks made so that linear op modes will terminate normally when runOpMode exits, and to make telemetry updates automatic when looping in regular op mode. Merged with master. Thanks for your contribution! A great addition for teams that like to use regular op modes.