Made prev_measurement in PID public

This commit is contained in:
Zachary Levy
2026-05-27 12:43:38 -07:00
parent ea4ea1730d
commit 0ccd4f9e56
+1 -1
View File
@@ -92,7 +92,7 @@ pub struct Pid<T: Number> {
/// Last calculated integral value if [Pid::i_gain] is used. /// Last calculated integral value if [Pid::i_gain] is used.
pub 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>, pub prev_measurement: Option<T>,
} }
impl<T> Pid<T> impl<T> Pid<T>