In SX Microcontrollers, SX/B Compiler and SX-Key Tool, Matthias09 wrote: Hi guys, I'm still looking forward to a sleek way to smoothen the sensor data of the ONE Ping Sensor I'm using (two made too much noise, thanks Beau!). So what I want to do: 1) take 5 measurements and save them into an byte array (max value is about 100) 2) cut lowest and highest value 3) average the remaining 3 results 4) give out the averaged value to my controller function 5) next 5 measurements Step 1 is easy, obviously. But how can I do step 2)? And is there a sleek way for step 3)? Guys, hope you can help me with that! Without smoothing, the whole system (see picture in above's post) get's really crazy! Thank you! Matthias ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=175860#m395390 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2009 (http://www.dotNetBB.com)