Project structure redefinition

This commit is contained in:
2024-03-01 22:58:59 +07:00
parent 9d0f5d06ea
commit 69c736b1eb
18 changed files with 126 additions and 63 deletions

View File

@@ -1,3 +1,6 @@
// This is a personal academic project. Dear PVS-Studio, please check it.
// PVS-Studio Static Code Analyzer for C, C++, C#, and Java: https://pvs-studio.com
#include "MPU6050_6Axis_MotionApps20.h"
#include "Preferences.h"
#include "board_pins.h"
@@ -98,9 +101,11 @@ class MPU {
_isCalibration = false;
_updateOffsets();
_calibrationsIterCounter = 0;
if (_calibrationFinishedCb) {
_calibrationFinishedCb();
}
ESP_LOGI(_TAG, "Calibration finished!");
} else {
_axOffset += _ax;
_ayOffset += _ay;
@@ -110,6 +115,7 @@ class MPU {
_gzOffset += _gz;
_prOffset[0] += _ypr[1];
_prOffset[1] += _ypr[2];
_calibrationsIterCounter++;
}
}