View Single Post
  #1   Spotlight this post!  
Unread 08-02-2010, 23:12
Lumit Lumit is offline
Registered User
FRC #2521
 
Join Date: Jan 2010
Location: Oregon
Posts: 26
Lumit is an unknown quantity at this point
Joystick-Servo control

So we want to have the servos on the camera mount controlled by a joystick.
our camera mount: http://andymark.biz/am-0568.html

I have a feeling the issue is our number range conversion.

As I understand it, the joystick axes output a value of -127 to 127.
And the servos can use 0 to 1 (with set position) or 0 to 180 (with set angle).

So I added 127 to the joystick input, then divided it by 255, then fed that value into the set position VI. When powered up, it locks itself facing straight upwards, and wont respond to the joystick.

Am I missing something? It feels mathematically solid yet it isn't working!

thanks
Reply With Quote