libwallaby  v24
The wallaby standard library
compass.h
Go to the documentation of this file.
1 #ifndef _COMPASS_H_
2 #define _COMPASS_H_
3 
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
7 
25 void calibrate_compass();
26 
27 
42 void set_compass_params(float meanX, float meanY, float meanZ,
43  float W1, float W2, float div_E1, float div_E2);
44 
52 float get_compass_angle(void);
53 
54 
55 #ifdef __cplusplus
56 }
57 #endif
58 
59 
60 #endif // #define _COMPASS_H_
get_compass_angle
float get_compass_angle(void)
set_compass_params
void set_compass_params(float meanX, float meanY, float meanZ, float W1, float W2, float div_E1, float div_E2)
calibrate_compass
void calibrate_compass()