Problem with CASE
MichelB
Posts: 154
Hi, I wrote a small program giving position in degrees of my standard servo. For example when I type 60, CASE 60, duration = 450·the horn turns clockwise at 60 degrees but when I type -90 i.e. CASE -90, duration = 1180 the horn turns clockwise at 90 degrees instead of 90 degrees counterclockwise expected. CASE does not accept negative numbers? Thank you in advance for help.
Comments
The CASE should work because it's using an equal (exact) comparison with -90.