|
Re: A few questions about C++
C++ and Java are extremely similar. I'd recommend you go with whichever language you're more familiar with.
Yes, that code is a reasonable start at making a driveable SimpleRobot.
Whether you're using C++ or Java, I'd highly recommend you take a look at Command Based Programming with the CommandBasedTemplate. You end up with more files, but I think it makes building autonomous routines and automated functions a good bit easier. Once you get basic commands set up, it's incredibly simple to tie them together an autonomous routine like aim and fire 3 frisbees, switch to loading position, turn 30 degrees and back up 5 feet. And then build another routine that does other things.
__________________
The difficult we do today; the impossible we do tomorrow. Miracles by appointment only.
Lone Star Regional Troubleshooter
|