Subversion Repositories FlightCtrl

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1538 killagreg 1
#ifndef _MM3_H
2
#define _MM3_H
3
 
4
typedef struct
5
{
6
        int8_t X_off;
7
        int8_t Y_off;
8
        int8_t Z_off;
9
        int16_t X_range;
10
        int16_t Y_range;
11
        int16_t Z_range;
12
} MM3_calib_t;
13
 
14
extern MM3_calib_t MM3_calib;
15
 
16
// Initialization of the MM3 communication
17
void MM3_Init(void);
18
 
19
// should be called cyclic to get actual compass axis readings
20
void MM3_Update(void);
21
// this function calibrates the MM3
22
// and returns immediately if the communication to the MM3-Board is broken.
23
void MM3_Calibrate(void);
24
 
25
// update compass heading
26
void MM3_Heading(void);
27
 
28
#endif //_MM3_H
29