implementação do sgam_mdw baseado na placa NUCLEO FZ429ZI para ser testada
Dependencies: MPU6050 Grove_temperature
sensor/gyroscope/Gyroscope.h
- Committer:
- AndersonIctus
- Date:
- 2019-07-20
- Revision:
- 17:8789ab4067a6
- Parent:
- 5:fa36c3288be8
File content as of revision 17:8789ab4067a6:
#ifndef SGAM_MDW_SENSOR_GYROSCOPE_H #define SGAM_MDW_SENSOR_GYROSCOPE_H #include "sgam_mdw.h" #include "mbed.h" #include "MPU6050.h" class GyroscopeData { public: int16_t ax, ay, az; int16_t gx, gy, gz; GyroscopeData(){} ~GyroscopeData(){} }; class Gyroscope: public Sensor<GyroscopeData> { public: Gyroscope(I2C &i2c); virtual ~Gyroscope(); virtual int initialize(); virtual int finalize(); virtual GyroscopeData* getValue(); virtual const char* getName(); private: MPU6050 mpu; void getMotion(GyroscopeData* data); }; #endif // SGAM_MDW_SENSOR_GYROSCOPE_H