Filter: fixed example warnings

This commit is contained in:
Andrew Tridgell 2012-12-19 11:18:23 +11:00
parent 29f5e346c2
commit 32afc3f9ae
2 changed files with 1 additions and 7 deletions

View File

@ -44,7 +44,6 @@ void loop()
uint32_t t1 = hal.scheduler->micros();
derivative.update(s, t1);
float output = derivative.slope() * 1.0e6;
uint32_t t2 = hal.scheduler->micros();
hal.console->printf("%f %f %f %f\n", t, output, s, cos(t));
}

View File

@ -61,12 +61,7 @@ void readTemp()
//Main loop where the action takes place
void loop()
{
uint8_t i = 0;
int16_t filtered_value;
int16_t j;
for(j=0; j<0xFF; j++ ) {
for (uint8_t j=0; j<0xFF; j++ ) {
readTemp();
hal.scheduler->delay(100);
}