Made integral term public in PID
This commit is contained in:
+1
-1
@@ -90,7 +90,7 @@ pub struct Pid<T: Number> {
|
|||||||
/// Limiter for the derivative term: `-d_limit <= D <= d_limit`.
|
/// Limiter for the derivative term: `-d_limit <= D <= d_limit`.
|
||||||
pub derivative_limit: T,
|
pub derivative_limit: T,
|
||||||
/// Last calculated integral value if [Pid::i_gain] is used.
|
/// Last calculated integral value if [Pid::i_gain] is used.
|
||||||
integral_term: T,
|
pub integral_term: T,
|
||||||
/// Previously found measurement whilst using the [Pid::next_control_output] method.
|
/// Previously found measurement whilst using the [Pid::next_control_output] method.
|
||||||
prev_measurement: Option<T>,
|
prev_measurement: Option<T>,
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user