Bayley Wang
/
foc-ed_in_the_bot_compact
robot
MathHelpers/MathHelpers.h@82:5e741c5ffd9f, 2017-03-10 (annotated)
- Committer:
- bwang
- Date:
- Fri Mar 10 08:29:13 2017 +0000
- Revision:
- 82:5e741c5ffd9f
- Parent:
- 64:b4175385d718
things somewhat work?
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 | 82:5e741c5ffd9f | 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 |