Robot Principal 26
Documentation du Club Robot INSA Rennes 2026
Chargement...
Recherche...
Aucune correspondance
Wheeledbase/lib/mathutils/mathutils.h
1#ifndef __MATHUTILS_H__
2#define __MATHUTILS_H__
3#ifndef M_PI
4#ifndef PI
5#define PI M_PI
6#endif
7#define M_PI 3.14159265358979323846
8#endif
9/* Preprocessor to avoid doxygen error */
10#if !defined(DOXYGEN_SHOULD_SKIP_THIS)
11
12float periodicmod(float x, float y);
13
14float inrange(float x, float min, float max);
15
16float saturate(float x, float min, float max);
17
18float sign(float x);
19
20#endif // DOXYGEN_SHOULD_SKIP_THIS
21
22#endif // __MATHUTILS_H__