fix bugs in gyro implematation

This commit is contained in:
2023-09-04 20:01:40 +02:00
parent 7c94c8cc56
commit 7c8406f438
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -70,6 +70,7 @@ void SensorData::enableCalcCompass() {
}
void SensorData::enableGyroskop() {
this->gyroskop = new MPU6050();
this->gyroskop->initialize();
if (!this->gyroskop->testConnection()) {
std::cout << "SensorData::enableGyroskop: Gyroskop is not conntected. Freeze!" << std::endl;