Go to Post West Coast Drive is best coast drive. - [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 23-02-2015, 16:03
ironmare ironmare is offline
Registered User
FRC #5072
 
Join Date: Jan 2015
Location: United States
Posts: 7
ironmare is an unknown quantity at this point
Using xbox thumbstick to control servos on pan/tilt

Here's a good one.

I am using the right thumbstick (let's say axis 1 and 2) of an xbox controller to control the two servos for the pan and tilt for our axis camera. The servos are plugged right into the PWM8 and PWM9 spots on the roboRIO. Now, the thumbstick is already running these servos, but the problem is once you let the thumbstick go back to center, the servos also return to there zero position (far left and straight down). This is an issue when you have to constantly compensate to keep the camera in the right position at all times. What I need is the servos to start at the centered position (camera looking straight ahead) so that when you move the thumbstick around to view, the camera follows the joystick commands and stays there without returning to the far left and straight down position. Can anyone provide some sample coding for this?

Thank you ahead of time for any effort to help!
Reply With Quote
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 10:19.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi