Go to Post That Billfred guy is going to pay for this one. - Bcahn836 [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 19-01-2010, 21:54
xSpongeX xSpongeX is offline
Registered User
FRC #3369
 
Join Date: Jan 2010
Location: Pflugerville
Posts: 5
xSpongeX can only hope to improve
Joystick Controls of Axis Camera

I added the Joystick code from the joystick input example in the servo camera example to control the servo camera via the joystick.

But, the example has 2 front panel controls which I am replacing with the output s of the "Get Joystick Axis" SubVI's.

How do I scale the output values from 0 to 170?

Thanks
  #2   Spotlight this post!  
Unread 19-01-2010, 23:05
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Joystick Controls of Axis Camera

Use math functions. To turn a value between -1 and +1 to a value between 0 and 170, add one then multiply by 85.
Closed Thread


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
joystick axis in labview frcchile NI LabVIEW 7 20-02-2009 12:06
Axis 3 on joystick camper365 Programming 3 13-02-2009 22:49
Tri-axis Analog Joystick KVermilion Control System 5 19-01-2005 00:24
Inverting Y axis on joystick FormatteD_C Programming 7 24-02-2004 16:56
switching joystick axis????? team222badbrad Technical Discussion 9 16-01-2002 23:07


All times are GMT -5. The time now is 01:54.

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