Rev 2039 | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2039 | Rev 2051 | ||
---|---|---|---|
1 | #ifndef _MK3MAG_H |
1 | #ifndef _MK3MAG_H |
2 | #define _MK3MAG_H |
2 | #define _MK3MAG_H |
3 | 3 | ||
4 | typedef struct { |
4 | typedef struct { |
5 | int16_t attitude[2]; |
5 | int16_t attitude[2]; |
6 | uint8_t userParam[2]; |
6 | uint8_t userParam[2]; |
7 | uint8_t calState; |
7 | uint8_t calState; |
8 | uint8_t orientation; |
8 | uint8_t orientation; |
9 | } ToMk3Mag_t; |
9 | } ToMk3Mag_t; |
10 | 10 | ||
11 | extern ToMk3Mag_t toMk3Mag; |
11 | extern ToMk3Mag_t toMk3Mag; |
- | 12 | extern volatile uint16_t volatileMagneticHeading; |
|
12 | 13 | ||
13 | // Initialization |
14 | // Initialization |
14 | void MK3MAG_init(void); |
15 | void MK3MAG_init(void); |
15 | 16 | ||
16 | // should be called cyclic to get actual compass heading |
17 | // should be called cyclic to get actual compass heading |
17 | void MK3MAG_periodicTask(void); |
18 | void MK3MAG_periodicTask(void); |
18 | 19 | ||
19 | #endif //_MK3MAG_H |
20 | #endif //_MK3MAG_H |
20 | 21 |