Go to Post Of course, the banana might mean nothing. It could just mean that Dave needs more potassium in his diet. :) - KathieK [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-02-2009, 22:15
camper365 camper365 is offline
Registered User
FRC #1599
 
Join Date: Feb 2009
Location: Virginia
Posts: 24
camper365 is an unknown quantity at this point
Axis 3 on joystick

I am trying to use the dial on the bottom of the joystick, and I know that it's Axis 3. The problem is that the bottom of the dial (all the way down) is -1 and the top is 1. I want to make the bottom 0 and the top 1. Is there any way I can do that.
I have tried Absolute Value, but that makes the bottom 1 and the top 1 (the middle 0). Is there a way to recalibrate the axis in the code?
  #2   Spotlight this post!  
Unread 13-02-2009, 22:22
TotalChaos's Avatar
TotalChaos TotalChaos is offline
Registered User
AKA: Austin
FRC #2837 (Freebird Robotics)
Team Role: College Student
 
Join Date: Apr 2008
Rookie Year: 2006
Location: Gilbert AZ
Posts: 112
TotalChaos has much to be proud ofTotalChaos has much to be proud ofTotalChaos has much to be proud ofTotalChaos has much to be proud ofTotalChaos has much to be proud ofTotalChaos has much to be proud ofTotalChaos has much to be proud ofTotalChaos has much to be proud ofTotalChaos has much to be proud ofTotalChaos has much to be proud of
Send a message via MSN to TotalChaos
Re: Axis 3 on joystick

You could simply add 1 to the output and then divide that value by 2.

- Austin
__________________
The 39th Aero Squadron - Team 39! (Visit our website!)
Team Role: 3 Years as Driver - College Student/Mentor!


Freebird Robotics - On a 1 year hiatus! (Visit our website!)
Arizona 2009: Semifinalists! (69 and 498), Delphi "Driving Tomorrow's Technology" Award
  #3   Spotlight this post!  
Unread 13-02-2009, 22:24
camper365 camper365 is offline
Registered User
FRC #1599
 
Join Date: Feb 2009
Location: Virginia
Posts: 24
camper365 is an unknown quantity at this point
Re: Axis 3 on joystick

that's all I need. I knew it wsa something simple, but I couldn't think of it right then (what I really hate is when that happens on my math test)
  #4   Spotlight this post!  
Unread 13-02-2009, 22:49
TotalChaos's Avatar
TotalChaos TotalChaos is offline
Registered User
AKA: Austin
FRC #2837 (Freebird Robotics)
Team Role: College Student
 
Join Date: Apr 2008
Rookie Year: 2006
Location: Gilbert AZ
Posts: 112
TotalChaos has much to be proud ofTotalChaos has much to be proud ofTotalChaos has much to be proud ofTotalChaos has much to be proud ofTotalChaos has much to be proud ofTotalChaos has much to be proud ofTotalChaos has much to be proud ofTotalChaos has much to be proud ofTotalChaos has much to be proud ofTotalChaos has much to be proud of
Send a message via MSN to TotalChaos
Re: Axis 3 on joystick

Quote:
Originally Posted by camper365 View Post
(what I really hate is when that happens on my math test)
Haha I'm with you there. ... That happens way more often then I'd like..

- Austin
__________________
The 39th Aero Squadron - Team 39! (Visit our website!)
Team Role: 3 Years as Driver - College Student/Mentor!


Freebird Robotics - On a 1 year hiatus! (Visit our website!)
Arizona 2009: Semifinalists! (69 and 498), Delphi "Driving Tomorrow's Technology" Award
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
Reversing the joystick axis JBotAlan Programming 3 09-02-2005 19:47
Tri-axis Analog Joystick KVermilion Control System 5 19-01-2005 00:24
pwm outputs vs. joystick y-axis stephenthe1 Programming 4 01-12-2004 17:29
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 21:53.

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