Log in

View Full Version : C++ Variables and Functions


NinjaSpawn94
20-01-2010, 16:35
Sorry, I'm new to C++, and just switched over from LabView last year. I was wondering what the variables are that are used for compressors and pneumatics. I believe joysticks are just joystick and jaguars motors are just jaguar, but correct me if i'm wrong please. Thanks!

Joe Ross
20-01-2010, 16:39
You'll probably find the WPILib User's Guide (http://first.wpi.edu/FRC/frccupdates.html) helpful.

byteit101
20-01-2010, 16:50
Read the link above, but as a rule of thumb, it is the CamelCaseVersionOfTheObject
Jaguar
Joystick
Compressor
Solenoid
Relay
Value (for Relay direction)
etc...

NinjaSpawn94
20-01-2010, 17:05
thanks a lot for the link, i've looked for that before but couldn't find it. And also thanks for not making me read the whole manual and just using that rule of thumb :D

byteit101
20-01-2010, 17:08
first link on that page http://first.wpi.edu/Images/CMS/First/WPI_Robotics_Library_Users_Guide.pdf
page 38-43