1
math_ops.h@6:3e6d09f56278, 2019-11-19 (annotated)
- Committer:
- Rushu
- Date:
- Tue Nov 19 09:00:12 2019 +0000
- Revision:
- 6:3e6d09f56278
- Parent:
- 0:d6186b8990c5
add 200ms reference trajectory divided.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
benkatz | 0:d6186b8990c5 | 1 | #ifndef MATH_OPS_H |
benkatz | 0:d6186b8990c5 | 2 | #define MATH_OPS_H |
benkatz | 0:d6186b8990c5 | 3 | |
benkatz | 0:d6186b8990c5 | 4 | #define PI 3.14159265359f |
Rushu | 6:3e6d09f56278 | 5 | #define Deg_rad 57.295779513082320876798154814105f |
benkatz | 0:d6186b8990c5 | 6 | |
benkatz | 0:d6186b8990c5 | 7 | #include "math.h" |
benkatz | 0:d6186b8990c5 | 8 | |
benkatz | 0:d6186b8990c5 | 9 | float fmaxf(float x, float y); |
benkatz | 0:d6186b8990c5 | 10 | float fminf(float x, float y); |
benkatz | 0:d6186b8990c5 | 11 | float fmaxf3(float x, float y, float z); |
benkatz | 0:d6186b8990c5 | 12 | float fminf3(float x, float y, float z); |
benkatz | 0:d6186b8990c5 | 13 | void limit_norm(float *x, float *y, float limit); |
benkatz | 0:d6186b8990c5 | 14 | int float_to_uint(float x, float x_min, float x_max, int bits); |
benkatz | 0:d6186b8990c5 | 15 | float uint_to_float(int x_int, float x_min, float x_max, int bits); |
benkatz | 0:d6186b8990c5 | 16 | |
benkatz | 0:d6186b8990c5 | 17 | #endif |