![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
power board firmware for dyno
math_ops.h@1:6b03278584b2, 2021-06-21 (annotated)
- Committer:
- adimmit
- Date:
- Mon Jun 21 19:56:09 2021 +0000
- Revision:
- 1:6b03278584b2
- Parent:
- 0:f4f2a7b3364c
torque sense starting;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
adimmit | 0:f4f2a7b3364c | 1 | #ifndef MATH_OPS_H |
adimmit | 0:f4f2a7b3364c | 2 | #define MATH_OPS_H |
adimmit | 0:f4f2a7b3364c | 3 | |
adimmit | 0:f4f2a7b3364c | 4 | #define PI 3.14159265359f |
adimmit | 0:f4f2a7b3364c | 5 | |
adimmit | 0:f4f2a7b3364c | 6 | #include "math.h" |
adimmit | 0:f4f2a7b3364c | 7 | |
adimmit | 0:f4f2a7b3364c | 8 | float fmaxf(float x, float y); |
adimmit | 0:f4f2a7b3364c | 9 | float fminf(float x, float y); |
adimmit | 0:f4f2a7b3364c | 10 | float fmaxf3(float x, float y, float z); |
adimmit | 0:f4f2a7b3364c | 11 | float fminf3(float x, float y, float z); |
adimmit | 0:f4f2a7b3364c | 12 | void limit_norm(float *x, float *y, float limit); |
adimmit | 0:f4f2a7b3364c | 13 | int float_to_uint(float x, float x_min, float x_max, int bits); |
adimmit | 0:f4f2a7b3364c | 14 | float uint_to_float(int x_int, float x_min, float x_max, int bits); |
adimmit | 0:f4f2a7b3364c | 15 | |
adimmit | 0:f4f2a7b3364c | 16 | #endif |