Re: Build succesful, but no robot code
Here's the robotInit code:
public void robotInit() {
chooser = new SendableChooser<Object>();
driveSubsystem = new DriveSubsystem();
gyroSystem = new GyroSystem();
ballHopperSystem = new BallHopperSystem();
ropeClimberSystem = new RopeClimberSystem();
CameraServer.getInstance().startAutomaticCapture() ;
SmartDashboard.putData("Auto mode", chooser);
robotDrive = new RobotDrive(RobotMap.FRONT_LEFT_MOTOR_PORT, RobotMap.BACK_LEFT_MOTOR_PORT, RobotMap.FRONT_RIGHT_MOTOR_PORT, RobotMap.BACK_RIGHT_MOTOR_PORT);
robotDrive.setInvertedMotor(MotorType.kFrontLeft, true);
robotDrive.setInvertedMotor(MotorType.kFrontRight, true);
robotDrive.setExpiration(0.1);
}
|