mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-05 23:48:31 -04:00
3976200f50
git-svn-id: https://arducopter.googlecode.com/svn/trunk@2 f9c3cf11-9bcb-44bc-f272-b75c42450872
23 lines
362 B
C++
23 lines
362 B
C++
#ifndef APM_Compass_h
|
|
#define APM_Compass_h
|
|
|
|
class APM_Compass_Class
|
|
{
|
|
private:
|
|
public:
|
|
int Mag_X;
|
|
int Mag_Y;
|
|
int Mag_Z;
|
|
float Heading;
|
|
float Heading_X;
|
|
float Heading_Y;
|
|
|
|
APM_Compass_Class(); // Constructor
|
|
void Init();
|
|
void Read();
|
|
void Calculate(float roll, float pitch);
|
|
};
|
|
|
|
extern APM_Compass_Class APM_Compass;
|
|
|
|
#endif |