View Single Post
  #2   Spotlight this post!  
Unread 21-03-2013, 08:57
Kevin Sevcik's Avatar
Kevin Sevcik Kevin Sevcik is offline
(Insert witty comment here)
FRC #0057 (The Leopards)
Team Role: Mentor
 
Join Date: Jun 2001
Rookie Year: 1998
Location: Houston, Texas
Posts: 3,650
Kevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond repute
Send a message via AIM to Kevin Sevcik Send a message via Yahoo to Kevin Sevcik
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
Reply With Quote