1. 5 months ago

    InValidFire

    Dec 7 Dunwoody, GA 1264B
    Edited 5 months ago by InValidFire

    So, I was typing this statement in PROS (Using Atom):

    if(joystickGetDigital(1, 8, JOY_UP) == 1 and joystickGetDigital(1, 7, JOY_UP) == 1) {
    	autonomous();
    }

    Noticed the second time I typed joystickGetDigital , it was red instead of blue... should I have a reason to be worried?
    I uploaded a picture in the attachments to show what I mean.

    Try replacing and with &&

  2. InValidFire

    Dec 7 Dunwoody, GA 1264B

    Okay, so apparently it's not compiling like this... no idea why, am I just overlooking some syntax problem?

  3. sazrocks

    Dec 7 Answer Arizona 2114B

    Try replacing and with &&

  4. Deleted 5 months ago by Ashwin Gupta
  5. InValidFire

    Dec 7 Dunwoody, GA 1264B

    Thanks for the help!

 

or Sign Up to reply!