servo test

parent 14f77eda
Showing with 1 additions and 1 deletions
...@@ -24,7 +24,7 @@ var increment = -10; ...@@ -24,7 +24,7 @@ var increment = -10;
motor.servoWrite(pulseWidth); motor.servoWrite(pulseWidth);
for(var i=0;i<90;i++){ for(var i=0;i<90;i++){
setTimeout(openFunct, 100); setTimeout(function(){openFunct();}, 100);
if(pulseWidth > 950){ if(pulseWidth > 950){
console.log("Fuera de rango en apertura"); console.log("Fuera de rango en apertura");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment