Subversion Repositories FlightCtrl

Compare Revisions

Ignore whitespace Rev 727 → Rev 728

/branches/MicroMag3_Nick666/trunc/compass.h
3,11 → 3,11
struct MM3_working_struct
{
uint8_t STATE;
unsigned int DRDY;
uint8_t AXIS;
volatile signed int x_axis;
volatile signed int y_axis;
volatile signed int z_axis;
uint16_t DRDY;
int16_t x_axis;
int16_t y_axis;
int16_t z_axis;
};
 
 
29,6 → 29,21
void calib_MM3(void);
int heading_MM3(void);
 
// MM3-Konfiguration
#define MM3_X_AXIS 0x01
#define MM3_Y_AXIS 0x02
#define MM3_Z_AXIS 0x03
 
#define MM3_PERIOD_32 0x00
#define MM3_PERIOD_64 0x10
#define MM3_PERIOD_128 0x20
#define MM3_PERIOD_256 0x30
#define MM3_PERIOD_512 0x40
#define MM3_PERIOD_1024 0x50
#define MM3_PERIOD_2048 0x60
#define MM3_PERIOD_4096 0x70
 
// Spikes Filtern
#define Max_Axis_Value 500
 
// Die Werte der Statemachine