io.updateInputs(inputs);
Logger.processInputs("Intake", inputs);
- double inchExtension = io.getPosition();
+ double inchExtension = inputs.leftPosition;
if (calibrating) {
io.setRightMotor(-0.1);
public void updateInputs(IntakeIOInputs inputs);
- /**
- * Get the intake extender position
- *
- * @return inches
- */
- public double getPosition();
-
/**
* Set the intake extender position
*
leftMotor.setControl(voltageRequest.withPosition(motorRotations).withEnableFOC(true));
}
- /**
- * Get the intake extender position
- *
- * @return inches
- */
- @Override
- public double getPosition() {
- return Intake.rotationsToInches(leftMotor.getPosition().getValueAsDouble());
- }
-
@Override
public void setLeftMotor(double speed) {
leftMotor.set(speed);