Skip to content

Commit c4b94e4

Browse files
authored
Merge pull request #8 from strykeforce/feature/6-clear-i-accum
Clear i-accum when setting I
2 parents 4ba0820 + 74d3ce2 commit c4b94e4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/kotlin/org/strykeforce/thirdcoast/talon/TalonParameterCommand.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ class TalonParameterCommand(
8383
}
8484
SLOT_I -> configDoubleParam(slot.kI) { talon, value ->
8585
talon.config_kI(talonService.activeSlotIndex, value, timeout)
86+
talon.setIntegralAccumulator(0.0, 0, timeout)
8687
slot.kI = value
8788
}
8889
SLOT_D -> configDoubleParam(slot.kD) { talon, value ->

0 commit comments

Comments
 (0)