00001 // -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: t -*- 00002 00005 00006 #ifndef AP_IMU_Shim_h 00007 #define AP_IMU_Shim_h 00008 00009 class AP_IMU_Shim : public IMU 00010 { 00011 public: 00012 AP_IMU_Shim(void) {} 00013 00015 00016 virtual void init(Start_style style) {} 00017 virtual void init_accel(Start_style style) {}; 00018 virtual void init_gyro(Start_style style) {}; 00019 virtual bool update(void) { 00020 bool updated = _updated; 00021 _updated = false; 00022 return updated; 00023 } 00025 00031 void set_gyro(Vector3f v) { _gyro = v; _updated = true; } 00032 00038 void set_accel(Vector3f v) { _accel = v; _updated = true; } 00039 00040 private: 00042 bool _updated; 00043 }; 00044 00045 #endif