This is my first year working on FIRST and I’ve been given the task of programming our robot. I have no experience with c++, but I have done work with C. So far I’ve managed to create a whole project on RobotBuilder and get motors running with joystick buttons and all that, but I have no clue on what to do for the actual driving of the robot. It would be nice if I could do something similar to the simple robot arcade drive stuff or incorporate that actual code into my own, but I don’t know what to do to do that. Any help at all would be greatly appreciated. If you would like to see my program or anything feel free to ask. Thanks!
See if this article helps: http://wpilib.screenstepslive.com/s/3120/m/7882/l/85166-driving-the-robot-with-tank-drive-and-joysticks
If you want to use arcade instead of tank just replace the joystick axes used as appropriate and replace the TankDrive method with the ArcadeDrive method.
There is also a video here:
http://www.youtube.com/user/BradAMiller/videos?flow=grid&view=1
(look at the RobotBuilder playlist) that shows how to build a complete program using RobotBuilder. The example is with Java, but the C++ code is almost the same. I think you’d get the idea.
Brad