Skip to content

Commit 09cdc5f

Browse files
committed
fix some display errors
1 parent d78233c commit 09cdc5f

File tree

12 files changed

+69
-63
lines changed

12 files changed

+69
-63
lines changed

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## 1.0.1 (2024-07-01)
2+
3+
## Bug Fixes
4+
5+
- fix some display errors
6+
17
## 1.0.0 (2022-06-30)
28

39
## Features

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -402,9 +402,9 @@ for (i = 0; i < times; i++)
402402
/* output */
403403
mpu6050_interface_debug_print("mpu6050: %d/%d.\n", i + 1, times);
404404
mpu6050_interface_debug_print("mpu6050: fifo %d.\n", len);
405-
mpu6050_interface_debug_print("mpu6050: pitch[0] is %0.2fdps.\n", gs_pitch[0]);
406-
mpu6050_interface_debug_print("mpu6050: roll[0] is %0.2fdps.\n", gs_roll[0]);
407-
mpu6050_interface_debug_print("mpu6050: yaw[0] is %0.2fdps.\n", gs_yaw[0]);
405+
mpu6050_interface_debug_print("mpu6050: pitch[0] is %0.2fdeg.\n", gs_pitch[0]);
406+
mpu6050_interface_debug_print("mpu6050: roll[0] is %0.2fdeg.\n", gs_roll[0]);
407+
mpu6050_interface_debug_print("mpu6050: yaw[0] is %0.2fdeg.\n", gs_yaw[0]);
408408
mpu6050_interface_debug_print("mpu6050: acc x[0] is %0.2fg.\n", gs_accel_g[0][0]);
409409
mpu6050_interface_debug_print("mpu6050: acc y[0] is %0.2fg.\n", gs_accel_g[0][1]);
410410
mpu6050_interface_debug_print("mpu6050: acc z[0] is %0.2fg.\n", gs_accel_g[0][2]);

README_de.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -402,9 +402,9 @@ for (i = 0; i < times; i++)
402402
/* output */
403403
mpu6050_interface_debug_print("mpu6050: %d/%d.\n", i + 1, times);
404404
mpu6050_interface_debug_print("mpu6050: fifo %d.\n", len);
405-
mpu6050_interface_debug_print("mpu6050: pitch[0] is %0.2fdps.\n", gs_pitch[0]);
406-
mpu6050_interface_debug_print("mpu6050: roll[0] is %0.2fdps.\n", gs_roll[0]);
407-
mpu6050_interface_debug_print("mpu6050: yaw[0] is %0.2fdps.\n", gs_yaw[0]);
405+
mpu6050_interface_debug_print("mpu6050: pitch[0] is %0.2fdeg.\n", gs_pitch[0]);
406+
mpu6050_interface_debug_print("mpu6050: roll[0] is %0.2fdeg.\n", gs_roll[0]);
407+
mpu6050_interface_debug_print("mpu6050: yaw[0] is %0.2fdeg.\n", gs_yaw[0]);
408408
mpu6050_interface_debug_print("mpu6050: acc x[0] is %0.2fg.\n", gs_accel_g[0][0]);
409409
mpu6050_interface_debug_print("mpu6050: acc y[0] is %0.2fg.\n", gs_accel_g[0][1]);
410410
mpu6050_interface_debug_print("mpu6050: acc z[0] is %0.2fg.\n", gs_accel_g[0][2]);

