addMechanism("RobotBase", rb);
System.out.println("Started Event Controller");
}
public void yAxisMoved(JoystickEvent e) {
GRTRobotBase base = ((GRTRobotBase) getMechanism("RobotBase"));
if (e.getSource().getId().equals("left")) {
base.tankDrive(e.getValue(), base.getRightSpeed());
} else if (e.getSource().getId().equals("right")) {
base.tankDrive(base.getLeftSpeed(), e.getValue());
}
}