public class IntakeConstants {
/** Intake roller motor speed in range [-1, 1] */
- public static final double SPEED = 0.2;
+ public static final double SPEED = 0.8;
/** 12 tooth pinion driving 36 tooth driven gear */
public static final double GEAR_RATIO = 36.0/12.0;
/** radius (inches) of the rack gear which is a 10 tooth pinion at 10 DP */
public static final double RADIUS_RACK_PINION = 0.5;
/** roller current limits */
- public static final double ROLLER_CURRENT_LIMITS = 10.0;
+ public static final double ROLLER_CURRENT_LIMITS = 40.0;
/**right and left motor current limits */
public static final double EXTENDER_CURRENT_LIMITS = 40.0;
/** max extension in inches */
- public static final double MAX_EXTENSION = 3.0; // 14.856;
+ public static final double MAX_EXTENSION = 10.0; // 14.856;
/** starting point in inches */
public static final double STARTING_POINT = 0;
/** rack pitch in teeth per inch of diameter (Diametral Pitch) DP = N teeth / Diameter in inches */
// apply the configuration to the right motor (master)
rightMotor.getConfigurator().apply(config);
+ //left motor is weaker
// apply the configuration to the left motor (slave)
leftMotor.getConfigurator().apply(config);
SmartDashboard.putData("Intake On", new InstantCommand(this::spinStart));
SmartDashboard.putData("Intake Off", new InstantCommand(this::spinStop));
SmartDashboard.putData("Roller Spin Forward", new InstantCommand(() -> this.spin(0.8), this));
- SmartDashboard.putData("Roller Spin Reverse", new InstantCommand(() -> this.spin(-0.5), this));
+ SmartDashboard.putData("Roller Spin Reverse", new InstantCommand(() -> this.spin(-0.8), this));
SmartDashboard.putData("Roller Stop", new InstantCommand(() -> this.spin(0.0), this));
SmartDashboard.putData("Zero Motors", new InstantCommand(this::zeroMotors));