README_ja.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -402,9 +402,9 @@ for (i = 0; i < times; i++)
402402
/* output */
403403
mpu6050_interface_debug_print("mpu6050: %d/%d.\n", i + 1, times);
404404
mpu6050_interface_debug_print("mpu6050: fifo %d.\n", len);
405-
mpu6050_interface_debug_print("mpu6050: pitch[0] is %0.2fdps.\n", gs_pitch[0]);
406-
mpu6050_interface_debug_print("mpu6050: roll[0] is %0.2fdps.\n", gs_roll[0]);
407-
mpu6050_interface_debug_print("mpu6050: yaw[0] is %0.2fdps.\n", gs_yaw[0]);
405+
mpu6050_interface_debug_print("mpu6050: pitch[0] is %0.2fdeg.\n", gs_pitch[0]);
406+
mpu6050_interface_debug_print("mpu6050: roll[0] is %0.2fdeg.\n", gs_roll[0]);
407+
mpu6050_interface_debug_print("mpu6050: yaw[0] is %0.2fdeg.\n", gs_yaw[0]);
408408
mpu6050_interface_debug_print("mpu6050: acc x[0] is %0.2fg.\n", gs_accel_g[0][0]);
409409
mpu6050_interface_debug_print("mpu6050: acc y[0] is %0.2fg.\n", gs_accel_g[0][1]);
410410
mpu6050_interface_debug_print("mpu6050: acc z[0] is %0.2fg.\n", gs_accel_g[0][2]);

README_ko.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -402,9 +402,9 @@ for (i = 0; i < times; i++)
402402
/* output */
403403
mpu6050_interface_debug_print("mpu6050: %d/%d.\n", i + 1, times);
404404
mpu6050_interface_debug_print("mpu6050: fifo %d.\n", len);
405-
mpu6050_interface_debug_print("mpu6050: pitch[0] is %0.2fdps.\n", gs_pitch[0]);
406-
mpu6050_interface_debug_print("mpu6050: roll[0] is %0.2fdps.\n", gs_roll[0]);
407-
mpu6050_interface_debug_print("mpu6050: yaw[0] is %0.2fdps.\n", gs_yaw[0]);
405+
mpu6050_interface_debug_print("mpu6050: pitch[0] is %0.2fdeg.\n", gs_pitch[0]);
406+
mpu6050_interface_debug_print("mpu6050: roll[0] is %0.2fdeg.\n", gs_roll[0]);
407+
mpu6050_interface_debug_print("mpu6050: yaw[0] is %0.2fdeg.\n", gs_yaw[0]);
408408
mpu6050_interface_debug_print("mpu6050: acc x[0] is %0.2fg.\n", gs_accel_g[0][0]);
409409
mpu6050_interface_debug_print("mpu6050: acc y[0] is %0.2fg.\n", gs_accel_g[0][1]);
410410
mpu6050_interface_debug_print("mpu6050: acc z[0] is %0.2fg.\n", gs_accel_g[0][2]);

README_zh-Hans.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -402,9 +402,9 @@ for (i = 0; i < times; i++)
402402
/* output */
403403
mpu6050_interface_debug_print("mpu6050: %d/%d.\n", i + 1, times);
404404
mpu6050_interface_debug_print("mpu6050: fifo %d.\n", len);
405-
mpu6050_interface_debug_print("mpu6050: pitch[0] is %0.2fdps.\n", gs_pitch[0]);
406-
mpu6050_interface_debug_print("mpu6050: roll[0] is %0.2fdps.\n", gs_roll[0]);
407-
mpu6050_interface_debug_print("mpu6050: yaw[0] is %0.2fdps.\n", gs_yaw[0]);
405+
mpu6050_interface_debug_print("mpu6050: pitch[0] is %0.2fdeg.\n", gs_pitch[0]);
406+
mpu6050_interface_debug_print("mpu6050: roll[0] is %0.2fdeg.\n", gs_roll[0]);
407+
mpu6050_interface_debug_print("mpu6050: yaw[0] is %0.2fdeg.\n", gs_yaw[0]);
408408
mpu6050_interface_debug_print("mpu6050: acc x[0] is %0.2fg.\n", gs_accel_g[0][0]);
409409
mpu6050_interface_debug_print("mpu6050: acc y[0] is %0.2fg.\n", gs_accel_g[0][1]);
410410
mpu6050_interface_debug_print("mpu6050: acc z[0] is %0.2fg.\n", gs_accel_g[0][2]);

