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
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
|
|
|
|
AP_InertialSensor_Stub() {}
|
|
|
|
|
|
|
|
void init( AP_PeriodicProcess * scheduler );
|
|
|
|
|
|
|
|
/* Concrete implementation of AP_InertialSensor functions: */
|
|
|
|
bool update();
|
2012-03-03 03:31:31 -04:00
|
|
|
bool new_data_available();
|
2011-11-13 02:42:20 -04:00
|
|
|
float gx();
|
|
|
|
float gy();
|
|
|
|
float gz();
|
|
|
|
void get_gyros( float * );
|
|
|
|
float ax();
|
|
|
|
float ay();
|
|
|
|
float az();
|
|
|
|
void get_accels( float * );
|
|
|
|
void get_sensors( float * );
|
|
|
|
float temperature();
|
|
|
|
uint32_t sample_time();
|
|
|
|
void reset_sample_time();
|
2012-03-09 18:43:21 -04:00
|
|
|
float get_gyro_drift_rate();
|
2011-11-13 02:42:20 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // __AP_INERTIAL_SENSOR_STUB_H__
|