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 16daae4 commit 6728fbdCopy full SHA for 6728fbd
src/lib.rs
@@ -263,6 +263,13 @@ where
263
pub fn reset_integral_term(&mut self) {
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
269
+ pub fn set_integral_term(&mut self, integral_term: impl Into<T>) -> &mut Self {
270
+ self.integral_term = integral_term.into();
271
+ self
272
+ }
273
274
275
/// Saturating the input `value` according the absolute `limit` (`-abs(limit) <= output <= abs(limit)`).
0 commit comments