README_zh-Hant.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -402,9 +402,9 @@ for (i = 0; i < times; i++)
402402
/* output */
403403
mpu6050_interface_debug_print("mpu6050: %d/%d.\n", i + 1, times);
404404
mpu6050_interface_debug_print("mpu6050: fifo %d.\n", len);
405-
mpu6050_interface_debug_print("mpu6050: pitch[0] is %0.2fdps.\n", gs_pitch[0]);
406-
mpu6050_interface_debug_print("mpu6050: roll[0] is %0.2fdps.\n", gs_roll[0]);
407-
mpu6050_interface_debug_print("mpu6050: yaw[0] is %0.2fdps.\n", gs_yaw[0]);
405+
mpu6050_interface_debug_print("mpu6050: pitch[0] is %0.2fdeg.\n", gs_pitch[0]);
406+
mpu6050_interface_debug_print("mpu6050: roll[0] is %0.2fdeg.\n", gs_roll[0]);
407+
mpu6050_interface_debug_print("mpu6050: yaw[0] is %0.2fdeg.\n", gs_yaw[0]);
408408
mpu6050_interface_debug_print("mpu6050: acc x[0] is %0.2fg.\n", gs_accel_g[0][0]);
409409
mpu6050_interface_debug_print("mpu6050: acc y[0] is %0.2fg.\n", gs_accel_g[0][1]);
410410
mpu6050_interface_debug_print("mpu6050: acc z[0] is %0.2fg.\n", gs_accel_g[0][2]);

project/raspberrypi4b/README.md

