Quote:
Originally Posted by jhersh
This is the source of your error. You presumably (since you didn't actually show it) have a RobotDrive member called myRobot which uses PWM channels 1 and 2. You then create 2 Victors which use PWM channels 1 and 2. These 2 channels are already in use by your robot drive object.
|
One thing to add on to this is that RobotDrive creates Jaguar objects on these channels. Based on the code it looks like you are using Victors.
You might want to look into using one of these two implementations of RobotDrive.
RobotDrive::RobotDrive(SpeedController *leftMotor, SpeedController *rightMotor, float sensitivity);
RobotDrive::RobotDrive(SpeedController &leftMotor, SpeedController &rightMotor, float sensitivity);