Subversion Repositories MK3Mag

Rev

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

#ifndef _MAIN_H_
#define _MAIN_H_


#include <avr/eeprom.h>
#include <inttypes.h>


typedef enum
{
        ATTITUDE_SOURCE_I2C,
        ATTITUDE_SOURCE_UART,
        ATTITUDE_SOURCE_ACC
} AttitudeSource_t;


typedef enum
{
        ORIENTATION_NC = 0,
        ORIENTATION_FC = 1
} Orientation_t;


extern int16_t Heading;

extern AttitudeSource_t AttitudeSource;
extern Orientation_t Orientation;

extern int16_t MagX, MagY, MagZ;

void SetDebugValues(void);

#endif //_MAIN_H_