Skip to content

Commit c23cc3a

Browse files
committed
refactor: change PIDController and SquIDController visibility from internal to public
1 parent 35b43ac commit c23cc3a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main/kotlin/dev/nextftc/control/feedback/PIDElement.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ data class PIDCoefficients @JvmOverloads constructor(
4545
*
4646
* @author Zach Harel, rowan-mcalpin
4747
*/
48-
internal class PIDController @JvmOverloads constructor(
48+
class PIDController @JvmOverloads constructor(
4949
val coefficients: PIDCoefficients,
5050
val resetIntegralOnZeroCrossover: Boolean = true
5151
) {

src/main/kotlin/dev/nextftc/control/feedback/SquIDElement.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ import kotlin.time.TimeSource
3434
*
3535
* @author Zach Harel, rowan-mcalpin
3636
*/
37-
internal class SquIDController(val coefficients: PIDCoefficients) {
37+
class SquIDController(val coefficients: PIDCoefficients) {
3838

3939
private var lastError: Double = 0.0
4040
private var errorSum = 0.0

0 commit comments

Comments
 (0)