Rev 253 | Rev 292 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 253 | Rev 254 | ||
---|---|---|---|
Line 6... | Line 6... | ||
6 | s16 X; |
6 | s16 X; |
7 | s16 Y; |
7 | s16 Y; |
8 | s16 Z; |
8 | s16 Z; |
9 | } __attribute__((packed)) s16vec_t; |
9 | } __attribute__((packed)) s16vec_t; |
Line 10... | Line 10... | ||
10 | 10 | ||
- | 11 | extern volatile s16vec_t MagVector; // current magnetic field vector |
|
- | 12 | extern volatile s16 Compass_Heading; // current heading direction |
|
- | 13 | extern volatile u8 Compass_CalState; // current calibration state |
|
- | 14 | ||
- | 15 | #define COMPASS_NONE 0 |
|
- | 16 | #define COMPASS_MK3MAG 1 |
|
11 | extern volatile s16vec_t MagVector; |
17 | #define COMPASS_NCMAG 2 |
Line 12... | Line 18... | ||
12 | extern volatile s16 CompassHeading; |
18 | extern u8 Compass_Device; |
13 | 19 | ||
14 | void Compass_Init(void); |
20 | void Compass_Init(void); |
- | 21 | void Compass_UpdateHeading(void); |
|
- | 22 | void Compass_UpdateMagVector(void); |
|
Line 15... | Line 23... | ||
15 | void Compass_UpdateHeading(void); |
23 | void Compass_SetCalState(u8 CalState); |