We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
RotorToSensorRatio
1 parent 234a246 commit 8f5b020Copy full SHA for 8f5b020
src/main/java/org/trigon/hardware/phoenix6/talonfx/io/SimulationTalonFXIO.java
@@ -45,8 +45,8 @@ public void applyConfiguration(TalonFXConfiguration configuration) {
45
configuration.MotorOutput.Inverted = InvertedValue.CounterClockwise_Positive;
46
configuration.Feedback.FeedbackSensorSource = FeedbackSensorSourceValue.RotorSensor;
47
if (configuration.Feedback.RotorToSensorRatio != 1.0) {
48
- configuration.Feedback.RotorToSensorRatio = 1.0;
49
configuration.Feedback.SensorToMechanismRatio *= configuration.Feedback.RotorToSensorRatio;
+ configuration.Feedback.RotorToSensorRatio = 1.0;
50
}
51
talonFX.getConfigurator().apply(configuration);
52
0 commit comments