2011-12-21 00:30:22 -04:00
|
|
|
/// -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*-
|
2016-01-19 21:26:31 -04:00
|
|
|
#pragma once
|
2011-11-13 02:42:20 -04:00
|
|
|
|
|
|
|
#include "AP_InertialSensor.h"
|
2016-01-19 21:26:31 -04:00
|
|
|
#include "AP_InertialSensor_Backend.h"
|
2011-11-13 02:42:20 -04:00
|
|
|
|
2014-10-15 02:37:59 -03:00
|
|
|
class AP_InertialSensor_HIL : public AP_InertialSensor_Backend
|
2011-11-13 02:42:20 -04:00
|
|
|
{
|
2012-08-17 03:19:56 -03:00
|
|
|
public:
|
2014-10-15 05:54:30 -03:00
|
|
|
AP_InertialSensor_HIL(AP_InertialSensor &imu);
|
2012-08-17 03:19:56 -03:00
|
|
|
|
2014-10-15 02:37:59 -03:00
|
|
|
/* update accel and gyro state */
|
|
|
|
bool update();
|
2012-08-17 03:19:56 -03:00
|
|
|
|
2014-10-15 02:37:59 -03:00
|
|
|
// detect the sensor
|
2014-10-16 17:52:21 -03:00
|
|
|
static AP_InertialSensor_Backend *detect(AP_InertialSensor &imu);
|
2012-11-07 02:20:22 -04:00
|
|
|
|
2013-12-08 05:43:53 -04:00
|
|
|
private:
|
2014-10-16 17:52:21 -03:00
|
|
|
bool _init_sensor(void);
|
2012-08-17 03:19:56 -03:00
|
|
|
};
|