slot0.kV = 0.11;
slot0.kA = 0.0;
+ configs.MotionMagic.MotionMagicAcceleration = 999;
+ configs.MotionMagic.MotionMagicJerk = 0;
+
motorOne.getConfigurator().apply(configs);
motorTwo.getConfigurator().apply(configs);
motorOne.getConfigurator().apply(limitConfig);
@Override
public void periodic() {
- tuner.periodic();
-
- }
-
- public void periodicDEATH() {
updateInputs();
Logger.processInputs("Spindexer", inputs);
}
public void setMotorVoltages(double voltage) {
- motorOne.setControl(new VoltageOut(voltage * 12).withEnableFOC(true));
- motorTwo.setControl(new VoltageOut(voltage * 12).withEnableFOC(true));
+ // motorOne.setControl(new VoltageOut(voltage * 12).withEnableFOC(true));
+ // motorTwo.setControl(new VoltageOut(voltage * 12).withEnableFOC(true));
+ motorOne.setControl(velocityRequest.withVelocity(voltage * SpindexerConstants.MAX_RPM));
+ motorTwo.setControl(velocityRequest.withVelocity(voltage * SpindexerConstants.MAX_RPM));
}
public void maxSpindexer() {