I'm imagining that this doesn't compile, since there isn't a
RobotDrive constructor that takes only one int parameter. Also, in
operatorControl() you're setting the drive motors based on input from two joysticks, and then setting them again based on input from a third joystick. This isn't going to produce a desirable result.
If you want to control a single motor with a joystick, use the appropriate
SpeedController class --
Jaguar or
Victor.
RobotDrive is intended for use with drive trains that have two or four motor configurations.
Code:
Jaguar spot = new Jaguar(3);
...
public void operatorControl() {
setUpRobot();
while (true && isOperatorControl() && isEnabled()) // loop until change
{
drive.tankDrive(leftStick, rightStick);
spot.set(kicker.getY());
Timer.delay(0.005);
fenrir.feed();
}
}