Subversion Repositories NaviCtrl

Rev

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

Rev 253 Rev 254
1
#ifndef __NCMAG_H
1
#ifndef __NCMAG_H
2
#define __NCMAG_H
2
#define __NCMAG_H
3
 
3
 
4
#include "compass.h" 
4
#include "compass.h" 
5
 
-
 
6
typedef struct
-
 
7
{
-
 
8
        s16 XRange;
-
 
9
        s16 YRange;
-
 
10
        s16 ZRange;
-
 
11
        s16 XOffset;
-
 
12
        s16 YOffset;
-
 
13
        s16 ZOffset;
-
 
14
}  __attribute__((packed)) NCMAG_Calibration_t;
-
 
15
 
-
 
16
extern NCMAG_Calibration_t NCMAG_Calibration;
5
 
17
extern s16vec_t ACC_Vector;
6
extern s16vec_t ACC_Vector;
18
 
7
 
19
u8 NCMAG_Init(void);
8
u8 NCMAG_Init(void);
20
void NCMAG_UpdateCompass(void);
9
void NCMAG_UpdateCompass(void);
21
void NCMAG_ToggleMode(void);
-
 
22
 
10
 
23
#endif // __NCMAG_H
11
#endif // __NCMAG_H
24
 
12
 
25
 
13