Skip to content

Commit 929e8a3

Browse files
committed
fix copy errors
1 parent fcbf8aa commit 929e8a3

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

examples/bno08x_more_reports.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,17 +31,17 @@
3131
time.sleep(0.1)
3232

3333
print("Acceleration:")
34-
accel_x, accel_y, accel_z = bno.accelerationdict
34+
accel_x, accel_y, accel_z = bno.acceleration
3535
print("X: %0.6f Y: %0.6f Z: %0.6f m/s^2" % (accel_x, accel_y, accel_z))
3636
print("")
3737

3838
print("Gyro:")
39-
gyro_x, gyro_y, gyro_z = bno.gyrodict
39+
gyro_x, gyro_y, gyro_z = bno.gyro
4040
print("X: %0.6f Y: %0.6f Z: %0.6f rads/s" % (gyro_x, gyro_y, gyro_z))
4141
print("")
4242

4343
print("Magnetometer:")
44-
mag_x, mag_y, mag_z = bno.magneticdict
44+
mag_x, mag_y, mag_z = bno.magnetic
4545
print("X: %0.6f Y: %0.6f Z: %0.6f uT" % (mag_x, mag_y, mag_z))
4646
print("")
4747

@@ -50,12 +50,12 @@
5050
linear_accel_x,
5151
linear_accel_y,
5252
linear_accel_z,
53-
) = bno.linear_accelerationdict
53+
) = bno.linear_acceleration
5454
print("X: %0.6f Y: %0.6f Z: %0.6f m/s^2" % (linear_accel_x, linear_accel_y, linear_accel_z))
5555
print("")
5656

5757
print("Rotation Vector Quaternion:")
58-
quat_i, quat_j, quat_k, quat_real = bno.quaterniondict
58+
quat_i, quat_j, quat_k, quat_real = bno.quaternion
5959
print("I: %0.6f J: %0.6f K: %0.6f Real: %0.6f" % (quat_i, quat_j, quat_k, quat_real))
6060
print("")
6161

@@ -65,7 +65,7 @@
6565
geo_quat_j,
6666
geo_quat_k,
6767
geo_quat_real,
68-
) = bno.geomagnetic_quaterniondict
68+
) = bno.geomagnetic_quaternion
6969
print(
7070
"I: %0.6f J: %0.6f K: %0.6f Real: %0.6f"
7171
% (geo_quat_i, geo_quat_j, geo_quat_k, geo_quat_real)
@@ -78,7 +78,7 @@
7878
game_quat_j,
7979
game_quat_k,
8080
game_quat_real,
81-
) = bno.game_quaterniondict
81+
) = bno.game_quaternion
8282
print(
8383
"I: %0.6f J: %0.6f K: %0.6f Real: %0.6f"
8484
% (game_quat_i, game_quat_j, game_quat_k, game_quat_real)

examples/bno08x_simpletest.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,21 +25,21 @@
2525
while True:
2626
time.sleep(0.5)
2727
print("Acceleration:")
28-
accel_x, accel_y, accel_z = bno.accelerationdict
28+
accel_x, accel_y, accel_z = bno.acceleration
2929
print("X: %0.6f Y: %0.6f Z: %0.6f m/s^2" % (accel_x, accel_y, accel_z))
3030
print("")
3131

3232
print("Gyro:")
33-
gyro_x, gyro_y, gyro_z = bno.gyrodict
33+
gyro_x, gyro_y, gyro_z = bno.gyro
3434
print("X: %0.6f Y: %0.6f Z: %0.6f rads/s" % (gyro_x, gyro_y, gyro_z))
3535
print("")
3636

3737
print("Magnetometer:")
38-
mag_x, mag_y, mag_z = bno.magneticdict
38+
mag_x, mag_y, mag_z = bno.magnetic
3939
print("X: %0.6f Y: %0.6f Z: %0.6f uT" % (mag_x, mag_y, mag_z))
4040
print("")
4141

4242
print("Rotation Vector Quaternion:")
43-
quat_i, quat_j, quat_k, quat_real = bno.quaterniondict
43+
quat_i, quat_j, quat_k, quat_real = bno.quaternion
4444
print("I: %0.6f J: %0.6f K: %0.6f Real: %0.6f" % (quat_i, quat_j, quat_k, quat_real))
4545
print("")

0 commit comments

Comments
 (0)