Go to Post High heels on a Segway takes quite a bit of adjustment - as I learned the hard way. - Jessica Boucher [more]
Home
Go Back   Chief Delphi > FIRST > General Forum
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 25-01-2014, 13:25
5339 5339 is offline
Registered User
FRC #5914
Team Role: Programmer
 
Join Date: Jan 2014
Rookie Year: 2104
Location: Caledonia, minnesota
Posts: 9
5339 is an unknown quantity at this point
Logitech extreme 3d pro

How to program the throttle on the 3d pro? What are the inputs? We r programing in Java.
Reply With Quote
  #2   Spotlight this post!  
Unread 25-01-2014, 13:34
PikaDotus's Avatar
PikaDotus PikaDotus is offline
CEO
FRC #3501
Team Role: Leadership
 
Join Date: Dec 2012
Rookie Year: 2013
Location: Sunnyvale, CA
Posts: 9
PikaDotus is an unknown quantity at this point
Re: Logitech extreme 3d pro

On this joystick, the x-axis (left-right) is axis 1; the y-axis (up-down) is axis 2; the z-axis (twist) is axis 3; the throttle (on the bottom of the base of the stick) is axis 4.

To access these axes in Java:

Code:
Joystick joystick = new Joystick(1);
joystick.getRawAxis(4);
// etc.
You can also use the joystick methods that don't use the raw axes, however I like using the raw ones.
__________________
Technical debt is investing in the present using the future as collateral.

Last edited by PikaDotus : 25-01-2014 at 13:36.
Reply With Quote
  #3   Spotlight this post!  
Unread 25-01-2014, 13:34
Whippet's Avatar
Whippet Whippet is offline
MIT Class of 2020
AKA: Luis Trueba
FRC #4301 (New Tech Narcissists)
Team Role: Alumni
 
Join Date: Feb 2011
Rookie Year: 2011
Location: Cambridge, MA
Posts: 1,187
Whippet has a reputation beyond reputeWhippet has a reputation beyond reputeWhippet has a reputation beyond reputeWhippet has a reputation beyond reputeWhippet has a reputation beyond reputeWhippet has a reputation beyond reputeWhippet has a reputation beyond reputeWhippet has a reputation beyond reputeWhippet has a reputation beyond reputeWhippet has a reputation beyond reputeWhippet has a reputation beyond repute
Send a message via Yahoo to Whippet
Re: Logitech extreme 3d pro

Quote:
Originally Posted by 5339 View Post
How to program the throttle on the 3d pro? What are the inputs? We r programing in Java.
Just program it the same way you program other axes. The axes are as follows:

Axis 1: x
Axis 2: y
Axis 3: z (Twist)
Axis 4: Throttle
__________________
2010: FRC 3043, Build Assistant
2011: FRC 3043, Head of Minibot subteam; FLL 12762, Team Captain
2012: FRC 3043, Electrical; FLL 12762, Team Captain; FTC 5670, Team Captain
2013: FRC 4301, Electrical, Team Co-Captain
2014: FRC 4301, Electrical/Programming, Team Co-Captain
2015: FRC 4301, Electrical/Programming, Team Captain
2016: FRC 4301, Chief Technical Officer; FTC 10860, 10861, and 11004: Mentor. Winner, Hub City Regional (3310 & 4063)
Reply With Quote
  #4   Spotlight this post!  
Unread 25-01-2014, 13:56
5339 5339 is offline
Registered User
FRC #5914
Team Role: Programmer
 
Join Date: Jan 2014
Rookie Year: 2104
Location: Caledonia, minnesota
Posts: 9
5339 is an unknown quantity at this point
Re: Logitech extreme 3d pro

We are trying to set the speed for our robot using the throttle. Can you help us with that?
Reply With Quote
  #5   Spotlight this post!  
Unread 25-01-2014, 14:18
EricH's Avatar
EricH EricH is offline
New year, new team
FRC #1197 (Torbots)
Team Role: Engineer
 
Join Date: Jan 2005
Rookie Year: 2003
Location: SoCal
Posts: 19,813
EricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond repute
Re: Logitech extreme 3d pro

Quote:
Originally Posted by 5339 View Post
We are trying to set the speed for our robot using the throttle. Can you help us with that?
Speaking from experience: Why?

Most folks around here just use the Y-axis to control speed; if you're in single-stick drive, X generally becomes your turning control. (For 2-stick drive, AKA "tank", each Y-axis controls one side of the drivetrain.) Using the throttle to control speed just seems like you're overly complicating things.
__________________
Past teams:
2003-2007: FRC0330 BeachBots
2008: FRC1135 Shmoebotics
2012: FRC4046 Schroedinger's Dragons

"Rockets are tricky..."--Elon Musk

Reply With Quote
  #6   Spotlight this post!  
Unread 27-01-2014, 19:59
5339 5339 is offline
Registered User
FRC #5914
Team Role: Programmer
 
Join Date: Jan 2014
Rookie Year: 2104
Location: Caledonia, minnesota
Posts: 9
5339 is an unknown quantity at this point
Re: Logitech extreme 3d pro

Thanks for you reply. Our robot moves erratic and hard to control that is why we are trying to use the throttle to slow it down at times to gain better control but we have been unsuccessful att.
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 14:31.

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