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.
20 lines
483 B
20 lines
483 B
/// -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- |
|
#pragma once |
|
|
|
#include "AP_InertialSensor.h" |
|
#include "AP_InertialSensor_Backend.h" |
|
|
|
class AP_InertialSensor_HIL : public AP_InertialSensor_Backend |
|
{ |
|
public: |
|
AP_InertialSensor_HIL(AP_InertialSensor &imu); |
|
|
|
/* update accel and gyro state */ |
|
bool update(); |
|
|
|
// detect the sensor |
|
static AP_InertialSensor_Backend *detect(AP_InertialSensor &imu); |
|
|
|
private: |
|
bool _init_sensor(void); |
|
};
|
|
|