robot

Dependencies:   FastPWM3 mbed

Revision:
82:5e741c5ffd9f
Parent:
64:b4175385d718
--- a/MathHelpers/MathHelpers.cpp	Sat Feb 25 01:12:27 2017 +0000
+++ b/MathHelpers/MathHelpers.cpp	Fri Mar 10 08:29:13 2017 +0000
@@ -32,6 +32,10 @@
     return b;
 }
 
+float update_filter(float old, float x, float str) {
+    return str * old + (1.0f - str) * x;
+}
+
 float acbrt(float x0) {
     union { int ix; float x; };