just upgraded ide 1.6.5 , i'm getting compiling errors when using average library.
the example provided library compile example found on arduino playground won't compile.
i've loaded library manually , new automatic functionality no luck.
any appreciated!
sketch_sep22b.ino: in function 'void loop()':
sketch_sep22b:21: error: 'mean' not declared in scope
sketch_sep22b:23: error: 'mode' not declared in scope
sketch_sep22b:25: error: 'maximum' not declared in scope
sketch_sep22b:27: error: 'minimum' not declared in scope
sketch_sep22b:29: error: 'stddev' not declared in scope
'mean' not declared in scope
code: [select]
#include <average.h>
#define cnt 600
int d[cnt];
void setup()
{
serial.begin(9600);
}
void loop()
{
int i;
for(i=0; i<cnt; i++)
{
d[i] = random(500);
}
serial.print("mean: ");
serial.print(mean(d,cnt),dec);
serial.print(" mode: ");
serial.print(mode(d,cnt),dec);
serial.print(" max: ");
serial.print(maximum(d,cnt),dec);
serial.print(" min: ");
serial.print(minimum(d,cnt),dec);
serial.print(" standard deviation: ");
serial.print(stddev(d,cnt),4);
serial.println("");
serial.println("");
delay(5000);
well, not expert...but can show me average.h?
this question because declarations not made in program, expect declarations made in average.h
this question because declarations not made in program, expect declarations made in average.h
Arduino Forum > Using Arduino > Programming Questions > Average Library Problem
arduino
Comments
Post a Comment