Skip to content

Commit 8140c25

Browse files
committed
Fix typo of acceleration
1 parent 19e3286 commit 8140c25

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

examples/Example5_VelocityAndAcceleration/Example5_VelocityAndAcceleration.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ void loop()
3737
// These values can be read individually like so:
3838
myOtos.getPosition(pos);
3939
myOtos.getVelocity(vel);
40-
myOtos.getAccerlation(acc);
40+
myOtos.getAcceleration(acc);
4141

4242
// Or all at once with the following:
4343
// myOtos.getPosVelAcc(pos, vel, acc);

examples/Example6_StandardDeviation/Example6_StandardDeviation.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ void loop()
4040
// Read the position like normal (and velocity and acceleration if desired)
4141
myOtos.getPosition(pos);
4242
// myOtos.getVelocity(vel);
43-
// myOtos.getAccerlation(acc);
43+
// myOtos.getAcceleration(acc);
4444

4545
// Read the standard deviation of the tracking. Note that these values are
4646
// just the square root of the diagonal elements of the covariance matrices
@@ -54,7 +54,7 @@ void loop()
5454
// can be used to at least "get an idea" of the quality of the accuracy.
5555
myOtos.getPositionStdDev(posStdDev);
5656
// myOtos.getVelocityStdDev(velStdDev);
57-
// myOtos.getAccerlationStdDev(accStdDev);
57+
// myOtos.getAccelerationStdDev(accStdDev);
5858

5959
// These values can instead be read out in chunks:
6060
// myOtos.getPosVelAcc(pos, vel, acc);

src/sfeQwiicOtos.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ sfeTkError_t sfeQwiicOtos::getVelocity(otos_pose2d_t &pose)
225225
return readPoseRegs(kOtosRegVelXL, pose, kInt16ToMeter, kInt16ToRps);
226226
}
227227

228-
sfeTkError_t sfeQwiicOtos::getAccerlation(otos_pose2d_t &pose)
228+
sfeTkError_t sfeQwiicOtos::getAcceleration(otos_pose2d_t &pose)
229229
{
230230
return readPoseRegs(kOtosRegAccXL, pose, kInt16ToMeter, kInt16ToRpss);
231231
}
@@ -240,7 +240,7 @@ sfeTkError_t sfeQwiicOtos::getVelocityStdDev(otos_pose2d_t &pose)
240240
return readPoseRegs(kOtosRegVelStdXL, pose, kInt16ToMeter, kInt16ToRps);
241241
}
242242

243-
sfeTkError_t sfeQwiicOtos::getAccerlationStdDev(otos_pose2d_t &pose)
243+
sfeTkError_t sfeQwiicOtos::getAccelerationStdDev(otos_pose2d_t &pose)
244244
{
245245
return readPoseRegs(kOtosRegAccStdXL, pose, kInt16ToMeter, kInt16ToRpss);
246246
}

src/sfeQwiicOtos.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,13 +173,13 @@ class sfeQwiicOtos
173173

174174
sfeTkError_t getVelocity(otos_pose2d_t &pose);
175175

176-
sfeTkError_t getAccerlation(otos_pose2d_t &pose);
176+
sfeTkError_t getAcceleration(otos_pose2d_t &pose);
177177

178178
sfeTkError_t getPositionStdDev(otos_pose2d_t &pose);
179179

180180
sfeTkError_t getVelocityStdDev(otos_pose2d_t &pose);
181181

182-
sfeTkError_t getAccerlationStdDev(otos_pose2d_t &pose);
182+
sfeTkError_t getAccelerationStdDev(otos_pose2d_t &pose);
183183

184184
sfeTkError_t getPosVelAcc(otos_pose2d_t &pos, otos_pose2d_t &vel, otos_pose2d_t &acc);
185185

0 commit comments

Comments
 (0)