111

Dependencies:   yezhong_main_controller_copy mbed1-dev

Committer:
ganlikun
Date:
Thu Jul 07 11:38:10 2022 +0000
Revision:
9:c082f1c52936
Parent:
0:d80c66cb1b3a
112

Who changed what in which revision?

UserRevisionLine numberNew contents of line
panzhan 0:d80c66cb1b3a 1 #ifndef MATH_OPS_H
panzhan 0:d80c66cb1b3a 2 #define MATH_OPS_H
panzhan 0:d80c66cb1b3a 3
panzhan 0:d80c66cb1b3a 4 #define PI 3.14159265359f
panzhan 0:d80c66cb1b3a 5
panzhan 0:d80c66cb1b3a 6 #include "math.h"
panzhan 0:d80c66cb1b3a 7
panzhan 0:d80c66cb1b3a 8 float fmaxf(float x, float y);
panzhan 0:d80c66cb1b3a 9 float fminf(float x, float y);
panzhan 0:d80c66cb1b3a 10 float fmaxf3(float x, float y, float z);
panzhan 0:d80c66cb1b3a 11 float fminf3(float x, float y, float z);
panzhan 0:d80c66cb1b3a 12 void limit_norm(float *x, float *y, float limit);
panzhan 0:d80c66cb1b3a 13 int float_to_uint(float x, float x_min, float x_max, int bits);
panzhan 0:d80c66cb1b3a 14 float uint_to_float(int x_int, float x_min, float x_max, int bits);
panzhan 0:d80c66cb1b3a 15
panzhan 0:d80c66cb1b3a 16 #endif