José Claudio
/
QuadCopter-Sensor-Serial
Quadcopter working with accelerômeter and accelerometer, and bluetooth radio for communication
Util.h@0:56b8c86181b1, 2013-05-21 (annotated)
- Committer:
- jose_claudiojr
- Date:
- Tue May 21 14:12:13 2013 +0000
- Revision:
- 0:56b8c86181b1
Quadcopter code with accelerometer and gyroscope.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
jose_claudiojr | 0:56b8c86181b1 | 1 | #ifndef UTIL_H |
jose_claudiojr | 0:56b8c86181b1 | 2 | #define UTIL_H |
jose_claudiojr | 0:56b8c86181b1 | 3 | |
jose_claudiojr | 0:56b8c86181b1 | 4 | #include <math.h> |
jose_claudiojr | 0:56b8c86181b1 | 5 | |
jose_claudiojr | 0:56b8c86181b1 | 6 | int clampInt(int value, int min, int max); |
jose_claudiojr | 0:56b8c86181b1 | 7 | float clampFloat(float value, float min, float max); |
jose_claudiojr | 0:56b8c86181b1 | 8 | //float abs(float value); |
jose_claudiojr | 0:56b8c86181b1 | 9 | float norm(float val1, float val2, float val3); |
jose_claudiojr | 0:56b8c86181b1 | 10 | #endif /* UTIL_H */ |