Go to Post GP and the Scout Law are high ideals that only the best will achieve and live everyday. - Al Skierkiewicz [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 11-03-2011, 22:53
jhellr13 jhellr13 is offline
Registered User
FRC #4272
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2010
Location: US
Posts: 187
jhellr13 is an unknown quantity at this point
Joystick question

what is axis 3(throttle) on the logitech attack 3 joystick? Is the throttle the same as button 1, the trigger? I wouldn't think so. Is it the adjuster at the bottom with the positive and negative symbols?

Thanks
Reply With Quote
  #2   Spotlight this post!  
Unread 11-03-2011, 22:57
The Lucas's Avatar
The Lucas The Lucas is offline
CaMOElot, it is a silly place
AKA: My First Name is really "The" (or Brian)
FRC #0365 (The Miracle Workerz); FRC#1495 (AGR); FRC#4342 (Demon)
Team Role: Mentor
 
Join Date: Mar 2002
Rookie Year: 2001
Location: Dela-Where?
Posts: 1,564
The Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond repute
Send a message via AIM to The Lucas
Re: Joystick question

Quote:
Originally Posted by jhellr13 View Post
Is it the adjuster at the bottom with the positive and negative symbols?
Bingo! You didn't really need help
__________________
Electrical & Programming Mentor ---Team #365 "The Miracle Workerz"
Programming Mentor ---Team #4342 "Demon Robotics"
Founding Mentor --- Team #1495 Avon Grove High School
2007 CMP Chairman's Award - Thanks to all MOE members (and others) past and present who made it a reality.
Robot Inspector
"I don't think I'm ever more ''aware'' than I am right after I burn my thumb with a soldering iron"
Reply With Quote
  #3   Spotlight this post!  
Unread 11-03-2011, 23:01
jhellr13 jhellr13 is offline
Registered User
FRC #4272
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2010
Location: US
Posts: 187
jhellr13 is an unknown quantity at this point
Re: Joystick question

Quote:
Originally Posted by The Lucas View Post
Bingo! You didn't really need help
Great. Now i have another question for you. Our robot this year was initially too fast, so we have a range and coerce function attached to both the x and y parts of our arcade drive in the code. It is currently set at i think .8 all around. Does axis 3 take away the need for this range and coerce function? Like if i had it all the way down, would it be set at 0, and if all the way towards the positive, 1? Would axis 3 pretty much act as a speed controller?
Reply With Quote
  #4   Spotlight this post!  
Unread 11-03-2011, 23:27
WizenedEE's Avatar
WizenedEE WizenedEE is offline
Registered User
AKA: Adam
FRC #3238 (Cyborg Ferrets)
Team Role: Leadership
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Anacortes, WA
Posts: 395
WizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to all
Re: Joystick question

The throttle just adjusts the value returned by the vi, nothing else.

What our team did is multiplied the value of the joysticks by the throttle value, so we can have a slower speed.

It's probably not a good idea to coerce the joystick value, because it's much more natural for the drivers to have a linear joystick to speed relationship, rather than a linear one and a flat part. Multiply by .8 (Or the throttle value!) instead.

On many joysticks, keep in mind that the up position is negative (just like the Y axis). Also keep in mind that it goes from -1 to 1, not 0 to 1, so if you want to use it as a throttle, make sure you make it a value from 0 to 1 or your robot will run backwards half the time (which actually can be useful, but probably not for competition).
Reply With Quote
  #5   Spotlight this post!  
Unread 11-03-2011, 23:33
jhellr13 jhellr13 is offline
Registered User
FRC #4272
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2010
Location: US
Posts: 187
jhellr13 is an unknown quantity at this point
Re: Joystick question

Quote:
Originally Posted by WizenedEE View Post
The throttle just adjusts the value returned by the vi, nothing else.

What our team did is multiplied the value of the joysticks by the throttle value, so we can have a slower speed.

It's probably not a good idea to coerce the joystick value, because it's much more natural for the drivers to have a linear joystick to speed relationship, rather than a linear one and a flat part. Multiply by .8 (Or the throttle value!) instead.

On many joysticks, keep in mind that the up position is negative (just like the Y axis). Also keep in mind that it goes from -1 to 1, not 0 to 1, so if you want to use it as a throttle, make sure you make it a value from 0 to 1 or your robot will run backwards half the time (which actually can be useful, but probably not for competition).
Yeah true. I forgot about the negative numbers. But is their anyway for axis 3 to work as a speed controller instead of having a set constant at .8 and -.8? We also have it so when the trigger is pushed, everything drops to .5 and -.5. This is for easier movement deploying the minibot. But if axis 3 worked as a speed controller, it would make this a lot easier because the drivers would be able to constantly adjust the speed.
Reply With Quote
  #6   Spotlight this post!  
Unread 12-03-2011, 00:02
WizenedEE's Avatar
WizenedEE WizenedEE is offline
Registered User
AKA: Adam
FRC #3238 (Cyborg Ferrets)
Team Role: Leadership
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Anacortes, WA
Posts: 395
WizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to all
Re: Joystick question

Take axis 1 and 2 (or just 2 if you're doing tank drive) and divide them by ((Axis 3 - 1)/2)

Basically make axis 3 from 0 to 1 and divide your other axes by it.

If you're set on coercing it, you can do the same thing, then negate the value and put the negated value for the lower bound and the normal value for the upper bound.
Reply With Quote
  #7   Spotlight this post!  
Unread 12-03-2011, 00:21
The Lucas's Avatar
The Lucas The Lucas is offline
CaMOElot, it is a silly place
AKA: My First Name is really "The" (or Brian)
FRC #0365 (The Miracle Workerz); FRC#1495 (AGR); FRC#4342 (Demon)
Team Role: Mentor
 
Join Date: Mar 2002
Rookie Year: 2001
Location: Dela-Where?
Posts: 1,564
The Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond repute
Send a message via AIM to The Lucas
Re: Joystick question

Quote:
Originally Posted by WizenedEE View Post
Take axis 1 and 2 (or just 2 if you're doing tank drive) and divide them by ((Axis 3 - 1)/2)

Basically make axis 3 from 0 to 1 and divide your other axes by it.
I think you mean multiply by the Axis 3 scale factor ((Axis 3 + 1)/2) (+ so it stays positive). It is getting late... Dividing by a factor ranging from 0-1 would scale up the joystick, making it faster. If you want to consider a more advanced scale function where you can move slowly for a select part of the joystick range then quickly ramp up to full speed read this white paper
__________________
Electrical & Programming Mentor ---Team #365 "The Miracle Workerz"
Programming Mentor ---Team #4342 "Demon Robotics"
Founding Mentor --- Team #1495 Avon Grove High School
2007 CMP Chairman's Award - Thanks to all MOE members (and others) past and present who made it a reality.
Robot Inspector
"I don't think I'm ever more ''aware'' than I am right after I burn my thumb with a soldering iron"
Reply With Quote
  #8   Spotlight this post!  
Unread 12-03-2011, 13:16
jhellr13 jhellr13 is offline
Registered User
FRC #4272
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2010
Location: US
Posts: 187
jhellr13 is an unknown quantity at this point
Re: Joystick question

Quote:
Originally Posted by The Lucas View Post
I think you mean multiply by the Axis 3 scale factor ((Axis 3 + 1)/2) (+ so it stays positive). It is getting late... Dividing by a factor ranging from 0-1 would scale up the joystick, making it faster. If you want to consider a more advanced scale function where you can move slowly for a select part of the joystick range then quickly ramp up to full speed read this white paper
Thanks for the link. It helps a little, but i still am confused. Can i use the axis 3 controller instead of having my arcade drive work at .8 and -.8? Like is it possible to have it so when the axis 3 controller is down all the way, the robot moves at lets say .2, halfway .5 and full be .8? Can this be done?
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


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

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