Motor control for robots. More compact, less object-oriented revision.
Dependencies: FastPWM3 mbed-dev-f303
Fork of Hobbyking_Cheetah_V1 by
math_ops.h
00001 #ifndef MATH_OPS_H 00002 #define MATH_OPS_H 00003 00004 #define PI 3.14159265359f 00005 #include "mbed.h" 00006 #include "math.h" 00007 00008 float fmaxf(float x, float y); 00009 float fminf(float x, float y); 00010 float fmaxf3(float x, float y, float z); 00011 float fminf3(float x, float y, float z); 00012 float roundf(float x); 00013 void limit_norm(float *x, float *y, float limit); 00014 int float_to_uint(float x, float x_min, float x_max, uint8_t bits); 00015 float uint_to_float(int x_int, float x_min, float x_max, uint8_t bits); 00016 00017 #endif
Generated on Tue Jul 12 2022 13:17:46 by 1.7.2