implementação do sgam_mdw baseado na placa NUCLEO FZ429ZI para ser testada
Dependencies: MPU6050 Grove_temperature
Diff: sensor/gyroscope/Gyroscope.cpp
- Revision:
- 6:806043bf1a2c
- Parent:
- 5:fa36c3288be8
diff -r fa36c3288be8 -r 806043bf1a2c sensor/gyroscope/Gyroscope.cpp --- a/sensor/gyroscope/Gyroscope.cpp Sat Jun 22 12:00:33 2019 -0300 +++ b/sensor/gyroscope/Gyroscope.cpp Sun Jun 23 13:21:49 2019 -0300 @@ -8,9 +8,9 @@ mpu.initialize(); if( mpu.testConnection() ) { - LOG("Giroscope Initialized !!\r\n"); + D_LOG("Giroscope Initialized !!\r\n"); } else { - LOG("There's an error trying initialize the Gyroscope !!\r\n"); + D_LOG("There's an error trying initialize the Gyroscope !!\r\n"); } value = new GyroscopeData(); @@ -20,8 +20,8 @@ value->~GyroscopeData(); } -int Gyroscope::initialize() { return 1; } -int Gyroscope::finalize() { return 1; } +int Gyroscope::initialize() { D_LOG("INITIALIZE %s! \r\n", this->getName() ); return 1; } +int Gyroscope::finalize() { D_LOG("FINALIZE %s! \r\n", this->getName() ); return 1; } void Gyroscope::getMotion(GyroscopeData* data) { mpu.getMotion6(