Commit 410c61d 1 parent 8c7a6bc commit 410c61d Copy full SHA for 410c61d
File tree 3 files changed +3
-7
lines changed
3 files changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -208,6 +208,7 @@ class Pid
208
208
209
209
/* !
210
210
* \brief Reset the state of this PID controller
211
+ * @note The integral term is not retained and it is reset to zero
211
212
*/
212
213
void reset ();
213
214
Original file line number Diff line number Diff line change @@ -125,6 +125,7 @@ class PidROS
125
125
126
126
/* !
127
127
* \brief Reset the state of this PID controller
128
+ * @note The integral term is not retained and it is reset to zero
128
129
*/
129
130
void reset ();
130
131
@@ -133,7 +134,7 @@ class PidROS
133
134
*
134
135
* \param save_iterm boolean indicating if integral term is retained on reset()
135
136
*/
136
- void reset (bool save_iterm = false );
137
+ void reset (bool save_iterm);
137
138
138
139
/* !
139
140
* \brief Set the PID error and compute the PID command with nonuniform time
Original file line number Diff line number Diff line change @@ -93,12 +93,6 @@ void Pid::reset(bool save_iterm)
93
93
d_error_ = 0.0 ;
94
94
cmd_ = 0.0 ;
95
95
96
- // If last integral error is already zero, just return
97
- if (std::abs (i_error_) < std::numeric_limits<double >::epsilon ())
98
- {
99
- return ;
100
- }
101
-
102
96
// Check to see if we should reset integral error here
103
97
if (!save_iterm) clear_saved_iterm ();
104
98
}
You can’t perform that action at this time.
0 commit comments