For our robot we are trying to program using two controllers. The first will drive the base of the robot, the second will control the arm mechanism. We were curious if there are any programming tricks we need to know in order to allow us to use both controllers in tandem.
Remember that the second controller you use the Partner Controller (276-1891), not just another standard VEXNet Controller
As for programming, if you’re using ROBOTC, then you can access partner controller values via appending “Xmtr2” to your key. For example,
vexRt[Btn5DXmtr2]
to access button 5D
vexRt[Btn5DXmtr2]
If you’re using PROS, then in your
joystickGetAnalog
and
joystickGetADigital
calls, make sure that the
joystick
(first parameter) is set to 2
joystickGetDigital(2, 5, JOY_DOWN);