<?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[Bug? uiFlow 1.4.5 Stick C IMU ypr[] (getX and getY) values are weird.]]></title><description><![CDATA[<p dir="auto">I tried to get the roll, pitch, and yaw (ypr[]) of Stick-C IMU using uiFlow 1.4.5 (and 1.4.5.1) but the values seemed weird. X( ypr[1]) and Y (ypr[2]) are decreasing from time to time until the variables getting overflowed. I have checked my IMU using C++ (Ardunio IDE) and all were OK.</p>
]]></description><link>https://community.m5stack.com/topic/1848/bug-uiflow-1-4-5-stick-c-imu-ypr-getx-and-gety-values-are-weird</link><generator>RSS for Node</generator><lastBuildDate>Wed, 29 Apr 2026 07:57:08 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/1848.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 13 Apr 2020 23:46:29 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Bug? uiFlow 1.4.5 Stick C IMU ypr[] (getX and getY) values are weird. on Mon, 18 May 2020 14:18:42 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ipodlux" aria-label="Profile: ipodlux">@<bdi>ipodlux</bdi></a> For the time being, I stopped using uiFlow (or Python) for IMU related project. It is not reliable and it is slow. Use Arduino IDE, you will have a much faster code and reliable result.</p>
]]></description><link>https://community.m5stack.com/post/8717</link><guid isPermaLink="true">https://community.m5stack.com/post/8717</guid><dc:creator><![CDATA[liemph]]></dc:creator><pubDate>Mon, 18 May 2020 14:18:42 GMT</pubDate></item><item><title><![CDATA[Reply to Bug? uiFlow 1.4.5 Stick C IMU ypr[] (getX and getY) values are weird. on Mon, 18 May 2020 13:57:05 GMT]]></title><description><![CDATA[<p dir="auto">Hi, the problem is still there. Removing the wait block kinda of fix it but reading are inconsistent. Any fix?</p>
<p dir="auto">Thanks</p>
]]></description><link>https://community.m5stack.com/post/8716</link><guid isPermaLink="true">https://community.m5stack.com/post/8716</guid><dc:creator><![CDATA[iPodLux]]></dc:creator><pubDate>Mon, 18 May 2020 13:57:05 GMT</pubDate></item><item><title><![CDATA[Reply to Bug? uiFlow 1.4.5 Stick C IMU ypr[] (getX and getY) values are weird. on Tue, 14 Apr 2020 09:30:18 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/liemph" aria-label="Profile: liemph">@<bdi>liemph</bdi></a> thank you feedback . you could delete wait block to solve it.  our engineer will fix it later .</p>
]]></description><link>https://community.m5stack.com/post/8152</link><guid isPermaLink="true">https://community.m5stack.com/post/8152</guid><dc:creator><![CDATA[m5stack]]></dc:creator><pubDate>Tue, 14 Apr 2020 09:30:18 GMT</pubDate></item><item><title><![CDATA[Reply to Bug? uiFlow 1.4.5 Stick C IMU ypr[] (getX and getY) values are weird. on Wed, 15 Apr 2020 00:05:56 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/liemph" aria-label="Profile: liemph">@<bdi>liemph</bdi></a></p>
<pre><code>from m5stack import *
from m5ui import *
from uiflow import *
lcd.setRotation(1)
import imu
import hat

setScreenColor(0x111111)

hat_bugc0 = hat.get(hat.BUGC)


imu0 = imu.IMU()
label0 = M5TextBox(34, 10, "Text", lcd.FONT_Default,0xFFFFFF, rotate=0)
label1 = M5TextBox(35, 33, "Text", lcd.FONT_Default,0xFFFFFF, rotate=0)
label2 = M5TextBox(10, 10, "X", lcd.FONT_Default,0xFFFFFF, rotate=0)
label3 = M5TextBox(9, 34, "Y", lcd.FONT_Default,0xFFFFFF, rotate=0)

raw_x = None
raw_y = None



raw_x = 0
raw_y = 0
while True:
  raw_x = imu0.ypr[1]
  raw_y = imu0.ypr[2]
  label0.setText(str(raw_x))
  label1.setText(str(raw_y))
  wait(1)
  wait_ms(2)
</code></pre>
]]></description><link>https://community.m5stack.com/post/8146</link><guid isPermaLink="true">https://community.m5stack.com/post/8146</guid><dc:creator><![CDATA[liemph]]></dc:creator><pubDate>Wed, 15 Apr 2020 00:05:56 GMT</pubDate></item><item><title><![CDATA[Reply to Bug? uiFlow 1.4.5 Stick C IMU ypr[] (getX and getY) values are weird. on Mon, 13 Apr 2020 23:47:34 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/liemph" aria-label="Profile: liemph">@<bdi>liemph</bdi></a> <img src="/assets/uploads/files/1586821646643-65c18c68-5715-48e8-abb6-730d5d2eccd8-image.png" alt="0_1586821645884_65c18c68-5715-48e8-abb6-730d5d2eccd8-image.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.m5stack.com/post/8145</link><guid isPermaLink="true">https://community.m5stack.com/post/8145</guid><dc:creator><![CDATA[liemph]]></dc:creator><pubDate>Mon, 13 Apr 2020 23:47:34 GMT</pubDate></item></channel></rss>