By default, the RobotDrive class will instantiate Jaguars as its motor controllers. If you are using Victors you need to explicitly instantiating them yourself and use the following constructor instead:
Code:
RobotDrive(SpeedController *frontLeftMotor,
SpeedController *rearLeftMotor,
SpeedController *frontRightMotor,
SpeedController *rearRightMotor);
In other words:
Code:
class MyRobot: public SimpleRobot
{
Victor leftFrontMotor;
Victor leftRearMotor;
Victor rightFrontMotor;
Victor rightRearMotor;
RobotDrive drive;
MyRobot():
leftFrontMotor(1),
leftRearMotor(2),
rightFrontMotor(3),
rightRearMotor(4),
drive(&leftFrontMotor, &leftRearMotor, &rightFrontMotor, &rightRearMotor)
{
}
....
}