<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>There is a problem applying the &amp;#39;complementary filter&amp;#39; to the value of mpu6050</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/68207/there-is-a-problem-applying-the-complementary-filter-to-the-value-of-mpu6050</link><description>Hello 
 
 I use mpu6050 and I want to use a &amp;#39;Complementary Filter&amp;#39; to get the angle of the X, Y, and Z axes. 
 Applying this filter to the value of mpu6050 seems to reduce noise at first and produce good results. However, after some time, the value of</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 13 Nov 2020 05:09:23 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/68207/there-is-a-problem-applying-the-complementary-filter-to-the-value-of-mpu6050" /><item><title>RE: There is a problem applying the 'complementary filter' to the value of mpu6050</title><link>https://devzone.nordicsemi.com/thread/279839?ContentTypeID=1</link><pubDate>Fri, 13 Nov 2020 05:09:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8f09dd4b-4a13-4da3-93f8-feac98b23587</guid><dc:creator>schosdas</dc:creator><description>&lt;p&gt;Thank you, Kenneth!&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;When I checked the value of dt, there was a problem that suddenly a very large value was printed out.&lt;br /&gt;If the value of dt is higher than a certain number, I resolved it so that it would be the same as the previous value.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: There is a problem applying the 'complementary filter' to the value of mpu6050</title><link>https://devzone.nordicsemi.com/thread/279676?ContentTypeID=1</link><pubDate>Thu, 12 Nov 2020 11:06:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2aa67e31-fd3d-4f80-8781-5489a4fad0d8</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;I suggest to print out t_now and&amp;nbsp;t_prev, have in mind that&amp;nbsp;app_timer_cnt_get() may be 0 and/or wrap around depending on whether there is any timers running or not. So you may need a check for if t_now is smaller than t_prev and/or if any is 0.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: There is a problem applying the 'complementary filter' to the value of mpu6050</title><link>https://devzone.nordicsemi.com/thread/279592?ContentTypeID=1</link><pubDate>Wed, 11 Nov 2020 20:50:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fc53eb4b-693b-4586-ad5b-49df7fc205d8</guid><dc:creator>schosdas</dc:creator><description>&lt;p&gt;&lt;span&gt;Hello, Kenneth.&lt;/span&gt;&lt;br /&gt;&lt;span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span&gt;Code has been modified.&lt;/span&gt;&lt;br /&gt;&lt;span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span&gt;Thank you.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: There is a problem applying the 'complementary filter' to the value of mpu6050</title><link>https://devzone.nordicsemi.com/thread/279514?ContentTypeID=1</link><pubDate>Wed, 11 Nov 2020 14:13:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ef6acc7e-9c8a-4630-9b85-606dd55a2b40</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;It doesn&amp;#39;t seem as you have included the source of&amp;nbsp;&lt;span&gt;calcDT()?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;br /&gt;Kenneth&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>