ardupilot/libraries/AP_Compass/AP_Compass_HIL.h
Andrew Tridgell b555d86ec0 Compass: added compass.accumulate() API
this allows us to accumulate mag readings using spare CPU cycles
2012-09-08 10:05:54 +10:00

19 lines
418 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() : Compass() {
product_id = AP_COMPASS_TYPE_HIL;
}
bool read(void);
void accumulate(void);
void setHIL(float Mag_X, float Mag_Y, float Mag_Z);
};
#endif