Urgent Programming C++ help please!

ok so i am a new programmer to the 1396 team because our old programmer has recently graduated. He has taught me some things but i still do not understand how to use the C++ language to program. Especially since we have the new laptop/ driver station this year this puts a lot of pressure on me as to figure all this out and i am becoming very nervous about how i am going to get this robot to function this year … whats on the electronics board of this robot is

4 jaguars because we are using 2 motors per gearbox this year

4 spikes… because we have 2 motors for a wench, 1 motor for a manipulator, and another motor for a dumper for the soccer balls…

I also do not how to assign the motors to a button on the control stick like how to turn the motors on and off using the spikes… so if someone can help with that also that would be much appreciated… Please help someone

You should definitely read the following programming manuals:

There’s also a very helpful C++ reference containing all the functions and classes you should need for programming the cRio. It’s called C++_Reference.chm C:\windriver\docs\extensions\frc

Make sure you’ve done all the updates on your development computer and Classmate PC (the beginning of this thread has information on the updates, http://www.chiefdelphi.com/forums/showthread.php?t=81064

There’s a ton of sample code if you go to File->New->Example, VxWorks Downloadable Kernel Module, and then pick one out [in Windriver].

Hope I was of help, if you have any more specific questions feel free to reply back here or PM myself, or one of the many programmers on CD.

Bonus Sites:

If you use LabVIEW, you can see it’s easier than C++. For C++, you have to learn C language. LabVIEW is definitely an easy program to learn.

C++ is for the most part a superset of C, but it lets you do lots of things that you can’t in C. I wouldn’t necessarily agree with this.

However, I would agree that C++ is probably much harder to master than LabVIEW. I love C++, but then again I’ve been programming in it and C for three years. A great tutorial I used when teaching myself C++ was www.learncpp.com. You should definitely check it out if you want to take the C++ route.

I agree with Slavik. C++ should be learned if you want to learn C++, not C or FORTRAN or any other language you want to put in the mix…

If I were you, I would switch to Labview immediately. It was said before that it is very easy and fast to learn (I agree). The initial program available will get you off the ground and running with at least two motors in the default code. Check out the tip jar lessons available through frcmastery.com to become proficient in labview (~ 1.5 hours of video). With this and after re-imaging the crio, you should be ready to move with two motors. Adding the extra ones should be fairly easy if you understand how the first two work.