Bayley Wang
/
foc-ed_in_the_bot_compact
robot
Embed:
(wiki syntax)
Show/hide line numbers
MathHelpers.h
00001 #ifndef __MATH_HELPERS_H 00002 #define __MATH_HELPERS_H 00003 00004 float constrain(float in, float min, float max); 00005 float constrain_norm(float *x, float *y, float coeffx, float coeffy, float max); 00006 float map(float x, float in_min, float in_max, float out_min, float out_max); 00007 float fminf(float, float); 00008 float fmaxf(float, float); 00009 float update_filter(float old, float x, float str); 00010 00011 float acbrt(float x); 00012 float aatan2(float q, float d); 00013 00014 #define M_PI 3.14159f 00015 00016 #endif
Generated on Tue Jul 12 2022 17:58:39 by 1.7.2