Skip to content

Commit

Permalink
Merge pull request #23 from libdriver/dev
Browse files Browse the repository at this point in the history
fix some display errors
  • Loading branch information
libdriver authored Jul 1, 2024
2 parents aca17c5 + 09cdc5f commit 81bd57e
Show file tree
Hide file tree
Showing 12 changed files with 69 additions and 63 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## 1.0.1 (2024-07-01)

## Bug Fixes

- fix some display errors

## 1.0.0 (2022-06-30)

## Features
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -402,9 +402,9 @@ for (i = 0; i < times; i++)
/* output */
mpu6050_interface_debug_print("mpu6050: %d/%d.\n", i + 1, times);
mpu6050_interface_debug_print("mpu6050: fifo %d.\n", len);
mpu6050_interface_debug_print("mpu6050: pitch[0] is %0.2fdps.\n", gs_pitch[0]);
mpu6050_interface_debug_print("mpu6050: roll[0] is %0.2fdps.\n", gs_roll[0]);
mpu6050_interface_debug_print("mpu6050: yaw[0] is %0.2fdps.\n", gs_yaw[0]);
mpu6050_interface_debug_print("mpu6050: pitch[0] is %0.2fdeg.\n", gs_pitch[0]);
mpu6050_interface_debug_print("mpu6050: roll[0] is %0.2fdeg.\n", gs_roll[0]);
mpu6050_interface_debug_print("mpu6050: yaw[0] is %0.2fdeg.\n", gs_yaw[0]);
mpu6050_interface_debug_print("mpu6050: acc x[0] is %0.2fg.\n", gs_accel_g[0][0]);
mpu6050_interface_debug_print("mpu6050: acc y[0] is %0.2fg.\n", gs_accel_g[0][1]);
mpu6050_interface_debug_print("mpu6050: acc z[0] is %0.2fg.\n", gs_accel_g[0][2]);
Expand Down
6 changes: 3 additions & 3 deletions README_de.md
Original file line number Diff line number Diff line change
Expand Up @@ -402,9 +402,9 @@ for (i = 0; i < times; i++)
/* output */
mpu6050_interface_debug_print("mpu6050: %d/%d.\n", i + 1, times);
mpu6050_interface_debug_print("mpu6050: fifo %d.\n", len);
mpu6050_interface_debug_print("mpu6050: pitch[0] is %0.2fdps.\n", gs_pitch[0]);
mpu6050_interface_debug_print("mpu6050: roll[0] is %0.2fdps.\n", gs_roll[0]);
mpu6050_interface_debug_print("mpu6050: yaw[0] is %0.2fdps.\n", gs_yaw[0]);
mpu6050_interface_debug_print("mpu6050: pitch[0] is %0.2fdeg.\n", gs_pitch[0]);
mpu6050_interface_debug_print("mpu6050: roll[0] is %0.2fdeg.\n", gs_roll[0]);
mpu6050_interface_debug_print("mpu6050: yaw[0] is %0.2fdeg.\n", gs_yaw[0]);
mpu6050_interface_debug_print("mpu6050: acc x[0] is %0.2fg.\n", gs_accel_g[0][0]);
mpu6050_interface_debug_print("mpu6050: acc y[0] is %0.2fg.\n", gs_accel_g[0][1]);
mpu6050_interface_debug_print("mpu6050: acc z[0] is %0.2fg.\n", gs_accel_g[0][2]);
Expand Down
6 changes: 3 additions & 3 deletions README_ja.md
Original file line number Diff line number Diff line change
Expand Up @@ -402,9 +402,9 @@ for (i = 0; i < times; i++)
/* output */
mpu6050_interface_debug_print("mpu6050: %d/%d.\n", i + 1, times);
mpu6050_interface_debug_print("mpu6050: fifo %d.\n", len);
mpu6050_interface_debug_print("mpu6050: pitch[0] is %0.2fdps.\n", gs_pitch[0]);
mpu6050_interface_debug_print("mpu6050: roll[0] is %0.2fdps.\n", gs_roll[0]);
mpu6050_interface_debug_print("mpu6050: yaw[0] is %0.2fdps.\n", gs_yaw[0]);
mpu6050_interface_debug_print("mpu6050: pitch[0] is %0.2fdeg.\n", gs_pitch[0]);
mpu6050_interface_debug_print("mpu6050: roll[0] is %0.2fdeg.\n", gs_roll[0]);
mpu6050_interface_debug_print("mpu6050: yaw[0] is %0.2fdeg.\n", gs_yaw[0]);
mpu6050_interface_debug_print("mpu6050: acc x[0] is %0.2fg.\n", gs_accel_g[0][0]);
mpu6050_interface_debug_print("mpu6050: acc y[0] is %0.2fg.\n", gs_accel_g[0][1]);
mpu6050_interface_debug_print("mpu6050: acc z[0] is %0.2fg.\n", gs_accel_g[0][2]);
Expand Down
6 changes: 3 additions & 3 deletions README_ko.md
Original file line number Diff line number Diff line change
Expand Up @@ -402,9 +402,9 @@ for (i = 0; i < times; i++)
/* output */
mpu6050_interface_debug_print("mpu6050: %d/%d.\n", i + 1, times);
mpu6050_interface_debug_print("mpu6050: fifo %d.\n", len);
mpu6050_interface_debug_print("mpu6050: pitch[0] is %0.2fdps.\n", gs_pitch[0]);
mpu6050_interface_debug_print("mpu6050: roll[0] is %0.2fdps.\n", gs_roll[0]);
mpu6050_interface_debug_print("mpu6050: yaw[0] is %0.2fdps.\n", gs_yaw[0]);
mpu6050_interface_debug_print("mpu6050: pitch[0] is %0.2fdeg.\n", gs_pitch[0]);
mpu6050_interface_debug_print("mpu6050: roll[0] is %0.2fdeg.\n", gs_roll[0]);
mpu6050_interface_debug_print("mpu6050: yaw[0] is %0.2fdeg.\n", gs_yaw[0]);
mpu6050_interface_debug_print("mpu6050: acc x[0] is %0.2fg.\n", gs_accel_g[0][0]);
mpu6050_interface_debug_print("mpu6050: acc y[0] is %0.2fg.\n", gs_accel_g[0][1]);
mpu6050_interface_debug_print("mpu6050: acc z[0] is %0.2fg.\n", gs_accel_g[0][2]);
Expand Down
6 changes: 3 additions & 3 deletions README_zh-Hans.md
Original file line number Diff line number Diff line change
Expand Up @@ -402,9 +402,9 @@ for (i = 0; i < times; i++)
/* output */
mpu6050_interface_debug_print("mpu6050: %d/%d.\n", i + 1, times);
mpu6050_interface_debug_print("mpu6050: fifo %d.\n", len);
mpu6050_interface_debug_print("mpu6050: pitch[0] is %0.2fdps.\n", gs_pitch[0]);
mpu6050_interface_debug_print("mpu6050: roll[0] is %0.2fdps.\n", gs_roll[0]);
mpu6050_interface_debug_print("mpu6050: yaw[0] is %0.2fdps.\n", gs_yaw[0]);
mpu6050_interface_debug_print("mpu6050: pitch[0] is %0.2fdeg.\n", gs_pitch[0]);
mpu6050_interface_debug_print("mpu6050: roll[0] is %0.2fdeg.\n", gs_roll[0]);
mpu6050_interface_debug_print("mpu6050: yaw[0] is %0.2fdeg.\n", gs_yaw[0]);
mpu6050_interface_debug_print("mpu6050: acc x[0] is %0.2fg.\n", gs_accel_g[0][0]);
mpu6050_interface_debug_print("mpu6050: acc y[0] is %0.2fg.\n", gs_accel_g[0][1]);
mpu6050_interface_debug_print("mpu6050: acc z[0] is %0.2fg.\n", gs_accel_g[0][2]);
Expand Down
6 changes: 3 additions & 3 deletions README_zh-Hant.md
Original file line number Diff line number Diff line change
Expand Up @@ -402,9 +402,9 @@ for (i = 0; i < times; i++)
/* output */
mpu6050_interface_debug_print("mpu6050: %d/%d.\n", i + 1, times);
mpu6050_interface_debug_print("mpu6050: fifo %d.\n", len);
mpu6050_interface_debug_print("mpu6050: pitch[0] is %0.2fdps.\n", gs_pitch[0]);
mpu6050_interface_debug_print("mpu6050: roll[0] is %0.2fdps.\n", gs_roll[0]);
mpu6050_interface_debug_print("mpu6050: yaw[0] is %0.2fdps.\n", gs_yaw[0]);
mpu6050_interface_debug_print("mpu6050: pitch[0] is %0.2fdeg.\n", gs_pitch[0]);
mpu6050_interface_debug_print("mpu6050: roll[0] is %0.2fdeg.\n", gs_roll[0]);
mpu6050_interface_debug_print("mpu6050: yaw[0] is %0.2fdeg.\n", gs_yaw[0]);
mpu6050_interface_debug_print("mpu6050: acc x[0] is %0.2fg.\n", gs_accel_g[0][0]);
mpu6050_interface_debug_print("mpu6050: acc y[0] is %0.2fg.\n", gs_accel_g[0][1]);
mpu6050_interface_debug_print("mpu6050: acc z[0] is %0.2fg.\n", gs_accel_g[0][2]);
Expand Down
36 changes: 18 additions & 18 deletions project/raspberrypi4b/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -964,29 +964,29 @@ mpu6050: enable feature send raw accel.
mpu6050: enable feature send cal gyro.
mpu6050: enable feature gyro cal.
mpu6050: fifo 17.
mpu6050: pitch[0] is 0.43dps.
mpu6050: roll[0] is 1.73dps.
mpu6050: yaw[0] is 0.01dps.
mpu6050: pitch[0] is 0.43deg.
mpu6050: roll[0] is 1.73deg.
mpu6050: yaw[0] is 0.01deg.
mpu6050: acc x[0] is -0.21g.
mpu6050: acc y[0] is 0.02g.
mpu6050: acc z[0] is 0.99g.
mpu6050: gyro x[0] is -0.06dps.
mpu6050: gyro y[0] is -0.12dps.
mpu6050: gyro z[0] is -0.06dps.
mpu6050: fifo 19.
mpu6050: pitch[0] is 0.40dps.
mpu6050: roll[0] is 1.62dps.
mpu6050: yaw[0] is 0.00dps.
mpu6050: pitch[0] is 0.40deg.
mpu6050: roll[0] is 1.62deg.
mpu6050: yaw[0] is 0.00deg.
mpu6050: acc x[0] is -0.21g.
mpu6050: acc y[0] is 0.02g.
mpu6050: acc z[0] is 0.98g.
mpu6050: gyro x[0] is -0.06dps.
mpu6050: gyro y[0] is -0.24dps.
mpu6050: gyro z[0] is -0.06dps.
mpu6050: fifo 21.
mpu6050: pitch[0] is 0.36dps.
mpu6050: roll[0] is 1.50dps.
mpu6050: yaw[0] is -0.00dps.
mpu6050: pitch[0] is 0.36deg.
mpu6050: roll[0] is 1.50deg.
mpu6050: yaw[0] is -0.00deg.
mpu6050: acc x[0] is -0.21g.
mpu6050: acc y[0] is 0.02g.
mpu6050: acc z[0] is 0.98g.
Expand Down Expand Up @@ -1183,9 +1183,9 @@ mpu6050: gyro z[0] is 0.00dps.
mpu6050: 1/3.
mpu6050: fifo 6.
mpu6050: pitch[0] is 0.16dps.
mpu6050: roll[0] is 0.87dps.
mpu6050: yaw[0] is 0.00dps.
mpu6050: pitch[0] is 0.16deg.
mpu6050: roll[0] is 0.87deg.
mpu6050: yaw[0] is 0.00deg.
mpu6050: acc x[0] is -0.00g.
mpu6050: acc y[0] is 0.02g.
mpu6050: acc z[0] is 1.01g.
Expand All @@ -1194,9 +1194,9 @@ mpu6050: gyro y[0] is 1.77dps.
mpu6050: gyro z[0] is -0.06dps.
mpu6050: 2/3.
mpu6050: fifo 6.
mpu6050: pitch[0] is 0.63dps.
mpu6050: roll[0] is 0.86dps.
mpu6050: yaw[0] is 0.01dps.
mpu6050: pitch[0] is 0.63deg.
mpu6050: roll[0] is 0.86deg.
mpu6050: yaw[0] is 0.01deg.
mpu6050: acc x[0] is -0.04g.
mpu6050: acc y[0] is 0.02g.
mpu6050: acc z[0] is 1.00g.
Expand All @@ -1205,9 +1205,9 @@ mpu6050: gyro y[0] is 20.79dps.
mpu6050: gyro z[0] is 0.18dps.
mpu6050: 3/3.
mpu6050: fifo 6.
mpu6050: pitch[0] is 0.37dps.
mpu6050: roll[0] is 0.77dps.
mpu6050: yaw[0] is 0.01dps.
mpu6050: pitch[0] is 0.37deg.
mpu6050: roll[0] is 0.77deg.
mpu6050: yaw[0] is 0.01deg.
mpu6050: acc x[0] is -0.01g.
mpu6050: acc y[0] is 0.02g.
mpu6050: acc z[0] is 1.01g.
Expand Down
6 changes: 3 additions & 3 deletions project/raspberrypi4b/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -694,9 +694,9 @@ uint8_t mpu6050(uint8_t argc, char **argv)
/* output */
mpu6050_interface_debug_print("mpu6050: %d/%d.\n", i + 1, times);
mpu6050_interface_debug_print("mpu6050: fifo %d.\n", len);
mpu6050_interface_debug_print("mpu6050: pitch[0] is %0.2fdps.\n", gs_pitch[0]);
mpu6050_interface_debug_print("mpu6050: roll[0] is %0.2fdps.\n", gs_roll[0]);
mpu6050_interface_debug_print("mpu6050: yaw[0] is %0.2fdps.\n", gs_yaw[0]);
mpu6050_interface_debug_print("mpu6050: pitch[0] is %0.2fdeg.\n", gs_pitch[0]);
mpu6050_interface_debug_print("mpu6050: roll[0] is %0.2fdeg.\n", gs_roll[0]);
mpu6050_interface_debug_print("mpu6050: yaw[0] is %0.2fdeg.\n", gs_yaw[0]);
mpu6050_interface_debug_print("mpu6050: acc x[0] is %0.2fg.\n", gs_accel_g[0][0]);
mpu6050_interface_debug_print("mpu6050: acc y[0] is %0.2fg.\n", gs_accel_g[0][1]);
mpu6050_interface_debug_print("mpu6050: acc z[0] is %0.2fg.\n", gs_accel_g[0][2]);
Expand Down
36 changes: 18 additions & 18 deletions project/stm32f407/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -929,29 +929,29 @@ mpu6050: enable feature send raw accel.
mpu6050: enable feature send cal gyro.
mpu6050: enable feature gyro cal.
mpu6050: fifo 16.
mpu6050: pitch[0] is 0.51dps.
mpu6050: roll[0] is 0.86dps.
mpu6050: yaw[0] is 0.01dps.
mpu6050: pitch[0] is 0.51deg.
mpu6050: roll[0] is 0.86deg.
mpu6050: yaw[0] is 0.01deg.
mpu6050: acc x[0] is -0.11g.
mpu6050: acc y[0] is -0.13g.
mpu6050: acc z[0] is 0.99g.
mpu6050: gyro x[0] is -0.06dps.
mpu6050: gyro y[0] is -0.06dps.
mpu6050: gyro z[0] is -0.06dps.
mpu6050: fifo 19.
mpu6050: pitch[0] is 0.48dps.
mpu6050: roll[0] is 0.81dps.
mpu6050: yaw[0] is 0.01dps.
mpu6050: pitch[0] is 0.48deg.
mpu6050: roll[0] is 0.81deg.
mpu6050: yaw[0] is 0.01deg.
mpu6050: acc x[0] is -0.11g.
mpu6050: acc y[0] is -0.13g.
mpu6050: acc z[0] is 0.98g.
mpu6050: gyro x[0] is -0.06dps.
mpu6050: gyro y[0] is -0.12dps.
mpu6050: gyro z[0] is -0.06dps.
mpu6050: fifo 20.
mpu6050: pitch[0] is 0.45dps.
mpu6050: roll[0] is 0.74dps.
mpu6050: yaw[0] is -0.00dps.
mpu6050: pitch[0] is 0.45deg.
mpu6050: roll[0] is 0.74deg.
mpu6050: yaw[0] is -0.00deg.
mpu6050: acc x[0] is -0.11g.
mpu6050: acc y[0] is -0.13g.
mpu6050: acc z[0] is 0.99g.
Expand Down Expand Up @@ -1149,9 +1149,9 @@ mpu6050 -e dmp --addr=0 --times=3
mpu6050: 1/3.
mpu6050: fifo 6.
mpu6050: pitch[0] is 0.13dps.
mpu6050: roll[0] is 0.82dps.
mpu6050: yaw[0] is 0.00dps.
mpu6050: pitch[0] is 0.13deg.
mpu6050: roll[0] is 0.82deg.
mpu6050: yaw[0] is 0.00deg.
mpu6050: acc x[0] is -0.16g.
mpu6050: acc y[0] is -0.18g.
mpu6050: acc z[0] is 0.97g.
Expand All @@ -1160,9 +1160,9 @@ mpu6050: gyro y[0] is -0.12dps.
mpu6050: gyro z[0] is -0.06dps.
mpu6050: 2/3.
mpu6050: fifo 6.
mpu6050: pitch[0] is 0.10dps.
mpu6050: roll[0] is 0.75dps.
mpu6050: yaw[0] is -0.00dps.
mpu6050: pitch[0] is 0.10deg.
mpu6050: roll[0] is 0.75deg.
mpu6050: yaw[0] is -0.00deg.
mpu6050: acc x[0] is -0.16g.
mpu6050: acc y[0] is -0.18g.
mpu6050: acc z[0] is 0.97g.
Expand All @@ -1171,9 +1171,9 @@ mpu6050: gyro y[0] is -0.18dps.
mpu6050: gyro z[0] is -0.06dps.
mpu6050: 3/3.
mpu6050: fifo 7.
mpu6050: pitch[0] is 0.07dps.
mpu6050: roll[0] is 0.68dps.
mpu6050: yaw[0] is -0.00dps.
mpu6050: pitch[0] is 0.07deg.
mpu6050: roll[0] is 0.68deg.
mpu6050: yaw[0] is -0.00deg.
mpu6050: acc x[0] is -0.16g.
mpu6050: acc y[0] is -0.18g.
mpu6050: acc z[0] is 0.97g.
Expand Down
6 changes: 3 additions & 3 deletions project/stm32f407/usr/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -723,9 +723,9 @@ uint8_t mpu6050(uint8_t argc, char **argv)
/* output */
mpu6050_interface_debug_print("mpu6050: %d/%d.\n", i + 1, times);
mpu6050_interface_debug_print("mpu6050: fifo %d.\n", len);
mpu6050_interface_debug_print("mpu6050: pitch[0] is %0.2fdps.\n", gs_pitch[0]);
mpu6050_interface_debug_print("mpu6050: roll[0] is %0.2fdps.\n", gs_roll[0]);
mpu6050_interface_debug_print("mpu6050: yaw[0] is %0.2fdps.\n", gs_yaw[0]);
mpu6050_interface_debug_print("mpu6050: pitch[0] is %0.2fdeg.\n", gs_pitch[0]);
mpu6050_interface_debug_print("mpu6050: roll[0] is %0.2fdeg.\n", gs_roll[0]);
mpu6050_interface_debug_print("mpu6050: yaw[0] is %0.2fdeg.\n", gs_yaw[0]);
mpu6050_interface_debug_print("mpu6050: acc x[0] is %0.2fg.\n", gs_accel_g[0][0]);
mpu6050_interface_debug_print("mpu6050: acc y[0] is %0.2fg.\n", gs_accel_g[0][1]);
mpu6050_interface_debug_print("mpu6050: acc z[0] is %0.2fg.\n", gs_accel_g[0][2]);
Expand Down
6 changes: 3 additions & 3 deletions test/driver_mpu6050_dmp_read_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -1212,9 +1212,9 @@ uint8_t mpu6050_dmp_read_test(mpu6050_address_t addr, uint32_t times)
{
/* output data */
mpu6050_interface_debug_print("mpu6050: fifo %d.\n", l);
mpu6050_interface_debug_print("mpu6050: pitch[0] is %0.2fdps.\n", gs_pitch[0]);
mpu6050_interface_debug_print("mpu6050: roll[0] is %0.2fdps.\n", gs_roll[0]);
mpu6050_interface_debug_print("mpu6050: yaw[0] is %0.2fdps.\n", gs_yaw[0]);
mpu6050_interface_debug_print("mpu6050: pitch[0] is %0.2fdeg.\n", gs_pitch[0]);
mpu6050_interface_debug_print("mpu6050: roll[0] is %0.2fdeg.\n", gs_roll[0]);
mpu6050_interface_debug_print("mpu6050: yaw[0] is %0.2fdeg.\n", gs_yaw[0]);
mpu6050_interface_debug_print("mpu6050: acc x[0] is %0.2fg.\n", gs_accel_g[0][0]);
mpu6050_interface_debug_print("mpu6050: acc y[0] is %0.2fg.\n", gs_accel_g[0][1]);
mpu6050_interface_debug_print("mpu6050: acc z[0] is %0.2fg.\n", gs_accel_g[0][2]);
Expand Down

0 comments on commit 81bd57e

Please sign in to comment.