+18-18
Original file line numberDiff line numberDiff line change
@@ -964,29 +964,29 @@ mpu6050: enable feature send raw accel.
964964
mpu6050: enable feature send cal gyro.
965965
mpu6050: enable feature gyro cal.
966966
mpu6050: fifo 17.
967-
mpu6050: pitch[0] is 0.43dps.
968-
mpu6050: roll[0] is 1.73dps.
969-
mpu6050: yaw[0] is 0.01dps.
967+
mpu6050: pitch[0] is 0.43deg.
968+
mpu6050: roll[0] is 1.73deg.
969+
mpu6050: yaw[0] is 0.01deg.
970970
mpu6050: acc x[0] is -0.21g.
971971
mpu6050: acc y[0] is 0.02g.
972972
mpu6050: acc z[0] is 0.99g.
973973
mpu6050: gyro x[0] is -0.06dps.
974974
mpu6050: gyro y[0] is -0.12dps.
975975
mpu6050: gyro z[0] is -0.06dps.
976976
mpu6050: fifo 19.
977-
mpu6050: pitch[0] is 0.40dps.
978-
mpu6050: roll[0] is 1.62dps.
979-
mpu6050: yaw[0] is 0.00dps.
977+
mpu6050: pitch[0] is 0.40deg.
978+
mpu6050: roll[0] is 1.62deg.
979+
mpu6050: yaw[0] is 0.00deg.
980980
mpu6050: acc x[0] is -0.21g.
981981
mpu6050: acc y[0] is 0.02g.
982982
mpu6050: acc z[0] is 0.98g.
983983
mpu6050: gyro x[0] is -0.06dps.
984984
mpu6050: gyro y[0] is -0.24dps.
985985
mpu6050: gyro z[0] is -0.06dps.
986986
mpu6050: fifo 21.
987-
mpu6050: pitch[0] is 0.36dps.
988-
mpu6050: roll[0] is 1.50dps.
989-
mpu6050: yaw[0] is -0.00dps.
987+
mpu6050: pitch[0] is 0.36deg.
988+
mpu6050: roll[0] is 1.50deg.
989+
mpu6050: yaw[0] is -0.00deg.
990990
mpu6050: acc x[0] is -0.21g.
991991
mpu6050: acc y[0] is 0.02g.
992992
mpu6050: acc z[0] is 0.98g.
@@ -1183,9 +1183,9 @@ mpu6050: gyro z[0] is 0.00dps.
11831183
11841184
mpu6050: 1/3.
11851185
mpu6050: fifo 6.
1186-
mpu6050: pitch[0] is 0.16dps.
1187-
mpu6050: roll[0] is 0.87dps.
1188-
mpu6050: yaw[0] is 0.00dps.
1186+
mpu6050: pitch[0] is 0.16deg.
1187+
mpu6050: roll[0] is 0.87deg.
1188+
mpu6050: yaw[0] is 0.00deg.
11891189
mpu6050: acc x[0] is -0.00g.
11901190
mpu6050: acc y[0] is 0.02g.
11911191
mpu6050: acc z[0] is 1.01g.
@@ -1194,9 +1194,9 @@ mpu6050: gyro y[0] is 1.77dps.
11941194
mpu6050: gyro z[0] is -0.06dps.
11951195
mpu6050: 2/3.
11961196
mpu6050: fifo 6.
1197-
mpu6050: pitch[0] is 0.63dps.
1198-
mpu6050: roll[0] is 0.86dps.
1199-
mpu6050: yaw[0] is 0.01dps.
1197+
mpu6050: pitch[0] is 0.63deg.
1198+
mpu6050: roll[0] is 0.86deg.
1199+
mpu6050: yaw[0] is 0.01deg.
12001200
mpu6050: acc x[0] is -0.04g.
12011201
mpu6050: acc y[0] is 0.02g.
12021202
mpu6050: acc z[0] is 1.00g.
@@ -1205,9 +1205,9 @@ mpu6050: gyro y[0] is 20.79dps.
12051205
mpu6050: gyro z[0] is 0.18dps.
12061206
mpu6050: 3/3.
12071207
mpu6050: fifo 6.
1208-
mpu6050: pitch[0] is 0.37dps.
1209-
mpu6050: roll[0] is 0.77dps.
1210-
mpu6050: yaw[0] is 0.01dps.
1208+
mpu6050: pitch[0] is 0.37deg.
1209+
mpu6050: roll[0] is 0.77deg.
1210+
mpu6050: yaw[0] is 0.01deg.
12111211
mpu6050: acc x[0] is -0.01g.
12121212
mpu6050: acc y[0] is 0.02g.
12131213
mpu6050: acc z[0] is 1.01g.

project/raspberrypi4b/src/main.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -694,9 +694,9 @@ uint8_t mpu6050(uint8_t argc, char **argv)
694694
/* output */
695695
mpu6050_interface_debug_print("mpu6050: %d/%d.\n", i + 1, times);
696696
mpu6050_interface_debug_print("mpu6050: fifo %d.\n", len);
697-
mpu6050_interface_debug_print("mpu6050: pitch[0] is %0.2fdps.\n", gs_pitch[0]);
698-
mpu6050_interface_debug_print("mpu6050: roll[0] is %0.2fdps.\n", gs_roll[0]);
699-
mpu6050_interface_debug_print("mpu6050: yaw[0] is %0.2fdps.\n", gs_yaw[0]);
697+
mpu6050_interface_debug_print("mpu6050: pitch[0] is %0.2fdeg.\n", gs_pitch[0]);
698+
mpu6050_interface_debug_print("mpu6050: roll[0] is %0.2fdeg.\n", gs_roll[0]);
699+
mpu6050_interface_debug_print("mpu6050: yaw[0] is %0.2fdeg.\n", gs_yaw[0]);
700700
mpu6050_interface_debug_print("mpu6050: acc x[0] is %0.2fg.\n", gs_accel_g[0][0]);
701701
mpu6050_interface_debug_print("mpu6050: acc y[0] is %0.2fg.\n", gs_accel_g[0][1]);
702702
mpu6050_interface_debug_print("mpu6050: acc z[0] is %0.2fg.\n", gs_accel_g[0][2]);

project/stm32f407/README.md

