You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
805 B
30 lines
805 B
13 years ago
|
/// -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*-
|
||
13 years ago
|
|
||
|
#ifndef __AP_INERTIAL_SENSOR_STUB_H__
|
||
|
#define __AP_INERTIAL_SENSOR_STUB_H__
|
||
|
|
||
13 years ago
|
#include <AP_Progmem.h>
|
||
13 years ago
|
#include "AP_InertialSensor.h"
|
||
|
|
||
12 years ago
|
class AP_InertialSensor_HIL : public AP_InertialSensor
|
||
13 years ago
|
{
|
||
13 years ago
|
public:
|
||
|
|
||
12 years ago
|
AP_InertialSensor_HIL();
|
||
13 years ago
|
|
||
|
/* Concrete implementation of AP_InertialSensor functions: */
|
||
|
bool update();
|
||
12 years ago
|
float get_delta_time();
|
||
12 years ago
|
uint32_t get_last_sample_time_micros();
|
||
13 years ago
|
float get_gyro_drift_rate();
|
||
12 years ago
|
bool sample_available();
|
||
12 years ago
|
|
||
|
protected:
|
||
13 years ago
|
uint16_t _init_sensor( Sample_rate sample_rate );
|
||
12 years ago
|
uint32_t _sample_period_ms;
|
||
|
uint32_t _last_update_ms;
|
||
|
uint32_t _delta_time_usec;
|
||
13 years ago
|
};
|
||
13 years ago
|
|
||
|
#endif // __AP_INERTIAL_SENSOR_STUB_H__
|