ardupilot/libraries/AP_Compass/AP_Compass_QURT.h
Lucas De Marchi e6059f5197 AP_Compass: rename files to follow other libraries
AP_Compass.h is the main header to be exported and AP_Compass.cpp its
implementation. There's no need for an additional header.
2016-03-23 17:50:38 -03:00

29 lines
542 B
C++

/// -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*-
#pragma once
#include "AP_Compass.h"
#include "AP_Compass_Backend.h"
class AP_Compass_QURT : public AP_Compass_Backend
{
public:
bool init(void) override;
void read(void) override;
AP_Compass_QURT(Compass &compass);
// detect the sensor
static AP_Compass_Backend *detect(Compass &compass);
private:
void timer_update(void);
uint8_t instance;
Vector3f sum;
uint32_t count;
uint64_t last_timestamp;
};