File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ use pid::Pid;
36
36
let mut pid = Pid :: new (15.0 , 100.0 );
37
37
pid . p (10.0 , 100.0 );
38
38
39
- // Input a mesurement with an error of 5.0 from our setpoint
39
+ // Input a measurement with an error of 5.0 from our setpoint
40
40
let output = pid . next_control_output (10.0 );
41
41
42
42
// Show that the error is correct by multiplying by our kp
Original file line number Diff line number Diff line change 11
11
//! let mut pid = Pid::new(15.0, 100.0);
12
12
//! pid.p(10.0, 100.0);
13
13
//!
14
- //! // Input a mesurement with an error of 5.0 from our setpoint
14
+ //! // Input a measurement with an error of 5.0 from our setpoint
15
15
//! let output = pid.next_control_output(10.0);
16
16
//!
17
17
//! // Show that the error is correct by multiplying by our kp
@@ -70,7 +70,7 @@ use serde::{Deserialize, Serialize};
70
70
/// ```rust
71
71
/// use pid::Pid;
72
72
///
73
- /// // Create full PID controler
73
+ /// // Create full PID controller
74
74
/// let mut full_controller = Pid::new(15.0, 100.0);
75
75
/// full_controller.p(10.0, 100.0).i(4.5, 100.0).d(0.25, 100.0);
76
76
///
You can’t perform that action at this time.
0 commit comments