mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-04 15:08:28 -04:00
cf7eefd94b
git-svn-id: https://arducopter.googlecode.com/svn/trunk@347 f9c3cf11-9bcb-44bc-f272-b75c42450872
22 lines
315 B
C++
22 lines
315 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;
|
|
float heading;
|
|
float heading_X;
|
|
float heading_Y;
|
|
|
|
};
|
|
|
|
#endif |