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.
Diff: MathHelpers/MathHelpers.h
- Revision:
- 64:b4175385d718
- Parent:
- 39:80b38a8e1787
- Child:
- 82:5e741c5ffd9f
--- a/MathHelpers/MathHelpers.h Sat Jan 28 09:10:07 2017 +0000 +++ b/MathHelpers/MathHelpers.h Sat Jan 28 23:21:07 2017 +0000 @@ -2,6 +2,7 @@ #define __MATH_HELPERS_H float constrain(float in, float min, float max); +float constrain_norm(float *x, float *y, float coeffx, float coeffy, float max); float map(float x, float in_min, float in_max, float out_min, float out_max); float fminf(float, float); float fmaxf(float, float);