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 9f39e7d commit 6b9c416Copy full SHA for 6b9c416
src/lib.rs
@@ -263,6 +263,17 @@ where
263
pub fn reset_integral_term(&mut self) {
264
self.integral_term = T::zero();
265
}
266
+
267
+ /// Overwrite the integral term, this may drastically change the
268
+ /// control output.
269
+ pub fn set_integral_term(&mut self, integral: T) {
270
+ self.integral_term = integral;
271
+ }
272
273
+ /// Get the integral term.
274
+ pub fn get_integral_term(&self) -> T {
275
+ self.integral_term
276
277
278
279
/// Saturating the input `value` according the absolute `limit` (`-abs(limit) <= output <= abs(limit)`).
0 commit comments