Quote:
Originally Posted by simon1636
Hi! I am trying to get our shooter to work with two talons by moving the throttle on the Attack 3 joystick upwards. My code looks right, but is not doing anything. Can any of you guys see anything? Any help would be greatly appreciated! Thanks!
Code:
driveTrain=new RobotDrive(lTalon,rTalon);
driveTrain.arcadeDrive(throttle.getAxis(Joystick.AxisType.kZ), 0);
|
Are you trying to use the driveTrain on a shooter mechanism? If so, probably not the best way to do it.
Try using throttle.getZ().
Also, since you have a simple robot you should use
Code:
#In the operatorControl method
lTalon.set(throttle.getZ())
rTalon.set(-throttle.getZ())