+18-18
Original file line numberDiff line numberDiff line change
@@ -929,29 +929,29 @@ mpu6050: enable feature send raw accel.
929929
mpu6050: enable feature send cal gyro.
930930
mpu6050: enable feature gyro cal.
931931
mpu6050: fifo 16.
932-
mpu6050: pitch[0] is 0.51dps.
933-
mpu6050: roll[0] is 0.86dps.
934-
mpu6050: yaw[0] is 0.01dps.
932+
mpu6050: pitch[0] is 0.51deg.
933+
mpu6050: roll[0] is 0.86deg.
934+
mpu6050: yaw[0] is 0.01deg.
935935
mpu6050: acc x[0] is -0.11g.
936936
mpu6050: acc y[0] is -0.13g.
937937
mpu6050: acc z[0] is 0.99g.
938938
mpu6050: gyro x[0] is -0.06dps.
939939
mpu6050: gyro y[0] is -0.06dps.
940940
mpu6050: gyro z[0] is -0.06dps.
941941
mpu6050: fifo 19.
942-
mpu6050: pitch[0] is 0.48dps.
943-
mpu6050: roll[0] is 0.81dps.
944-
mpu6050: yaw[0] is 0.01dps.
942+
mpu6050: pitch[0] is 0.48deg.
943+
mpu6050: roll[0] is 0.81deg.
944+
mpu6050: yaw[0] is 0.01deg.
945945
mpu6050: acc x[0] is -0.11g.
946946
mpu6050: acc y[0] is -0.13g.
947947
mpu6050: acc z[0] is 0.98g.
948948
mpu6050: gyro x[0] is -0.06dps.
949949
mpu6050: gyro y[0] is -0.12dps.
950950
mpu6050: gyro z[0] is -0.06dps.
951951
mpu6050: fifo 20.
952-
mpu6050: pitch[0] is 0.45dps.
953-
mpu6050: roll[0] is 0.74dps.
954-
mpu6050: yaw[0] is -0.00dps.
952+
mpu6050: pitch[0] is 0.45deg.
953+
mpu6050: roll[0] is 0.74deg.
954+
mpu6050: yaw[0] is -0.00deg.
955955
mpu6050: acc x[0] is -0.11g.
956956
mpu6050: acc y[0] is -0.13g.
957957
mpu6050: acc z[0] is 0.99g.
@@ -1149,9 +1149,9 @@ mpu6050 -e dmp --addr=0 --times=3
11491149
11501150
mpu6050: 1/3.
11511151
mpu6050: fifo 6.
1152-
mpu6050: pitch[0] is 0.13dps.
1153-
mpu6050: roll[0] is 0.82dps.
1154-
mpu6050: yaw[0] is 0.00dps.
1152+
mpu6050: pitch[0] is 0.13deg.
1153+
mpu6050: roll[0] is 0.82deg.
1154+
mpu6050: yaw[0] is 0.00deg.
11551155
mpu6050: acc x[0] is -0.16g.
11561156
mpu6050: acc y[0] is -0.18g.
11571157
mpu6050: acc z[0] is 0.97g.
@@ -1160,9 +1160,9 @@ mpu6050: gyro y[0] is -0.12dps.
11601160
mpu6050: gyro z[0] is -0.06dps.
11611161
mpu6050: 2/3.
11621162
mpu6050: fifo 6.
1163-
mpu6050: pitch[0] is 0.10dps.
1164-
mpu6050: roll[0] is 0.75dps.
1165-
mpu6050: yaw[0] is -0.00dps.
1163+
mpu6050: pitch[0] is 0.10deg.
1164+
mpu6050: roll[0] is 0.75deg.
1165+
mpu6050: yaw[0] is -0.00deg.
11661166
mpu6050: acc x[0] is -0.16g.
11671167
mpu6050: acc y[0] is -0.18g.
11681168
mpu6050: acc z[0] is 0.97g.
@@ -1171,9 +1171,9 @@ mpu6050: gyro y[0] is -0.18dps.
11711171
mpu6050: gyro z[0] is -0.06dps.
11721172
mpu6050: 3/3.
11731173
mpu6050: fifo 7.
1174-
mpu6050: pitch[0] is 0.07dps.
1175-
mpu6050: roll[0] is 0.68dps.
1176-
mpu6050: yaw[0] is -0.00dps.
1174+
mpu6050: pitch[0] is 0.07deg.
1175+
mpu6050: roll[0] is 0.68deg.
1176+
mpu6050: yaw[0] is -0.00deg.
11771177
mpu6050: acc x[0] is -0.16g.
11781178
mpu6050: acc y[0] is -0.18g.
11791179
mpu6050: acc z[0] is 0.97g.

