ROBOTC.net forums
http://www.robotc.net/forums/

Dual Control Programming help please! :?
http://www.robotc.net/forums/viewtopic.php?f=11&t=9680
Page 1 of 1

Author:  Kimberlin0117 [ Thu Oct 30, 2014 9:52 pm ]
Post subject:  Dual Control Programming help please! :?

Does anyone know how to program dual controllers in RobotC? If so i'd greatly appreciate it :) Thank you

Author:  CARBOT [ Fri Oct 31, 2014 5:42 pm ]
Post subject:  Re: Dual Control Programming help please! :?

Controller 1 & 2 are shown here:
http://www.robotc.net/wiki/VEX2_Functions_Remote_Control_-_VEXnet

Author:  JohnWatson [ Wed Nov 05, 2014 11:18 am ]
Post subject:  Re: Dual Control Programming help please! :?

In order to program the secondary (Partner) VEXNet joystick in ROBOTC, you simply need to add an 'Xmtr2' to the joystick channel or button name when accessing them in your code. For example:

Code:
//Main VEXNet Joystick Controller
motor[rightMotor]  = vexRT[Ch1];

//Partner VEXNet Joystick Controller
motor[rightMotor] = vexRT[Ch1Xmtr2];


As long as the Partner joystick is attached to the main VEXNet Joystick Controller properly (and the main VEXNet controller is connected to a Cortex via VEXNet or direct tether), this will allow you to control your program with a secondary joystick.

Page 1 of 1 All times are UTC - 5 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/