Rev 242 | Rev 253 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
242 | killagreg | 1 | #ifndef _COMPASS_H |
2 | #define _COMPASS_H |
||
3 | |||
4 | typedef struct |
||
5 | { |
||
6 | s16 X; |
||
7 | s16 Y; |
||
8 | s16 Z; |
||
9 | } __attribute__((packed)) MagVector_t; |
||
10 | |||
243 | killagreg | 11 | extern volatile MagVector_t MagVector; |
12 | extern volatile s16 CompassHeading; |
||
242 | killagreg | 13 | |
14 | void Compass_Init(void); |
||
15 | void Compass_UpdateHeading(void); |
||
16 | void Compass_UpdateMagVector(void); |
||
17 | |||
18 | #endif // _COMPASS_H |