Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
2136 | - | 1 | #ifndef _MYMATH_H_ |
2 | #define _MYMATH_H_ |
||
3 | |||
4 | #include <avr/io.h> |
||
5 | |||
6 | #define T 16 |
||
7 | #define Q 28140 |
||
8 | #define SCALED(X) ((int32_t)((X) * Q)) |
||
9 | #define RAD_TO_DEG 57.2957795 // radians to degrees = 180 / PI |
||
10 | |||
11 | uint16_t sqrt32(uint32_t qzahl); |
||
12 | int16_t c_cos_8192(int16_t angle); |
||
2204 | - | 13 | int16_t c_sin_8192(int16_t angle); |
2136 | - | 14 | int16_t my_atan2(int32_t y, int32_t x); |
15 | |||
2204 | - | 16 | #endif |