Alora Library
Library for using Alora shield
 All Classes Namespaces Files Functions Variables Macros Pages
AloraIMUSensorInterface.h
Go to the documentation of this file.
1 
3 #ifndef ALORA_IMU_SENSOR_INTERFACE_H
4 #define ALORA_IMU_SENSOR_INTERFACE_H
5 
6 #include <stdint.h>
7 
13 public:
15  virtual ~AloraIMUSensorBase() {}
16 
25  virtual bool begin(uint8_t accAddress, uint8_t magAddress) = 0;
26 
32  virtual float readAccelX() = 0;
33 
39  virtual float readAccelY() = 0;
40 
46  virtual float readAccelZ() = 0;
47 
53  virtual float readGyroX() = 0;
54 
60  virtual float readGyroY() = 0;
61 
67  virtual float readGyroZ() = 0;
68 
74  virtual float readMagX() = 0;
75 
81  virtual float readMagY() = 0;
82 
88  virtual float readMagZ() = 0;
89 
95  virtual float readMagHeading() = 0;
96 };
97 
98 #endif
virtual float readAccelZ()=0
Read Z axis value from accelerometer.
virtual float readGyroZ()=0
Read Z axis value from gyroscope.
virtual float readMagZ()=0
Read Z axis value from magnetometer.
virtual float readMagX()=0
Read X axis value from magnetometer.
virtual float readGyroY()=0
Read Y axis value from gyroscope.
virtual float readMagY()=0
Read Y axis value from magnetometer.
virtual float readAccelX()=0
Read X axis value from accelerometer.
virtual bool begin(uint8_t accAddress, uint8_t magAddress)=0
Abstract class for IMU sensor adapter on Alora board.
Definition: AloraIMUSensorInterface.h:12
virtual float readGyroX()=0
Read X axis value from gyroscope.
virtual float readAccelY()=0
Read Y axis value from accelerometer.
virtual float readMagHeading()=0
Read heading value from magnetometer.