View Single Post
  #9   Spotlight this post!  
Unread 18-01-2012, 02:50
SuperS_5's Avatar
SuperS_5 SuperS_5 is offline
[Certified LabVIEW Developer]
FRC #1219
 
Join Date: Dec 2010
Rookie Year: 2010
Location: Canada
Posts: 140
SuperS_5 will become famous soon enoughSuperS_5 will become famous soon enough
Re: Axis Pan+Tilt Servo issue?

Quote:
Originally Posted by DominickC View Post
I looked under the example code. Seems the servo's have a 170 degree limit, whereas the joystick has a 360 degree range of motion. I guess that means a joystick is out as a controller.
Just to recap and correct the above comment:

The joysticks get function outputs a range of -1 to +1, floating point. So even though the joystick has a larger range of motion in degrees, it is scaled down by a factor of 127. It is then limited to within that range. (256 units)

Therefore you have to scale your joysticks between this range of 2 to a range of 170.
__________________
Mike B
Reply With Quote