Skip to content

Commit

Permalink
Merge pull request #15 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 d803395 + 4504b08 commit 93c6edb
Show file tree
Hide file tree
Showing 16 changed files with 75 additions and 69 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-08-30)

## Features
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -411,9 +411,9 @@ for (i = 0; i < times; i++)
/* output */
mpu9250_interface_debug_print("mpu9250: %d/%d.\n", i + 1, times);
mpu9250_interface_debug_print("mpu9250: fifo %d.\n", len);
mpu9250_interface_debug_print("mpu9250: pitch[0] is %0.2fdps.\n", gs_pitch[0]);
mpu9250_interface_debug_print("mpu9250: roll[0] is %0.2fdps.\n", gs_roll[0]);
mpu9250_interface_debug_print("mpu9250: yaw[0] is %0.2fdps.\n", gs_yaw[0]);
mpu9250_interface_debug_print("mpu9250: pitch[0] is %0.2fdeg.\n", gs_pitch[0]);
mpu9250_interface_debug_print("mpu9250: roll[0] is %0.2fdeg.\n", gs_roll[0]);
mpu9250_interface_debug_print("mpu9250: yaw[0] is %0.2fdeg.\n", gs_yaw[0]);
mpu9250_interface_debug_print("mpu9250: acc x[0] is %0.2fg.\n", gs_accel_g[0][0]);
mpu9250_interface_debug_print("mpu9250: acc y[0] is %0.2fg.\n", gs_accel_g[0][1]);
mpu9250_interface_debug_print("mpu9250: 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 @@ -411,9 +411,9 @@ for (i = 0; i < times; i++)
/* output */
mpu9250_interface_debug_print("mpu9250: %d/%d.\n", i + 1, times);
mpu9250_interface_debug_print("mpu9250: fifo %d.\n", len);
mpu9250_interface_debug_print("mpu9250: pitch[0] is %0.2fdps.\n", gs_pitch[0]);
mpu9250_interface_debug_print("mpu9250: roll[0] is %0.2fdps.\n", gs_roll[0]);
mpu9250_interface_debug_print("mpu9250: yaw[0] is %0.2fdps.\n", gs_yaw[0]);
mpu9250_interface_debug_print("mpu9250: pitch[0] is %0.2fdeg.\n", gs_pitch[0]);
mpu9250_interface_debug_print("mpu9250: roll[0] is %0.2fdeg.\n", gs_roll[0]);
mpu9250_interface_debug_print("mpu9250: yaw[0] is %0.2fdeg.\n", gs_yaw[0]);
mpu9250_interface_debug_print("mpu9250: acc x[0] is %0.2fg.\n", gs_accel_g[0][0]);
mpu9250_interface_debug_print("mpu9250: acc y[0] is %0.2fg.\n", gs_accel_g[0][1]);
mpu9250_interface_debug_print("mpu9250: 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 @@ -411,9 +411,9 @@ for (i = 0; i < times; i++)
/* output */
mpu9250_interface_debug_print("mpu9250: %d/%d.\n", i + 1, times);
mpu9250_interface_debug_print("mpu9250: fifo %d.\n", len);
mpu9250_interface_debug_print("mpu9250: pitch[0] is %0.2fdps.\n", gs_pitch[0]);
mpu9250_interface_debug_print("mpu9250: roll[0] is %0.2fdps.\n", gs_roll[0]);
mpu9250_interface_debug_print("mpu9250: yaw[0] is %0.2fdps.\n", gs_yaw[0]);
mpu9250_interface_debug_print("mpu9250: pitch[0] is %0.2fdeg.\n", gs_pitch[0]);
mpu9250_interface_debug_print("mpu9250: roll[0] is %0.2fdeg.\n", gs_roll[0]);
mpu9250_interface_debug_print("mpu9250: yaw[0] is %0.2fdeg.\n", gs_yaw[0]);
mpu9250_interface_debug_print("mpu9250: acc x[0] is %0.2fg.\n", gs_accel_g[0][0]);
mpu9250_interface_debug_print("mpu9250: acc y[0] is %0.2fg.\n", gs_accel_g[0][1]);
mpu9250_interface_debug_print("mpu9250: 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 @@ -411,9 +411,9 @@ for (i = 0; i < times; i++)
/* output */
mpu9250_interface_debug_print("mpu9250: %d/%d.\n", i + 1, times);
mpu9250_interface_debug_print("mpu9250: fifo %d.\n", len);
mpu9250_interface_debug_print("mpu9250: pitch[0] is %0.2fdps.\n", gs_pitch[0]);
mpu9250_interface_debug_print("mpu9250: roll[0] is %0.2fdps.\n", gs_roll[0]);
mpu9250_interface_debug_print("mpu9250: yaw[0] is %0.2fdps.\n", gs_yaw[0]);
mpu9250_interface_debug_print("mpu9250: pitch[0] is %0.2fdeg.\n", gs_pitch[0]);
mpu9250_interface_debug_print("mpu9250: roll[0] is %0.2fdeg.\n", gs_roll[0]);
mpu9250_interface_debug_print("mpu9250: yaw[0] is %0.2fdeg.\n", gs_yaw[0]);
mpu9250_interface_debug_print("mpu9250: acc x[0] is %0.2fg.\n", gs_accel_g[0][0]);
mpu9250_interface_debug_print("mpu9250: acc y[0] is %0.2fg.\n", gs_accel_g[0][1]);
mpu9250_interface_debug_print("mpu9250: 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 @@ -411,9 +411,9 @@ for (i = 0; i < times; i++)
/* output */
mpu9250_interface_debug_print("mpu9250: %d/%d.\n", i + 1, times);
mpu9250_interface_debug_print("mpu9250: fifo %d.\n", len);
mpu9250_interface_debug_print("mpu9250: pitch[0] is %0.2fdps.\n", gs_pitch[0]);
mpu9250_interface_debug_print("mpu9250: roll[0] is %0.2fdps.\n", gs_roll[0]);
mpu9250_interface_debug_print("mpu9250: yaw[0] is %0.2fdps.\n", gs_yaw[0]);
mpu9250_interface_debug_print("mpu9250: pitch[0] is %0.2fdeg.\n", gs_pitch[0]);
mpu9250_interface_debug_print("mpu9250: roll[0] is %0.2fdeg.\n", gs_roll[0]);
mpu9250_interface_debug_print("mpu9250: yaw[0] is %0.2fdeg.\n", gs_yaw[0]);
mpu9250_interface_debug_print("mpu9250: acc x[0] is %0.2fg.\n", gs_accel_g[0][0]);
mpu9250_interface_debug_print("mpu9250: acc y[0] is %0.2fg.\n", gs_accel_g[0][1]);
mpu9250_interface_debug_print("mpu9250: 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 @@ -405,9 +405,9 @@ for (i = 0; i < times; i++)
/* output */
mpu9250_interface_debug_print("mpu9250: %d/%d.\n", i + 1, times);
mpu9250_interface_debug_print("mpu9250: fifo %d.\n", len);
mpu9250_interface_debug_print("mpu9250: pitch[0] is %0.2fdps.\n", gs_pitch[0]);
mpu9250_interface_debug_print("mpu9250: roll[0] is %0.2fdps.\n", gs_roll[0]);
mpu9250_interface_debug_print("mpu9250: yaw[0] is %0.2fdps.\n", gs_yaw[0]);
mpu9250_interface_debug_print("mpu9250: pitch[0] is %0.2fdeg.\n", gs_pitch[0]);
mpu9250_interface_debug_print("mpu9250: roll[0] is %0.2fdeg.\n", gs_roll[0]);
mpu9250_interface_debug_print("mpu9250: yaw[0] is %0.2fdeg.\n", gs_yaw[0]);
mpu9250_interface_debug_print("mpu9250: acc x[0] is %0.2fg.\n", gs_accel_g[0][0]);
mpu9250_interface_debug_print("mpu9250: acc y[0] is %0.2fg.\n", gs_accel_g[0][1]);
mpu9250_interface_debug_print("mpu9250: acc z[0] is %0.2fg.\n", gs_accel_g[0][2]);
Expand Down
6 changes: 3 additions & 3 deletions doc/html/driver__mpu9250__dmp__read__test_8c_source.html
Original file line number Diff line number Diff line change
Expand Up @@ -1377,9 +1377,9 @@
<div class="line"><a name="l01340"></a><span class="lineno"> 1340</span>&#160; {</div>
<div class="line"><a name="l01341"></a><span class="lineno"> 1341</span>&#160; <span class="comment">/* output data */</span></div>
<div class="line"><a name="l01342"></a><span class="lineno"> 1342</span>&#160; <a class="code" href="group__mpu9250__interface__driver.html#ga15e531f463207b6917de60a4e3354ddd">mpu9250_interface_debug_print</a>(<span class="stringliteral">&quot;mpu9250: fifo %d.\n&quot;</span>, l);</div>
<div class="line"><a name="l01343"></a><span class="lineno"> 1343</span>&#160; <a class="code" href="group__mpu9250__interface__driver.html#ga15e531f463207b6917de60a4e3354ddd">mpu9250_interface_debug_print</a>(<span class="stringliteral">&quot;mpu9250: pitch[0] is %0.2fdps.\n&quot;</span>, gs_pitch[0]);</div>
<div class="line"><a name="l01344"></a><span class="lineno"> 1344</span>&#160; <a class="code" href="group__mpu9250__interface__driver.html#ga15e531f463207b6917de60a4e3354ddd">mpu9250_interface_debug_print</a>(<span class="stringliteral">&quot;mpu9250: roll[0] is %0.2fdps.\n&quot;</span>, gs_roll[0]);</div>
<div class="line"><a name="l01345"></a><span class="lineno"> 1345</span>&#160; <a class="code" href="group__mpu9250__interface__driver.html#ga15e531f463207b6917de60a4e3354ddd">mpu9250_interface_debug_print</a>(<span class="stringliteral">&quot;mpu9250: yaw[0] is %0.2fdps.\n&quot;</span>, gs_yaw[0]);</div>
<div class="line"><a name="l01343"></a><span class="lineno"> 1343</span>&#160; <a class="code" href="group__mpu9250__interface__driver.html#ga15e531f463207b6917de60a4e3354ddd">mpu9250_interface_debug_print</a>(<span class="stringliteral">&quot;mpu9250: pitch[0] is %0.2fdeg.\n&quot;</span>, gs_pitch[0]);</div>
<div class="line"><a name="l01344"></a><span class="lineno"> 1344</span>&#160; <a class="code" href="group__mpu9250__interface__driver.html#ga15e531f463207b6917de60a4e3354ddd">mpu9250_interface_debug_print</a>(<span class="stringliteral">&quot;mpu9250: roll[0] is %0.2fdeg.\n&quot;</span>, gs_roll[0]);</div>
<div class="line"><a name="l01345"></a><span class="lineno"> 1345</span>&#160; <a class="code" href="group__mpu9250__interface__driver.html#ga15e531f463207b6917de60a4e3354ddd">mpu9250_interface_debug_print</a>(<span class="stringliteral">&quot;mpu9250: yaw[0] is %0.2fdeg.\n&quot;</span>, gs_yaw[0]);</div>
<div class="line"><a name="l01346"></a><span class="lineno"> 1346</span>&#160; <a class="code" href="group__mpu9250__interface__driver.html#ga15e531f463207b6917de60a4e3354ddd">mpu9250_interface_debug_print</a>(<span class="stringliteral">&quot;mpu9250: acc x[0] is %0.2fg.\n&quot;</span>, gs_accel_g[0][0]);</div>
<div class="line"><a name="l01347"></a><span class="lineno"> 1347</span>&#160; <a class="code" href="group__mpu9250__interface__driver.html#ga15e531f463207b6917de60a4e3354ddd">mpu9250_interface_debug_print</a>(<span class="stringliteral">&quot;mpu9250: acc y[0] is %0.2fg.\n&quot;</span>, gs_accel_g[0][1]);</div>
<div class="line"><a name="l01348"></a><span class="lineno"> 1348</span>&#160; <a class="code" href="group__mpu9250__interface__driver.html#ga15e531f463207b6917de60a4e3354ddd">mpu9250_interface_debug_print</a>(<span class="stringliteral">&quot;mpu9250: acc z[0] is %0.2fg.\n&quot;</span>, gs_accel_g[0][2]);</div>
Expand Down
2 changes: 1 addition & 1 deletion doc/html/group__mpu9250__basic__driver.html
Original file line number Diff line number Diff line change
Expand Up @@ -5916,7 +5916,7 @@ <h2 class="memtitle"><span class="permalink"><a href="#gac5b9ba3d521630513c0e4f8
</dl>
<dl class="section return"><dt>Returns</dt><dd>status code<ul>
<li>0 success</li>
<li>1 iic initialization failed</li>
<li>1 iic or spi initialization failed</li>
<li>2 handle is NULL</li>
<li>3 linked functions is NULL</li>
<li>4 reset failed</li>
Expand Down
36 changes: 18 additions & 18 deletions project/raspberrypi4b/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1114,29 +1114,29 @@ mpu9250: enable feature send raw accel.
mpu9250: enable feature send cal gyro.
mpu9250: enable feature gyro cal.
mpu9250: fifo 8.
mpu9250: pitch[0] is -0.03dps.
mpu9250: roll[0] is 0.79dps.
mpu9250: yaw[0] is -0.03dps.
mpu9250: pitch[0] is -0.03deg.
mpu9250: roll[0] is 0.79deg.
mpu9250: yaw[0] is -0.03deg.
mpu9250: acc x[0] is -0.08g.
mpu9250: acc y[0] is 0.00g.
mpu9250: acc z[0] is 0.96g.
mpu9250: gyro x[0] is -0.12dps.
mpu9250: gyro y[0] is 0.37dps.
mpu9250: gyro z[0] is 0.12dps.
mpu9250: fifo 14.
mpu9250: pitch[0] is -0.01dps.
mpu9250: roll[0] is 0.77dps.
mpu9250: yaw[0] is -0.02dps.
mpu9250: pitch[0] is -0.01deg.
mpu9250: roll[0] is 0.77deg.
mpu9250: yaw[0] is -0.02deg.
mpu9250: acc x[0] is -0.08g.
mpu9250: acc y[0] is 0.00g.
mpu9250: acc z[0] is 0.96g.
mpu9250: gyro x[0] is -0.24dps.
mpu9250: gyro y[0] is 0.43dps.
mpu9250: gyro z[0] is 0.18dps.
mpu9250: fifo 17.
mpu9250: pitch[0] is 0.02dps.
mpu9250: roll[0] is 0.73dps.
mpu9250: yaw[0] is -0.00dps.
mpu9250: pitch[0] is 0.02deg.
mpu9250: roll[0] is 0.73deg.
mpu9250: yaw[0] is -0.00deg.
mpu9250: acc x[0] is -0.08g.
mpu9250: acc y[0] is 0.00g.
mpu9250: acc z[0] is 0.96g.
Expand Down Expand Up @@ -1350,9 +1350,9 @@ mpu9250: mag z[0] is 74.42uT.
mpu9250: 1/3.
mpu9250: fifo 6.
mpu9250: pitch[0] is 0.08dps.
mpu9250: roll[0] is 0.85dps.
mpu9250: yaw[0] is 0.00dps.
mpu9250: pitch[0] is 0.08deg.
mpu9250: roll[0] is 0.85deg.
mpu9250: yaw[0] is 0.00deg.
mpu9250: acc x[0] is -0.09g.
mpu9250: acc y[0] is 0.01g.
mpu9250: acc z[0] is 0.95g.
Expand All @@ -1361,9 +1361,9 @@ mpu9250: gyro y[0] is -0.06dps.
mpu9250: gyro z[0] is 0.00dps.
mpu9250: 2/3.
mpu9250: fifo 6.
mpu9250: pitch[0] is 0.06dps.
mpu9250: roll[0] is 0.77dps.
mpu9250: yaw[0] is 0.00dps.
mpu9250: pitch[0] is 0.06deg.
mpu9250: roll[0] is 0.77deg.
mpu9250: yaw[0] is 0.00deg.
mpu9250: acc x[0] is -0.09g.
mpu9250: acc y[0] is 0.00g.
mpu9250: acc z[0] is 0.95g.
Expand All @@ -1372,9 +1372,9 @@ mpu9250: gyro y[0] is 0.06dps.
mpu9250: gyro z[0] is -0.06dps.
mpu9250: 3/3.
mpu9250: fifo 6.
mpu9250: pitch[0] is 0.05dps.
mpu9250: roll[0] is 0.71dps.
mpu9250: yaw[0] is 0.00dps.
mpu9250: pitch[0] is 0.05deg.
mpu9250: roll[0] is 0.71deg.
mpu9250: yaw[0] is 0.00deg.
mpu9250: acc x[0] is -0.09g.
mpu9250: acc y[0] is 0.01g.
mpu9250: acc z[0] is 0.95g.
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 @@ -715,9 +715,9 @@ uint8_t mpu9250(uint8_t argc, char **argv)
/* output */
mpu9250_interface_debug_print("mpu9250: %d/%d.\n", i + 1, times);
mpu9250_interface_debug_print("mpu9250: fifo %d.\n", len);
mpu9250_interface_debug_print("mpu9250: pitch[0] is %0.2fdps.\n", gs_pitch[0]);
mpu9250_interface_debug_print("mpu9250: roll[0] is %0.2fdps.\n", gs_roll[0]);
mpu9250_interface_debug_print("mpu9250: yaw[0] is %0.2fdps.\n", gs_yaw[0]);
mpu9250_interface_debug_print("mpu9250: pitch[0] is %0.2fdeg.\n", gs_pitch[0]);
mpu9250_interface_debug_print("mpu9250: roll[0] is %0.2fdeg.\n", gs_roll[0]);
mpu9250_interface_debug_print("mpu9250: yaw[0] is %0.2fdeg.\n", gs_yaw[0]);
mpu9250_interface_debug_print("mpu9250: acc x[0] is %0.2fg.\n", gs_accel_g[0][0]);
mpu9250_interface_debug_print("mpu9250: acc y[0] is %0.2fg.\n", gs_accel_g[0][1]);
mpu9250_interface_debug_print("mpu9250: 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 @@ -1079,29 +1079,29 @@ mpu9250: enable feature send raw accel.
mpu9250: enable feature send cal gyro.
mpu9250: enable feature gyro cal.
mpu9250: fifo 3.
mpu9250: pitch[0] is -0.06dps.
mpu9250: roll[0] is 1.16dps.
mpu9250: yaw[0] is -0.02dps.
mpu9250: pitch[0] is -0.06deg.
mpu9250: roll[0] is 1.16deg.
mpu9250: yaw[0] is -0.02deg.
mpu9250: acc x[0] is -0.09g.
mpu9250: acc y[0] is 0.01g.
mpu9250: acc z[0] is 0.95g.
mpu9250: gyro x[0] is -0.12dps.
mpu9250: gyro y[0] is -0.06dps.
mpu9250: gyro z[0] is -0.06dps.
mpu9250: fifo 6.
mpu9250: pitch[0] is -0.06dps.
mpu9250: roll[0] is 1.14dps.
mpu9250: yaw[0] is -0.02dps.
mpu9250: pitch[0] is -0.06deg.
mpu9250: roll[0] is 1.14deg.
mpu9250: yaw[0] is -0.02deg.
mpu9250: acc x[0] is -0.08g.
mpu9250: acc y[0] is 0.01g.
mpu9250: acc z[0] is 0.94g.
mpu9250: gyro x[0] is -0.06dps.
mpu9250: gyro y[0] is 0.00dps.
mpu9250: gyro z[0] is -0.06dps.
mpu9250: fifo 7.
mpu9250: pitch[0] is -0.06dps.
mpu9250: roll[0] is 1.12dps.
mpu9250: yaw[0] is -0.02dps.
mpu9250: pitch[0] is -0.06deg.
mpu9250: roll[0] is 1.12deg.
mpu9250: yaw[0] is -0.02deg.
mpu9250: acc x[0] is -0.09g.
mpu9250: acc y[0] is 0.01g.
mpu9250: acc z[0] is 0.95g.
Expand Down Expand Up @@ -1315,9 +1315,9 @@ mpu9250 -e dmp --addr=0 --interface=iic --times=3
mpu9250: 1/3.
mpu9250: fifo 6.
mpu9250: pitch[0] is 0.01dps.
mpu9250: roll[0] is 0.82dps.
mpu9250: yaw[0] is -0.03dps.
mpu9250: pitch[0] is 0.01deg.
mpu9250: roll[0] is 0.82deg.
mpu9250: yaw[0] is -0.03deg.
mpu9250: acc x[0] is -0.08g.
mpu9250: acc y[0] is 0.02g.
mpu9250: acc z[0] is 0.95g.
Expand All @@ -1326,9 +1326,9 @@ mpu9250: gyro y[0] is -0.12dps.
mpu9250: gyro z[0] is -0.06dps.
mpu9250: 2/3.
mpu9250: fifo 7.
mpu9250: pitch[0] is -0.01dps.
mpu9250: roll[0] is 0.75dps.
mpu9250: yaw[0] is -0.03dps.
mpu9250: pitch[0] is -0.01deg.
mpu9250: roll[0] is 0.75deg.
mpu9250: yaw[0] is -0.03deg.
mpu9250: acc x[0] is -0.07g.
mpu9250: acc y[0] is 0.02g.
mpu9250: acc z[0] is 0.95g.
Expand All @@ -1337,9 +1337,9 @@ mpu9250: gyro y[0] is -0.18dps.
mpu9250: gyro z[0] is -0.12dps.
mpu9250: 3/3.
mpu9250: fifo 8.
mpu9250: pitch[0] is -0.04dps.
mpu9250: roll[0] is 0.69dps.
mpu9250: yaw[0] is -0.04dps.
mpu9250: pitch[0] is -0.04deg.
mpu9250: roll[0] is 0.69deg.
mpu9250: yaw[0] is -0.04deg.
mpu9250: acc x[0] is -0.08g.
mpu9250: acc y[0] is 0.02g.
mpu9250: acc z[0] is 0.95g.
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 @@ -785,9 +785,9 @@ uint8_t mpu9250(uint8_t argc, char **argv)
/* output */
mpu9250_interface_debug_print("mpu9250: %d/%d.\n", i + 1, times);
mpu9250_interface_debug_print("mpu9250: fifo %d.\n", len);
mpu9250_interface_debug_print("mpu9250: pitch[0] is %0.2fdps.\n", gs_pitch[0]);
mpu9250_interface_debug_print("mpu9250: roll[0] is %0.2fdps.\n", gs_roll[0]);
mpu9250_interface_debug_print("mpu9250: yaw[0] is %0.2fdps.\n", gs_yaw[0]);
mpu9250_interface_debug_print("mpu9250: pitch[0] is %0.2fdeg.\n", gs_pitch[0]);
mpu9250_interface_debug_print("mpu9250: roll[0] is %0.2fdeg.\n", gs_roll[0]);
mpu9250_interface_debug_print("mpu9250: yaw[0] is %0.2fdeg.\n", gs_yaw[0]);
mpu9250_interface_debug_print("mpu9250: acc x[0] is %0.2fg.\n", gs_accel_g[0][0]);
mpu9250_interface_debug_print("mpu9250: acc y[0] is %0.2fg.\n", gs_accel_g[0][1]);
mpu9250_interface_debug_print("mpu9250: acc z[0] is %0.2fg.\n", gs_accel_g[0][2]);
Expand Down
2 changes: 1 addition & 1 deletion src/driver_mpu9250.c
Original file line number Diff line number Diff line change
Expand Up @@ -3999,7 +3999,7 @@ uint8_t mpu9250_get_addr_pin(mpu9250_handle_t *handle, mpu9250_address_t *addr_p
* @param[in] *handle points to an mpu9250 handle structure
* @return status code
* - 0 success
* - 1 iic initialization failed
* - 1 iic or spi initialization failed
* - 2 handle is NULL
* - 3 linked functions is NULL
* - 4 reset failed
Expand Down
2 changes: 1 addition & 1 deletion src/driver_mpu9250.h
Original file line number Diff line number Diff line change
Expand Up @@ -729,7 +729,7 @@ uint8_t mpu9250_irq_handler(mpu9250_handle_t *handle);
* @param[in] *handle points to an mpu9250 handle structure
* @return status code
* - 0 success
* - 1 iic initialization failed
* - 1 iic or spi initialization failed
* - 2 handle is NULL
* - 3 linked functions is NULL
* - 4 reset failed
Expand Down
6 changes: 3 additions & 3 deletions test/driver_mpu9250_dmp_read_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -1340,9 +1340,9 @@ uint8_t mpu9250_dmp_read_test(mpu9250_interface_t interface, mpu9250_address_t a
{
/* output data */
mpu9250_interface_debug_print("mpu9250: fifo %d.\n", l);
mpu9250_interface_debug_print("mpu9250: pitch[0] is %0.2fdps.\n", gs_pitch[0]);
mpu9250_interface_debug_print("mpu9250: roll[0] is %0.2fdps.\n", gs_roll[0]);
mpu9250_interface_debug_print("mpu9250: yaw[0] is %0.2fdps.\n", gs_yaw[0]);
mpu9250_interface_debug_print("mpu9250: pitch[0] is %0.2fdeg.\n", gs_pitch[0]);
mpu9250_interface_debug_print("mpu9250: roll[0] is %0.2fdeg.\n", gs_roll[0]);
mpu9250_interface_debug_print("mpu9250: yaw[0] is %0.2fdeg.\n", gs_yaw[0]);
mpu9250_interface_debug_print("mpu9250: acc x[0] is %0.2fg.\n", gs_accel_g[0][0]);
mpu9250_interface_debug_print("mpu9250: acc y[0] is %0.2fg.\n", gs_accel_g[0][1]);
mpu9250_interface_debug_print("mpu9250: acc z[0] is %0.2fg.\n", gs_accel_g[0][2]);
Expand Down

0 comments on commit 93c6edb

Please sign in to comment.