diff options
author | Thales Lima Oliveira <thaleslima.ufu@gmail.com> | 2017-10-06 17:06:15 -0300 |
---|---|---|
committer | Thales Lima Oliveira <thaleslima.ufu@gmail.com> | 2017-10-06 17:06:15 -0300 |
commit | 89befdb9b259d02249876e39ec6fd28860272439 (patch) | |
tree | 054de50365749426623bed352a10e84299e84cad /Project/RateLimiter.h | |
parent | bc5a3e8923cb8efedbbd5b88e212eb0e9009cf87 (diff) | |
download | PSP.git-89befdb9b259d02249876e39ec6fd28860272439.tar.gz PSP.git-89befdb9b259d02249876e39ec6fd28860272439.tar.xz PSP.git-89befdb9b259d02249876e39ec6fd28860272439.zip |
A lot of documentation written
Diffstat (limited to 'Project/RateLimiter.h')
-rw-r--r-- | Project/RateLimiter.h | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/Project/RateLimiter.h b/Project/RateLimiter.h index bab52db..3d57498 100644 --- a/Project/RateLimiter.h +++ b/Project/RateLimiter.h @@ -49,16 +49,17 @@ class RateLimiter : public ControlElement void SetLowLimit(double lowLimit) { m_lowLimit = lowLimit; } /** * @brief Calculate the rate and limits it if exceeds.<br> - * The rate is calculated by:<br><br> - * \f$ rate = \frac{x(i) - y(i-1)}{\Delta t} \f$<br><br> - * \f$ x(i) \f$ is the current input and \f$ y(i-1) \f$ is the previous output.<br> - * If the \f$rate\f$ is greater than rising rate (\f$ R \f$), the output will be:<br><br> - * \f$ output = \Delta t \cdot R + y(i-1)\f$<br><br> + * + * The rate is calculated by: + * <center>\f$ rate = \frac{x(i) - y(i-1)}{\Delta t} \f$</center> + * Where, \f$ x(i) \f$ is the current input and \f$ y(i-1) \f$ is the previous output.<br><br> + * If the \f$rate\f$ is greater than rising rate (\f$ R \f$), the output will be:<br> + * <center>\f$ output = \Delta t \cdot R + y(i-1)\f$</center> * If the \f$rate\f$ is lower than falling rate (\f$ F \f$), the output will be:<br><br> - * \f$ output = \Delta t \cdot L + y(i-1) \f$<br><br> - * Otherwise:<br><br> - * \f$ output = input \f$. - * @param input input value. + * <center>\f$ output = \Delta t \cdot F + y(i-1) \f$</center> + * Otherwise: + * <center>\f$ output = input \f$</center>. + * @param input Input value. * @param timeStep Time step. * @return Always true. */ |