public static final double RED_BORDER = FIELD_LENGTH/2 + Units.inchesToMeters(167.0);
public static final double BLUE_BORDER = FIELD_LENGTH/2 - Units.inchesToMeters(167.0);
- public static final double LEFT_SIDE_TARGET = FIELD_WIDTH * 0.167;
- public static final double RIGHT_SIDE_TARGET = FIELD_WIDTH * 0.833;
+ public static final double LEFT_SIDE_TARGET = FIELD_WIDTH * 0.215;
+ public static final double RIGHT_SIDE_TARGET = FIELD_WIDTH * 0.785;
/**The coordinate of the climb position */
public static final Pose2d BLUE_CLIMB_LOCATION = new Pose2d(1.5, FIELD_WIDTH/2 - 2.0, new Rotation2d()); // TODO: find this
leftMotor.getConfigurator().apply(config);
leftMotor.getConfigurator().apply(
- new MotorOutputConfigs().withInverted(InvertedValue.CounterClockwise_Positive)
+ new MotorOutputConfigs().withInverted(InvertedValue.Clockwise_Positive)
.withNeutralMode(NeutralModeValue.Coast)
);
* @param setpoint in inches
*/
public void setPosition(double setpoint) {
- double motorRotations = inchesToRotations(setpoint);
+ double motorRotations = -inchesToRotations(setpoint);
rightMotor.setControl(voltageRequest.withPosition(motorRotations));
leftMotor.setControl(voltageRequest.withPosition(motorRotations));