Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Revision 1:b61ce3f51bd6, committed 2020-03-17
- Comitter:
- MPPT51
- Date:
- Tue Mar 17 05:11:12 2020 +0000
- Parent:
- 0:d735360f91f9
- Commit message:
- motorcon
Changed in this revision
| RateLimiter.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/RateLimiter.cpp Wed Jan 14 08:49:46 2015 +0000
+++ b/RateLimiter.cpp Tue Mar 17 05:11:12 2020 +0000
@@ -1,17 +1,17 @@
#include "RateLimiter.h"
RateLimiter::RateLimiter () {
- setLimits(1, -1, 0, 10e-3);
+ //setLimits(1, -1, 0, 10e-3);
}
-
+/*
RateLimiter::RateLimiter (float R, float F, float y0, float T_d) {
setLimits(R, F, y0, T_d);
}
-
+*/
void RateLimiter::reset() {
y0 = 0;
}
-
+/*
void RateLimiter::setLimits(float R, float F) {
if (R < 0) {
R = -R;
@@ -22,7 +22,7 @@
this->R = R;
this->F = F;
}
-
+*/
void RateLimiter::setLimits(float R, float F, float y0, float T_d) {
if (R < 0) {
R = -R;