reverse direction of servo

Legacy support with Phidget21

reverse direction of servo

Postby robmausser » Tue Jun 16, 2009 4:42 pm

I have a phidget-servo being controlled by a slider in Flash.

The only problem is, the servo is facing away from the occupant, rather than facing them...

thus, when someone goes to move the slider, left is right and right is left, and the servo turns in the wrong direction.

How might I fix this?



User avatar
Lead Developer
Posts: 3166
Joined: Mon Jun 20, 2005 8:46 am
Location: Canada

Re: reverse direction of servo

Postby Patrick » Wed Jun 17, 2009 9:56 am

Just translate your numbers, ie servo.posn=(-(angle-256)); or something like that.


Return to “ActionScript 3.0 - Flash CS3 / Flex / AIR”

Who is online

Users browsing this forum: No registered users and 1 guest