Eckehard
User
Hallo,
Jeroens Code enthält auch eine Glättung:
Kalles Code mit Glättung:
Und:
An welchem Problem wird denn eigentlich gearbeitet?
Grüße
Eckehard
Jeroens Code enthält auch eine Glättung:
Code:
...
//filtering by Kalles Research
adxl.readAccel(&x, &y, &z); // read the accelerometer values and store them in variables
x1=x;
y1=y;
z1=z;
adxl.readAccel(&x, &y, &z); // read the accelerometer values and store them in variables
x2=x;
y2=y;
z2=z;
adxl.readAccel(&x, &y, &z); // read the accelerometer values and store them in variables
x3=x;
y3=y;
z3=z;
x=(x3*0.50)+(x2*0.3)+(x1*0.2);
y=(y3*0.50)+(y2*0.3)+(y1*0.2);
z=(z3*0.50)+(z2*0.3)+(z1*0.2);
...
Kalles Code mit Glättung:
Code:
...
tiltfiltered = tilt * 0.5 + value01 * 0.3 + value02 * 0.2; // see [URL]http://forum.arduino.cc/index.php?topic=184067.0[/URL]
value02 = value01;
value01 = tiltfiltered;
...
Und:
Ja, meine Meinung dazu in einem Satz zusammengefasst: "Wer hat denn das gemacht?"Ja Eckehard, ich weiss, wir haben da eine unterschiedliche Meinung zu ...
An welchem Problem wird denn eigentlich gearbeitet?
Grüße
Eckehard