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