From 6534dab7195b02a18efb5783a69a4cc3624e7cd5 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 5 Jul 2012 16:27:34 +1000 Subject: [PATCH] Filter: fixed DerivativeFilter example build --- libraries/Filter/examples/Derivative/Derivative.pde | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/Filter/examples/Derivative/Derivative.pde b/libraries/Filter/examples/Derivative/Derivative.pde index ffe94ee161..4f4ee2cfcb 100644 --- a/libraries/Filter/examples/Derivative/Derivative.pde +++ b/libraries/Filter/examples/Derivative/Derivative.pde @@ -35,7 +35,7 @@ mavlink_system_t mavlink_system; FastSerialPort0(Serial); // FTDI/console -DerivativeFilter derivative; +DerivativeFilter derivative; // setup routine void setup() @@ -58,7 +58,7 @@ void loop() delay(50); float t = millis()*1.0e-3; float s = sin(t); - //s += noise(); + s += noise(); uint32_t t1 = micros(); float output = derivative.apply(s, t1) * 1.0e6; uint32_t t2 = micros();