Go to Post And your other point, "why a debate over a nonexistent rule?". Its summer, we're not building robots, and we're geeks. What else are we supposed to do? - EHaskins [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #7   Spotlight this post!  
Unread 21-02-2010, 14:20
Bryan Herbst's Avatar
Bryan Herbst Bryan Herbst is online now
Registered User
AKA: Bryan
FRC #2052 (KnightKrawler)
Team Role: Mentor
 
Join Date: Sep 2007
Rookie Year: 2007
Location: Minneapolis, Minnesota
Posts: 543
Bryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond reputeBryan Herbst has a reputation beyond repute
Re: switching the x & y on joy stick

Well since you do not have a 3-axis joystick you need to send something other than m_rightStick.getDirectionDegrees().

And wow, sorry, I just realized that you already have two different joysticks there. My bad! In any case, they still wont be able to give you a degree measurement.

Is the second parameter just a float (does getDirectionDegrees() return an int from 0 to 360 or a float from -1 to 1)? If so, I would replace m_rightStick.getDirectionDegrees() with m_rightStick.getX()
__________________
Team 2052- Knightkrawler
Mentor and volunteer
Reply With Quote
 


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
Joy stick function description Bruceb Technical Discussion 4 13-02-2009 14:40
Acceleration limiter on the joy stick Bruceb Technical Discussion 5 21-01-2009 18:53
Joy stick variables. Joshamuffin Programming 2 16-04-2008 17:49
Joy stick Sairamluap Control System 4 01-02-2008 16:04
Joy Stick CAD rcubes85 Inventor 0 26-01-2005 09:37


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

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