Quote:
Originally Posted by odel
But I need two joysticks running 4 motors, 2 motors to each joystick.
|
Like ByteIt said, you'll want to do robotDrive.TankDrive(leftJoystick, rightJoystick);
But, the constructor you'll want to use is:
Code:
RobotDrive(SpeedController *frontLeftMotor, SpeedController *rearLeftMotor, SpeedController *frontRightMotor, SpeedController *rearRightMotor, float sensitivity=0.5)
This will give you tank drive for 4 motors from two joysticks.
Good luck!
