File tree Expand file tree Collapse file tree 2 files changed +2
-0
lines changed
yams/java/yams/motorcontrollers/remote Expand file tree Collapse file tree 2 files changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -802,6 +802,7 @@ public boolean applyConfig(SmartMotorControllerConfig config)
802802 "withExternalEncoderGearing(Rotations.of(1.0))" );
803803 }
804804
805+ m_talonConfig .ExternalFeedback .ExternalFeedbackSensorSource = ExternalFeedbackSensorSourceValue .Commutation ;
805806 m_talonConfig .ExternalFeedback .RotorToSensorRatio = 1.0 ;//config.getGearing().getRotorToMechanismRatio();
806807 m_talonConfig .ExternalFeedback .SensorToMechanismRatio = config .getGearing ().getMechanismToRotorRatio ();
807808 // Zero offset.
Original file line number Diff line number Diff line change @@ -756,6 +756,7 @@ public boolean applyConfig(SmartMotorControllerConfig config)
756756 "withExternalEncoderGearing(Rotations.of(1.0))" );
757757 }
758758
759+ m_talonConfig .Feedback .FeedbackSensorSource = FeedbackSensorSourceValue .RotorSensor ;
759760 m_talonConfig .Feedback .RotorToSensorRatio = 1.0 ;
760761 m_talonConfig .Feedback .SensorToMechanismRatio = config .getGearing ().getMechanismToRotorRatio ();
761762
You can’t perform that action at this time.
0 commit comments