I'm learning how to use EZB scripts. I'm doing a very simple exercise.
I make a servo move , and want it to stop it as soon as a sensor makes a digital input high. I'd want to see how long it takes to actually stop.
I use "release" to stop it (it's a digital servo, it will keep its position even with no signal). I see no other script statement to stop a servo movement.
I wrote this script:
servo(d3,180) (the servo travel, from 130 to 180, lasts about 3 sec.)
The sensor is activated during servo travel, (3 sec.) but the servo reaches its target, ignoring the "if" statement .
What's going on ? *stress* *stress*