<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[M5StickC-Plus MPU6886 cannot report upside-down pitch, only between 0 to 90]]></title><description><![CDATA[<p dir="auto">I'm using the M5StickC-Plus with the Arduino library provided at <a href="https://github.com/m5stack/M5StickC-Plus" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/m5stack/M5StickC-Plus</a></p>
<p dir="auto">Specifically, tested using <a href="https://github.com/m5stack/M5StickC-Plus/blob/master/examples/Basics/IMU/IMU.ino" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/m5stack/M5StickC-Plus/blob/master/examples/Basics/IMU/IMU.ino</a> and my own application is using the same function calls, the most important one being M5.IMU.getAhrsData(&amp;pitch, &amp;roll, &amp;yaw);</p>
<p dir="auto">The problem is the pitch angle reported with the function does not ever go upside-down, it goes from 0 to 90 deg and then back to 0 again as the device is being rotated continuously.</p>
<p dir="auto">I need the value to go from 0 to 90 to 180, then -180, then -90 then 0, during a full rotation on the pitch axis.</p>
<p dir="auto">How can I accomplish this?</p>
<p dir="auto">Thanks</p>
]]></description><link>https://community.m5stack.com/topic/4487/m5stickc-plus-mpu6886-cannot-report-upside-down-pitch-only-between-0-to-90</link><generator>RSS for Node</generator><lastBuildDate>Tue, 28 Apr 2026 22:32:00 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/4487.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 02 Aug 2022 01:48:00 GMT</pubDate><ttl>60</ttl></channel></rss>