2011-12-28 05:31:36 -04:00
|
|
|
/// -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*-
|
2011-02-14 00:27:07 -04:00
|
|
|
#ifndef AP_Compass_HIL_H
|
|
|
|
#define AP_Compass_HIL_H
|
|
|
|
|
|
|
|
#include "Compass.h"
|
|
|
|
|
|
|
|
class AP_Compass_HIL : public Compass
|
|
|
|
{
|
2012-08-17 03:19:22 -03:00
|
|
|
public:
|
2013-05-02 01:59:33 -03:00
|
|
|
AP_Compass_HIL();
|
2012-08-17 03:19:22 -03:00
|
|
|
bool read(void);
|
2012-08-26 00:42:00 -03:00
|
|
|
void accumulate(void);
|
2013-05-02 01:59:33 -03:00
|
|
|
void setHIL(float roll, float pitch, float yaw);
|
2013-12-29 07:55:20 -04:00
|
|
|
void setHIL(const Vector3i &mag);
|
|
|
|
|
2013-03-01 10:58:55 -04:00
|
|
|
private:
|
|
|
|
Vector3f _hil_mag;
|
2013-05-02 01:59:33 -03:00
|
|
|
Vector3f _Bearth;
|
|
|
|
float _last_declination;
|
|
|
|
void _setup_earth_field();
|
2011-02-14 00:27:07 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|