Go to Post Our role models are practical visionaries. That's the glue. - JaneYoung [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 13-06-2010, 21:16
isaacdl isaacdl is offline
I have a white hat..it's just dirty
AKA: Isaac Dontje Lindell
FRC #3018 (Nordic Storm)
 
Join Date: Oct 2009
Rookie Year: 2010
Location: St. Peter
Posts: 32
isaacdl is an unknown quantity at this point
range of joystick input?

I'm setting up a throttle control for our bot, using the Z axis (throttle control). The code I'm using to get the value of the Z axis is:

Code:
throttleSpeed = rightStick.getZ() ;
(throttleSpeed is type double.) I need to know what range the value of throttleSpeed could be. Is it -1 to 1, or 0 to 1, or 1 - 255, or something completely different?
  #2   Spotlight this post!  
Unread 13-06-2010, 21:31
JamJam263 JamJam263 is offline
Registered User
FRC #0263
 
Join Date: Feb 2009
Location: Lk Ronkonkoma
Posts: 27
JamJam263 is a glorious beacon of lightJamJam263 is a glorious beacon of lightJamJam263 is a glorious beacon of lightJamJam263 is a glorious beacon of lightJamJam263 is a glorious beacon of light
Re: range of joystick input?

Quote:
Originally Posted by isaacdl View Post
I'm setting up a throttle control for our bot, using the Z axis (throttle control). The code I'm using to get the value of the Z axis is:

Code:
throttleSpeed = rightStick.getZ() ;
(throttleSpeed is type double.) I need to know what range the value of throttleSpeed could be. Is it -1 to 1, or 0 to 1, or 1 - 255, or something completely different?
-1 to 1, where -1 is flat, 0 is half way up, 1 is completely up. We've used throttle control the past two years where
Code:
throttleSpeed = (rightStick.getZ()+1)/2 ;
__________________
Favorite 2009 quotes:

"Do we really need all of the cRIO or can we cut it in half to save weight?"

  #3   Spotlight this post!  
Unread 13-06-2010, 21:45
isaacdl isaacdl is offline
I have a white hat..it's just dirty
AKA: Isaac Dontje Lindell
FRC #3018 (Nordic Storm)
 
Join Date: Oct 2009
Rookie Year: 2010
Location: St. Peter
Posts: 32
isaacdl is an unknown quantity at this point
Re: range of joystick input?

Perfect, thank you.
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 values out of range Sentient Programming 0 14-02-2009 09:35
Joystick Input Mapping ExarKun666 Programming 14 25-04-2008 08:41
Joystick Input calibration in software LieAfterLie Programming 3 14-02-2007 21:44
issues limiting a joystick input Unholy Programming 7 12-02-2006 19:53
change pwm range preserve input sensitivity Superstitions Programming 6 11-02-2006 20:59


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

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