uncrustify libraries/Filter/examples/Filter/Filter.pde

This commit is contained in:
uncrustify 2012-08-16 23:22:10 -07:00 committed by Pat Hickey
parent e742a26bd5
commit 70d18ec87c

View File

@ -1,6 +1,6 @@
/*
Example of Filter library.
Code by Randy Mackay and Jason Short. DIYDrones.com
* Example of Filter library.
* Code by Randy Mackay and Jason Short. DIYDrones.com
*/
#include <FastSerial.h>
@ -78,24 +78,24 @@ void loop()
ReadTemp();
}
/*while( i < 9 ) {
// output to user
Serial.printf("applying: %d\n",(int)rangevalue[i]);
// display original
Serial.printf("before: ");
printFilter(mfilter);
// apply new value and retrieved filtered result
filtered_value = mfilter.apply(rangevalue[i]);
// display results
Serial.printf("after: ");
printFilter(mfilter);
Serial.printf("The filtered value is: %d\n\n",(int)filtered_value);
i++;
}*/
*
* // output to user
* Serial.printf("applying: %d\n",(int)rangevalue[i]);
*
* // display original
* Serial.printf("before: ");
* printFilter(mfilter);
*
* // apply new value and retrieved filtered result
* filtered_value = mfilter.apply(rangevalue[i]);
*
* // display results
* Serial.printf("after: ");
* printFilter(mfilter);
* Serial.printf("The filtered value is: %d\n\n",(int)filtered_value);
*
* i++;
* }*/
delay(10000);
}