Subversion Repositories NaviCtrl

Rev

Rev 243 | Rev 254 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 243 Rev 253
1
#ifndef _COMPASS_H
1
#ifndef _COMPASS_H
2
#define _COMPASS_H
2
#define _COMPASS_H
3
 
3
 
4
typedef struct
4
typedef struct
5
{
5
{
6
  s16 X;
6
  s16 X;
7
  s16 Y;
7
  s16 Y;
8
  s16 Z;
8
  s16 Z;
9
} __attribute__((packed)) MagVector_t;
9
} __attribute__((packed)) s16vec_t;
10
 
10
 
11
extern volatile MagVector_t MagVector;
11
extern volatile s16vec_t MagVector;
12
extern volatile s16 CompassHeading;
12
extern volatile s16 CompassHeading;
13
 
13
 
14
void Compass_Init(void);
14
void Compass_Init(void);
15
void Compass_UpdateHeading(void);
15
void Compass_UpdateHeading(void);
16
void Compass_UpdateMagVector(void);
16
void Compass_UpdateMagVector(void);
17
 
17
 
18
#endif  //  _COMPASS_H
18
#endif  //  _COMPASS_H
19
 
19