Skip to content

Commit

Permalink
Fixed examples' accelerometer usage (#13)
Browse files Browse the repository at this point in the history
* Update readCalibration.ino
* Update test1.ino
  • Loading branch information
ExoSkye authored Jan 4, 2021
1 parent 5c30a2b commit eb5f909
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions examples/readCalibration/readCalibration.ino
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ void loop()
for (int i = 0; i < 20; i++)
{
sensor.read();
ax -= sensor.getAngleX();
ay -= sensor.getAngleY();
az -= sensor.getAngleZ();
ax -= sensor.getAccelX();
ay -= sensor.getAccelY();
az -= sensor.getAccelZ();
gx -= sensor.getGyroX();
gy -= sensor.getGyroY();
gz -= sensor.getGyroZ();
Expand Down
6 changes: 3 additions & 3 deletions examples/test1/test1.ino
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ void setup()
void loop()
{
sensor.read();
int ax = sensor.getAngleX();
int ay = sensor.getAngleY();
int az = sensor.getAngleZ();
int ax = sensor.getAccelX();
int ay = sensor.getAccelY();
int az = sensor.getAccelZ();
int gx = sensor.getGyroX();
int gy = sensor.getGyroY();
int gz = sensor.getGyroZ();
Expand Down

0 comments on commit eb5f909

Please sign in to comment.