mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-11 10:28:29 -04:00
uncrustify libraries/Filter/examples/Filter/Filter.pde
This commit is contained in:
parent
e742a26bd5
commit
70d18ec87c
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user