Quote:
if digital_io_out18 = 115;
then..uhm...? lol sorry i'm not THE greatest with C...
hmm..see i was looking through trying to find a list of acceptable codes in C for robotics but i coudn't seem to find a list so I'm tryin' to figure it out...but you can use then statements..correct..?
|
I think that you are just learning c are you not? you have experience with VB or Qbasic do you? that will help you but C isn't the same.....
when you make an if statement you don't use a then statement like in BASIC.
Take a couple hours and read some documentation. On this site is the official Programming reference PDFs they have code that is specific to the FIRST controller. the 2004 version is what you want there is no 2005 edition. look on page 19 in the gray code box it shows an if statement for an input and a pwm.
http://www.ifirobotics.com/rc.shtml#Programming
A genecic c programming book would be a worthwhile buy.
Have fun you about to become a professional C programmer!