Subversion Repositories Projects

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1687 - 1
#ifndef _MYMATH_H_
2
#define _MYMATH_H_
3
 
4
#include <avr/io.h>
5
 
6
#define         T               14 //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
#define         RQ      (uint16_t)(Q / RAD_TO_DEG)
11
 
12
uint16_t sqrt32(uint32_t qzahl);
13
int16_t c_cos_8192(int16_t angle);
14
int16_t my_atan2(int32_t y, int32_t x);
15
 
16
#endif