ardupilot/libraries/AP_Compass/AP_Compass_HIL.h
Andrew Tridgell f72dd560cb AP_Compass: fixed the HIL sensors compass
this sets up good compass values for HIL sensors
2013-05-02 14:59:33 +10:00

22 lines
482 B
C++

/// -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*-
#ifndef AP_Compass_HIL_H
#define AP_Compass_HIL_H
#include "Compass.h"
class AP_Compass_HIL : public Compass
{
public:
AP_Compass_HIL();
bool read(void);
void accumulate(void);
void setHIL(float roll, float pitch, float yaw);
private:
Vector3f _hil_mag;
Vector3f _Bearth;
float _last_declination;
void _setup_earth_field();
};
#endif