Skip to content

Commit c45ece5

Browse files
committed
Rename readAcceleration and readRotation API's to readAccelerometer and readGyro
1 parent 1e30828 commit c45ece5

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

libraries/CurieImu/src/CurieImu.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -461,12 +461,12 @@ void CurieImuClass::readMotionSensor(short& ax, short& ay, short& az, short& gx,
461461
getMotion6(&ax, &ay, &az, &gx, &gy, &gz);
462462
}
463463

464-
void CurieImuClass::readAcceleration(short& x, short& y, short& z)
464+
void CurieImuClass::readAccelerometer(short& x, short& y, short& z)
465465
{
466466
getAcceleration(&x, &y, &z);
467467
}
468468

469-
void CurieImuClass::readRotation(short& x, short& y, short& z)
469+
void CurieImuClass::readGyro(short& x, short& y, short& z)
470470
{
471471
getRotation(&x, &y, &z);
472472
}

libraries/CurieImu/src/CurieImu.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,8 +293,8 @@ class CurieImuClass : public BMI160Class {
293293
void setStepDetectionMode(int mode);
294294

295295
void readMotionSensor(short& ax, short& ay, short& az, short& gx, short& gy, short& gz);
296-
void readAcceleration(short& x, short& y, short& z);
297-
void readRotation(short& x, short& y, short& z);
296+
void readAccelerometer(short& x, short& y, short& z);
297+
void readGyro(short& x, short& y, short& z);
298298

299299
short readAccelerometer(int axis);
300300
short readGyro(int axis);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy