You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
315 B
22 lines
315 B
15 years ago
|
#ifndef Compass_h
|
||
|
#define Compass_h
|
||
|
|
||
|
#include <inttypes.h>
|
||
|
|
||
|
class Compass
|
||
|
{
|
||
|
public:
|
||
|
virtual void init();
|
||
|
virtual void update();
|
||
|
virtual void calculate(float roll, float pitch);
|
||
|
|
||
|
int16_t mag_X;
|
||
|
int16_t mag_Y;
|
||
|
int16_t mag_Z;
|
||
|
float heading;
|
||
|
float heading_X;
|
||
|
float heading_Y;
|
||
|
|
||
|
};
|
||
|
|
||
|
#endif
|