ardupilot/libraries/AP_Compass/Compass.h
james.goppert 45ddbbf982 Updated compass library.
git-svn-id: https://arducopter.googlecode.com/svn/trunk@995 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-12-02 05:13:12 +00:00

27 lines
534 B
C++

#ifndef Compass_h
#define Compass_h
#include <inttypes.h>
#include <AP_Math.h>
class Compass
{
public:
int magX;
int magY;
int magZ;
float heading;
float headingX;
float headingY;
unsigned long lastUpdate;
//
virtual bool init(int initialiseWireLib = 1);
virtual void read();
virtual void calculate(float roll, float pitch);
virtual void setOrientation(const Matrix3f &rotationMatrix);
virtual void setOffsets(int x, int y, int z);
virtual void setDeclination(float radians);
};
#endif