Log in

View Full Version : Code Base


3DWolf
19-01-2009, 15:34
Where am I supposed to start entering everything in for actual coding? The guide mentions classes like the SimpleRobot and IterativeRobot classes, but where are you supposed to put those? Are they build into the WPI libraries already? Scrolling through the library I didn't sort of main function or any base file to start entering code into.
Am I thinking about this the wrong way or do I have to enter in another class file and what not?
My reasoning behind this thinking is the code in previous years had the files like user_routines.c where you put all of your teleop code. The guide showed the SimpleRobot class had the init, Autonomous, and the teleop all compiled into one, but I'm just at a loss on where to put/get that file.

(Sorry for being so run around, I'm bad at wording what I actually mean)

wt200999
19-01-2009, 15:51
Do you have windriver installed?

Go to file -> new -> example

then pick VxWorks Downloadable Kernel Module Example Project

then choose an example that starts with FRC (try the simple robot demo)

3DWolf
19-01-2009, 16:01
Bah OK there it is, thanks.

3DWolf
19-01-2009, 16:48
OK to avoid creating another thread, and its similar in nature anyway:
How the fork do I set up the connections to download code to the robot?
The guide is VERY VERY vague in this, as it just says
1. Download
2. Reboot
[facepalm]
Do I have to set up cables through the drivers sation then to the cRIO? Or can I just go straight from the laptop to the cRIO? And I assume the IP on the laptop has to be the 10.xx.yy.6 IP in order to download?