1. 8 months ago

    InValidFire

    7 Dec 2017 Dunwoody, GA 1264B
    Edited 8 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

    7 Dec 2017 Dunwoody, GA 1264B

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

  3. sazrocks

    7 Dec 2017 Answer Arizona 2114V

    Try replacing and with &&

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

    7 Dec 2017 Dunwoody, GA 1264B

    Thanks for the help!

 

or Sign Up to reply!