Skip to content

Commit 9cf52b6

Browse files
authored
mark some fields that should not be changed as const (#10)
mark some fields that should not be changed as const
1 parent 875a32e commit 9cf52b6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/DiscretePIDs.jl

+3-3
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,17 @@ mutable struct DiscretePID{T} <: Function
1717
"Reset time"
1818
Tt::T
1919
"Maximum derivative gain"
20-
N::T
20+
const N::T
2121
"Fraction of set point in prop. term"
2222
b::T
2323
"Low output limit"
2424
umin::T
2525
"High output limit"
2626
umax::T
2727
"Sampling period"
28-
Ts::T
28+
const Ts::T
2929
bi::T
30-
ar::T
30+
const ar::T
3131
bd::T
3232
ad::T
3333
"Integral state"

0 commit comments

Comments
 (0)