Skip to content

Commit 0b625e2

Browse files
authored
Update MPU6050.h
changed datatype to int16_t
1 parent cadc520 commit 0b625e2

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Arduino/MPU6050/MPU6050.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -832,6 +832,7 @@ class MPU6050_Base {
832832
void CalibrateAccel(uint8_t Loops = 15);// Fine tune after setting offsets with less Loops.
833833
void PID(uint8_t ReadAddress, float kP,float kI, uint8_t Loops); // Does the math
834834
void PrintActiveOffsets(); // See the results of the Calibration
835+
int16_t GetActiveOffsets();
835836

836837
protected:
837838
uint8_t devAddr;
@@ -840,7 +841,7 @@ class MPU6050_Base {
840841
uint32_t fifoTimeout = MPU6050_FIFO_DEFAULT_TIMEOUT;
841842

842843
private:
843-
float offsets[6];
844+
int16_t offsets[6];
844845
};
845846

846847
#ifndef I2CDEVLIB_MPU6050_TYPEDEF

0 commit comments

Comments
 (0)