[ 3 / biz / cgl / ck / diy / fa / ic / jp / lit / sci / vr / vt ] [ index / top / reports ] [ become a patron ] [ status ]
2023-11: Warosu is now out of extended maintenance.

/diy/ - Do It Yourself

Search:


View post   

>> No.1842712 [View]
File: 12 KB, 714x751, compas average.png [View same] [iqdb] [saucenao] [google]
1842712

I have a 14bit compass heading but the data is noisy and so I want to find an "average" of 5 measurements. However a regular average will fuck up if the measurements go across the 0 line. What do I use here and how do I implement it in C?

Navigation
View posts[+24][+48][+96]