We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 55f0ee2 commit 126e3d5Copy full SHA for 126e3d5
src/lib.rs
@@ -264,11 +264,16 @@ where
264
self.integral_term = T::zero();
265
}
266
267
- /// Set integral term to custom value. This might be important to set pid
268
- /// controller to previous state after an interruption or crash
+ /// Set integral term to custom value.
+ /// This may drastically change the control output.
269
+ /// Use this to return the PID controller to a previous state after an interruption or crash.
270
pub fn set_integral_term(&mut self, integral_term: impl Into<T>) -> &mut Self {
271
self.integral_term = integral_term.into();
272
self
273
+
274
+ /// Get the integral term.
275
+ pub fn get_integral_term(&self) -> T {
276
+ self.integral_term
277
278
279
0 commit comments