Motion examples and tests

This commit is contained in:
Bill Verplank
2012-11-05 11:30:21 +01:00
parent 3596727aed
commit 38ee24b847
6 changed files with 2378 additions and 1 deletions
+1 -1
View File
@@ -11,7 +11,7 @@ void setup(){
void loop(){
x = analogRead(A0);
v = x - xold; //lag v, too
v = x - xold; //lag v, too?
xold += 0.1*(x-xold); //slide xold with lag
if(c++==0){