Go to Post ...our football team was a state champion, but i don't see -them- going to atlanta and winning there! :D - Sam Lipscomb [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 17-01-2008, 21:09
compwiz2008's Avatar
compwiz2008 compwiz2008 is offline
Registered User
FRC #2139
 
Join Date: Nov 2007
Location: Las Vegas, Nevada
Posts: 11
compwiz2008 is an unknown quantity at this point
Question Joystick Output Values?

I'm having issues programming our team's drive motors, and I am programming them on asumptions. I am assuming that the following is true:

joystick left on x-axis = value of 126 to 0
joystick right on x-axis = value of 128 to 255

joystick down on y-axis = 126 to 0
joystick up on y-axis = 128 to 255

Can someone confirm that my assumptions are true, or that their false? Thanks in advance.

Last edited by compwiz2008 : 17-01-2008 at 21:19.
  #2   Spotlight this post!  
Unread 17-01-2008, 21:17
CyDrive's Avatar
CyDrive CyDrive is offline
Registered User
FRC #1203 (pandemonium)
Team Role: Mentor
 
Join Date: Apr 2007
Rookie Year: 2007
Location: West Babylon
Posts: 26
CyDrive is an unknown quantity at this point
Re: Joystick Output Values?

Yes this is correct though i think you are referring to the y when you say up and down.
  #3   Spotlight this post!  
Unread 17-01-2008, 21:19
Steve_Alaniz Steve_Alaniz is offline
Registered User
FRC #2848 (All Sparks)
Team Role: Mentor
 
Join Date: Mar 2007
Rookie Year: 1997
Location: Dallas
Posts: 211
Steve_Alaniz has a reputation beyond reputeSteve_Alaniz has a reputation beyond reputeSteve_Alaniz has a reputation beyond reputeSteve_Alaniz has a reputation beyond reputeSteve_Alaniz has a reputation beyond reputeSteve_Alaniz has a reputation beyond reputeSteve_Alaniz has a reputation beyond reputeSteve_Alaniz has a reputation beyond reputeSteve_Alaniz has a reputation beyond reputeSteve_Alaniz has a reputation beyond reputeSteve_Alaniz has a reputation beyond repute
Re: Joystick Output Values?

Please specify. Do you mean the joysticks that come in the kit or a different joystick? I have a non-kit game port joystick and a saitek joystick that runs through a chiclet. They are the reverse of each other.
The best way to find out is to use the dashboard viewer and look at the values in the OI screen.


good luck

Steve
  #4   Spotlight this post!  
Unread 17-01-2008, 21:19
compwiz2008's Avatar
compwiz2008 compwiz2008 is offline
Registered User
FRC #2139
 
Join Date: Nov 2007
Location: Las Vegas, Nevada
Posts: 11
compwiz2008 is an unknown quantity at this point
Smile Re: Joystick Output Values?

yeah.. oops. thinking error... I will edit my original post...
  #5   Spotlight this post!  
Unread 17-01-2008, 21:29
CyDrive's Avatar
CyDrive CyDrive is offline
Registered User
FRC #1203 (pandemonium)
Team Role: Mentor
 
Join Date: Apr 2007
Rookie Year: 2007
Location: West Babylon
Posts: 26
CyDrive is an unknown quantity at this point
Re: Joystick Output Values?

if you want just do a quick test
Code:
//This is assuming your controller is in port one of the OI
printf("p1_x= %d p1_y= %d \r",p1_x,p1_y);
  #6   Spotlight this post!  
Unread 17-01-2008, 22:40
compwiz2008's Avatar
compwiz2008 compwiz2008 is offline
Registered User
FRC #2139
 
Join Date: Nov 2007
Location: Las Vegas, Nevada
Posts: 11
compwiz2008 is an unknown quantity at this point
Smile Re: Joystick Output Values?

That is an excellent idea. I'm going to put the values onto the dashboardviewer, which will help with programming and also trimming the joystick.

To the post earlier: our team is using the standard kit joysticks.

Thanks for everyone's help!
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
Mixing Joystick Values for mecanum wheels Leav Programming 10 15-01-2006 14:51
Paint values capenga Programming 1 20-02-2005 13:25
Servo Values DanDon Motors 8 14-02-2005 15:49
Color Values WesleyBalmer Programming 3 15-01-2005 22:26
PWM Values... Ian W. Programming 4 17-03-2002 21:53


All times are GMT -5. The time now is 09:17.

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