I want to program drive system for our robot using 6 Talon SRXs:
TalonSRX masterLeft = new TalonSRX(1);
TalonSRX slaveLeftFront = new TalonSRX(3);
TalonSRX slaveLeftRear = new TalonSRX(5);
TalonSRX masterRight = new TalonSRX(2);
TalonSRX slaveRightFront = new TalonSRX(4);
TalonSRX slaveRightRear = new TalonSRX(6);
All the slaves programed to follow the masters
Normally, I use the DifferentialDrive class and then the arcadeDrive() method, but I receive an error when I type:
DifferentialDrive drive = new DifferentialDrive(masterLeft, masterRight);
So my question is how to program arcade drive system using my Talon SRXs?
Setting up the slave controllers should not affect your ability to create a differential drive with the two master controllers. Can you be more specific about the error and/or post more of your code, or a link to it?
The problem with using WPI_TalonSRX is you do lose some functionality if you are going to later be using them for more advanced functions. But that is perfect for a startup drivetrain.