How do we know if we have regular jaguars or CAN jaguars? Also, if we use jaguars does this mean we actually need to declare 4 jaguar instances to drive the robot? Can we do something like
Code:
public void robotInit() {
RobotDrive robot = new RobotDrive(1,2,3,4);
Joystick left = new Joystick(1);
Joystick right = new Joystick(2);
}
public void teleopPeriodic() {
robot.tankDrive(left.getThrottle(),(-1*right.getThrottle()));
}
or do we need to actually need to create jaguar instances and use them to drive the robot. If so, how would we do this?