mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-02 14:13:42 -04:00
2ca8ac7259
git-svn-id: https://arducopter.googlecode.com/svn/trunk@348 f9c3cf11-9bcb-44bc-f272-b75c42450872
23 lines
340 B
C++
23 lines
340 B
C++
#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;
|
|
int32_t ground_course;
|
|
float heading;
|
|
float heading_X;
|
|
float heading_Y;
|
|
|
|
};
|
|
|
|
#endif |