Subversion Repositories MK3Mag

Rev

Rev 28 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
19 killagreg 1
#ifndef _MAIN_H_
2
#define _MAIN_H_
1 ingob 3
 
4
 
5
#include <avr/eeprom.h>
19 killagreg 6
#include <inttypes.h>
1 ingob 7
 
8
 
28 killagreg 9
typedef enum
10
{
11
        ATTITUDE_SOURCE_I2C,
12
        ATTITUDE_SOURCE_UART,
13
        ATTITUDE_SOURCE_ACC
14
} AttitudeSource_t;
1 ingob 15
 
28 killagreg 16
 
29 killagreg 17
typedef enum
18
{
19
        ORIENTATION_NC = 0,
20
        ORIENTATION_FC = 1
21
} Orientation_t;
22
 
23
 
19 killagreg 24
extern int16_t Heading;
29 killagreg 25
 
28 killagreg 26
extern AttitudeSource_t AttitudeSource;
29 killagreg 27
extern Orientation_t Orientation;
1 ingob 28
 
28 killagreg 29
extern int16_t MagX, MagY, MagZ;
7 hbuss 30
 
19 killagreg 31
void SetDebugValues(void);
7 hbuss 32
 
19 killagreg 33
#endif //_MAIN_H_
1 ingob 34
 
35
 
36
 
37
 
38