project/stm32f407/usr/src/main.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -723,9 +723,9 @@ uint8_t mpu6050(uint8_t argc, char **argv)
723723
/* output */
724724
mpu6050_interface_debug_print("mpu6050: %d/%d.\n", i + 1, times);
725725
mpu6050_interface_debug_print("mpu6050: fifo %d.\n", len);
726-
mpu6050_interface_debug_print("mpu6050: pitch[0] is %0.2fdps.\n", gs_pitch[0]);
727-
mpu6050_interface_debug_print("mpu6050: roll[0] is %0.2fdps.\n", gs_roll[0]);
728-
mpu6050_interface_debug_print("mpu6050: yaw[0] is %0.2fdps.\n", gs_yaw[0]);
726+
mpu6050_interface_debug_print("mpu6050: pitch[0] is %0.2fdeg.\n", gs_pitch[0]);
727+
mpu6050_interface_debug_print("mpu6050: roll[0] is %0.2fdeg.\n", gs_roll[0]);
728+
mpu6050_interface_debug_print("mpu6050: yaw[0] is %0.2fdeg.\n", gs_yaw[0]);
729729
mpu6050_interface_debug_print("mpu6050: acc x[0] is %0.2fg.\n", gs_accel_g[0][0]);
730730
mpu6050_interface_debug_print("mpu6050: acc y[0] is %0.2fg.\n", gs_accel_g[0][1]);
731731
mpu6050_interface_debug_print("mpu6050: acc z[0] is %0.2fg.\n", gs_accel_g[0][2]);

test/driver_mpu6050_dmp_read_test.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -1212,9 +1212,9 @@ uint8_t mpu6050_dmp_read_test(mpu6050_address_t addr, uint32_t times)
12121212
{
12131213
/* output data */
12141214
mpu6050_interface_debug_print("mpu6050: fifo %d.\n", l);
1215-
mpu6050_interface_debug_print("mpu6050: pitch[0] is %0.2fdps.\n", gs_pitch[0]);
1216-
mpu6050_interface_debug_print("mpu6050: roll[0] is %0.2fdps.\n", gs_roll[0]);
1217-
mpu6050_interface_debug_print("mpu6050: yaw[0] is %0.2fdps.\n", gs_yaw[0]);
1215+
mpu6050_interface_debug_print("mpu6050: pitch[0] is %0.2fdeg.\n", gs_pitch[0]);
1216+
mpu6050_interface_debug_print("mpu6050: roll[0] is %0.2fdeg.\n", gs_roll[0]);
1217+
mpu6050_interface_debug_print("mpu6050: yaw[0] is %0.2fdeg.\n", gs_yaw[0]);
12181218
mpu6050_interface_debug_print("mpu6050: acc x[0] is %0.2fg.\n", gs_accel_g[0][0]);
12191219
mpu6050_interface_debug_print("mpu6050: acc y[0] is %0.2fg.\n", gs_accel_g[0][1]);
12201220
mpu6050_interface_debug_print("mpu6050: acc z[0] is %0.2fg.\n", gs_accel_g[0][2]);

0 commit comments

Comments
 (0)