AP_InertialSensor_HIL.h 414 B

12345678910111213141516171819
  1. #pragma once
  2. #include "AP_InertialSensor.h"
  3. #include "AP_InertialSensor_Backend.h"
  4. class AP_InertialSensor_HIL : public AP_InertialSensor_Backend
  5. {
  6. public:
  7. AP_InertialSensor_HIL(AP_InertialSensor &imu);
  8. /* update accel and gyro state */
  9. bool update() override;
  10. // detect the sensor
  11. static AP_InertialSensor_Backend *detect(AP_InertialSensor &imu);
  12. private:
  13. bool _init_sensor(void);
  14. };