Skip to content

Commit 5e82687

Browse files
Merge pull request #84 from jwbonner/main
Fix loop overruns due to blocking Talon call
2 parents eef76c6 + d8b44e8 commit 5e82687

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/main/java/swervelib/motors/TalonFXSwerve.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ public void burnFlash()
258258
{
259259
if (configChanged)
260260
{
261-
motor.configAllSettings(configuration, 250);
261+
motor.configAllSettings(configuration, 0);
262262
configChanged = false;
263263
}
264264
}
@@ -367,7 +367,7 @@ public void setPosition(double position)
367367
if (!absoluteEncoder && !SwerveDriveTelemetry.isSimulation)
368368
{
369369
position = position < 0 ? (position % 360) + 360 : position;
370-
motor.setSelectedSensorPosition(position / positionConversionFactor, 0, 250);
370+
motor.setSelectedSensorPosition(position / positionConversionFactor, 0, 0);
371371
}
372372
}
373373

src/main/java/swervelib/motors/TalonSRXSwerve.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ public void setPosition(double position)
356356
{
357357
if (!absoluteEncoder && !SwerveDriveTelemetry.isSimulation)
358358
{
359-
motor.setSelectedSensorPosition(position / positionConversionFactor, 0, 250);
359+
motor.setSelectedSensorPosition(position / positionConversionFactor, 0, 0);
360360
}
361361
}
362362

0 commit comments

Comments
 (0)