imu.h
Go to the documentation of this file.
1 #ifndef PHIDGETS_API_IMU_H
2 #define PHIDGETS_API_IMU_H
3 
4 #include "phidgets_api/phidget.h"
5 
6 namespace phidgets {
7 
8 class Imu: public Phidget
9 {
10  public:
11 
12  Imu();
13 
14  protected:
15 
16  CPhidgetSpatialHandle imu_handle_;
17 
18  void zero();
19  void setDataRate(int rate);
20 
21  virtual void dataHandler(CPhidgetSpatial_SpatialEventDataHandle *data, int count);
22 
23  private:
24 
25  static int SpatialDataHandler(CPhidgetSpatialHandle spatial, void *userptr, CPhidgetSpatial_SpatialEventDataHandle *data, int count);
26 };
27 
28 } //namespace phidgets
29 
30 #endif // PHIDGETS_API_IMU_H
void setDataRate(int rate)
Definition: imu.cpp:22
virtual void dataHandler(CPhidgetSpatial_SpatialEventDataHandle *data, int count)
Definition: imu.cpp:39
void zero()
Definition: imu.cpp:27
static int SpatialDataHandler(CPhidgetSpatialHandle spatial, void *userptr, CPhidgetSpatial_SpatialEventDataHandle *data, int count)
Definition: imu.cpp:33
CPhidgetSpatialHandle imu_handle_
Definition: imu.h:16


phidgets_api
Author(s): Tully Foote, Ivan Dryanovski
autogenerated on Tue May 7 2019 03:19:24