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.
MathHelpers/MathHelpers.h@181:d3510c8beab6, 2018-02-09 (annotated)
- Committer:
- bwang
- Date:
- Fri Feb 09 03:49:31 2018 +0000
- Revision:
- 181:d3510c8beab6
- Parent:
- 64:b4175385d718
02/08/2018 22:48 - integrated CommandProcessor and PreferenceWriter (but code does not use dynamic config variables or set error flags yet)
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| bwang | 19:a6cf15f89f3d | 1 | #ifndef __MATH_HELPERS_H |
| bwang | 19:a6cf15f89f3d | 2 | #define __MATH_HELPERS_H |
| bwang | 19:a6cf15f89f3d | 3 | |
| bwang | 19:a6cf15f89f3d | 4 | float constrain(float in, float min, float max); |
| bwang | 64:b4175385d718 | 5 | float constrain_norm(float *x, float *y, float coeffx, float coeffy, float max); |
| bwang | 19:a6cf15f89f3d | 6 | float map(float x, float in_min, float in_max, float out_min, float out_max); |
| bwang | 19:a6cf15f89f3d | 7 | float fminf(float, float); |
| bwang | 19:a6cf15f89f3d | 8 | float fmaxf(float, float); |
| bwang | 181:d3510c8beab6 | 9 | float update_filter(float old, float x, float str); |
| bwang | 19:a6cf15f89f3d | 10 | |
| bwang | 38:07cb4ae6c1bd | 11 | float acbrt(float x); |
| bwang | 39:80b38a8e1787 | 12 | float aatan2(float q, float d); |
| bwang | 38:07cb4ae6c1bd | 13 | |
| bwang | 38:07cb4ae6c1bd | 14 | #define M_PI 3.14159f |
| bwang | 38:07cb4ae6c1bd | 15 | |
| bwang | 19:a6cf15f89f3d | 16 | #endif |