Go to Post Playing fields outdoors in the snow and the only field faults were when you ran out of gas!...ahh the old days - ExTexan [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

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 08-02-2009, 12:23
mcristina444 mcristina444 is offline
Registered User
FRC #2078 (Robotic Ooze)
Team Role: Programmer
 
Join Date: Feb 2009
Rookie Year: 2008
Location: Covington, LA
Posts: 27
mcristina444 is an unknown quantity at this point
Exclamation labview:what is the joystick axis?

in labview i want to have the robot control speed not going in a linear line is want to to have more control at a lower speed. so i came up with the equasion : x axis squared/max input.. also i would do this same equasion with the y axis. the only thing that i cant find is the max input from the controller. is it 256 or 128? please help.
Reply With Quote
  #2   Spotlight this post!  
Unread 08-02-2009, 12:52
mcristina444 mcristina444 is offline
Registered User
FRC #2078 (Robotic Ooze)
Team Role: Programmer
 
Join Date: Feb 2009
Rookie Year: 2008
Location: Covington, LA
Posts: 27
mcristina444 is an unknown quantity at this point
Re: labview:what is the joystick axis?

mabe it is also called joystick axis output??
Reply With Quote
  #3   Spotlight this post!  
Unread 08-02-2009, 13:02
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,752
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: labview:what is the joystick axis?

It looks to me like the numbers are scaled between -1 and 1. If I remember right, the Y axis may seem backwards at first. pushing forwards is negative, pulling back is positive. HID must have been defined by a pilot.


Greg McKaskle
Reply With Quote
  #4   Spotlight this post!  
Unread 08-02-2009, 13:06
mcristina444 mcristina444 is offline
Registered User
FRC #2078 (Robotic Ooze)
Team Role: Programmer
 
Join Date: Feb 2009
Rookie Year: 2008
Location: Covington, LA
Posts: 27
mcristina444 is an unknown quantity at this point
Re: labview:what is the joystick axis?

so it isnot -158 to 158. or 0 to 256?
Reply With Quote
  #5   Spotlight this post!  
Unread 08-02-2009, 13:26
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,752
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: labview:what is the joystick axis?

Here is the full story. The values returned to the OS according to the HID standard are 16 bits, or -32k to 32k. To be send from DS to robot, they were scaled to -128 to 127.

Finally, to simplify the math and make things more consistent, most values to and from most I/O on the robot is in the range of -1 to 1 or 0 to 1. They are floating point numbers so that when the joystick is pushed half way it reads half, or 0.5. If you want it scaled back to any other range, just multiply.

Greg McKaskle
Reply With Quote
Reply


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:40.

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