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