mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-07 16:38:30 -04:00
52ed7fac8c
git-svn-id: https://arducopter.googlecode.com/svn/trunk@844 f9c3cf11-9bcb-44bc-f272-b75c42450872
25 lines
376 B
C++
25 lines
376 B
C++
#ifndef Compass_h
|
|
#define Compass_h
|
|
|
|
#include <inttypes.h>
|
|
#include <AP_Math>
|
|
|
|
class Compass
|
|
{
|
|
public:
|
|
virtual void init();
|
|
virtual void update();
|
|
virtual void calculate(float roll, float pitch);
|
|
|
|
Vector3f mag;
|
|
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 |