Buy an Axon, Axon II, or Axon Mote and build a great robot, while helping to support SoR.
0 Members and 2 Guests are viewing this topic.
basepos = map (PSAB_PAD_RIGHT, 0, 255, 0, 180); // Scale Servo Positions from PS2 Controller
if(ps2x.Button(PSS_RX)) shoulderpos++; // This is a joystick. Want 128 to 0 to move servo in one direction and 128 to 256 in the other. if(ps2x.Button(PSS_RY)) elbowpos++; if(ps2x.Button(PSS_LX)) wristpos++; if(ps2x.Button(PSS_LY)) wristrotatepos++; if(ps2x.Button(PSB_R2)) gripperpos++;
PS2X ps2x; // create PS2 Controller Class