Spine 18 motor board for Biomimetic Robotics Lab
math_ops.h@15:56a06363a698, 22 months ago (annotated)
- Committer:
- adimmit
- Date:
- Wed Sep 28 16:32:46 2022 +0000
- Revision:
- 15:56a06363a698
- Parent:
- 0:76c761d3caf1
updated to work with checksum and with the 2-motor dyno;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
adimmit | 0:76c761d3caf1 | 1 | #ifndef MATH_OPS_H |
adimmit | 0:76c761d3caf1 | 2 | #define MATH_OPS_H |
adimmit | 0:76c761d3caf1 | 3 | |
adimmit | 0:76c761d3caf1 | 4 | #define PI 3.14159265359f |
adimmit | 0:76c761d3caf1 | 5 | |
adimmit | 0:76c761d3caf1 | 6 | #include "math.h" |
adimmit | 0:76c761d3caf1 | 7 | |
adimmit | 0:76c761d3caf1 | 8 | float fmaxf(float x, float y); |
adimmit | 0:76c761d3caf1 | 9 | float fminf(float x, float y); |
adimmit | 0:76c761d3caf1 | 10 | float fmaxf3(float x, float y, float z); |
adimmit | 0:76c761d3caf1 | 11 | float fminf3(float x, float y, float z); |
adimmit | 0:76c761d3caf1 | 12 | void limit_norm(float *x, float *y, float limit); |
adimmit | 0:76c761d3caf1 | 13 | int float_to_uint(float x, float x_min, float x_max, int bits); |
adimmit | 0:76c761d3caf1 | 14 | float uint_to_float(int x_int, float x_min, float x_max, int bits); |
adimmit | 0:76c761d3caf1 | 15 | |
adimmit | 0:76c761d3caf1 | 16 | #endif |