2011-12-21 00:30:22 -04:00
|
|
|
/// -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*-
|
2011-11-13 02:42:20 -04:00
|
|
|
|
|
|
|
#ifndef __AP_INERTIAL_SENSOR_STUB_H__
|
|
|
|
#define __AP_INERTIAL_SENSOR_STUB_H__
|
|
|
|
|
|
|
|
#include <string.h>
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
#include "../AP_PeriodicProcess/AP_PeriodicProcess.h"
|
|
|
|
#include "AP_InertialSensor.h"
|
|
|
|
|
|
|
|
class AP_InertialSensor_Stub : public AP_InertialSensor
|
|
|
|
{
|
2012-08-17 03:19:56 -03:00
|
|
|
public:
|
|
|
|
|
|
|
|
AP_InertialSensor_Stub() {
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Concrete implementation of AP_InertialSensor functions: */
|
|
|
|
bool update();
|
|
|
|
bool new_data_available();
|
|
|
|
float gx();
|
|
|
|
float gy();
|
|
|
|
float gz();
|
|
|
|
float ax();
|
|
|
|
float ay();
|
|
|
|
float az();
|
|
|
|
float temperature();
|
2012-11-05 00:27:03 -04:00
|
|
|
uint32_t get_delta_time_micros();
|
|
|
|
uint32_t get_last_sample_time_micros();
|
2012-08-17 03:19:56 -03:00
|
|
|
float get_gyro_drift_rate();
|
2012-09-06 23:47:19 -03:00
|
|
|
uint16_t num_samples_available();
|
2012-11-07 02:20:22 -04:00
|
|
|
|
|
|
|
protected:
|
|
|
|
uint16_t _init_sensor( AP_PeriodicProcess * scheduler );
|
2012-08-17 03:19:56 -03:00
|
|
|
};
|
2011-11-13 02:42:20 -04:00
|
|
|
|
|
|
|
#endif // __AP_INERTIAL_SENSOR_STUB_H__
|