Go to Post A thread already exists (and boy, does it exist!) on the topic: - Billfred [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 Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 04-10-2013, 23:27
mkaa00x's Avatar
mkaa00x mkaa00x is offline
Momo
AKA: Mohammad Al-Ahdal
FRC #4627 (Iron Manning)
Team Role: RoboCoach
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Calgary, Canada
Posts: 38
mkaa00x is an unknown quantity at this point
Exclamation Test controllers without Robot?[JAVA]

Hey guys, Okay so I know this has been answered before but I need an answer specifically for java.

I have smart dashboard and no robot in front of me. How can I test for the joystick axis?

*I am using a six(well seven)axis PS3 Controller and wanna get it to work like without using any code on the robot.... any help???*

Btw, I can't use Windows Game Controller properties because it doesn't really give me the raw axis-es and I can't really use the default ones because I've edited them for reasons... Help?
Reply With Quote
  #2   Spotlight this post!  
Unread 04-10-2013, 23:31
RufflesRidge RufflesRidge is offline
Registered User
no team
 
Join Date: Jan 2012
Location: USA
Posts: 989
RufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant future
Re: Test controllers without Robot?[JAVA]

If you have the DS installed (or have the LV runtime for some other reason) you can use this:
http://firstforge.wpi.edu/sf/frs/do/...stick_explorer
Reply With Quote
  #3   Spotlight this post!  
Unread 04-10-2013, 23:38
mkaa00x's Avatar
mkaa00x mkaa00x is offline
Momo
AKA: Mohammad Al-Ahdal
FRC #4627 (Iron Manning)
Team Role: RoboCoach
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Calgary, Canada
Posts: 38
mkaa00x is an unknown quantity at this point
Re: Test controllers without Robot?[JAVA]

Quote:
Originally Posted by RufflesRidge View Post
If you have the DS installed (or have the LV runtime for some other reason) you can use this:
http://firstforge.wpi.edu/sf/frs/do/...stick_explorer
Woah thanks man (or lady, I won't judge by name ) This only goes to 6 axis max... I'll try to see if I can manually reprogram and re-enable them, THANKS
Reply With Quote
  #4   Spotlight this post!  
Unread 05-10-2013, 04:10
Redo91's Avatar
Redo91 Redo91 is offline
Registered User
AKA: Justin
no team
Team Role: Engineer
 
Join Date: Dec 2006
Rookie Year: 2006
Location: Carlsbad
Posts: 149
Redo91 is a glorious beacon of lightRedo91 is a glorious beacon of lightRedo91 is a glorious beacon of lightRedo91 is a glorious beacon of lightRedo91 is a glorious beacon of lightRedo91 is a glorious beacon of light
Re: Test controllers without Robot?[JAVA]

Perhaps MotioninJoy can be of some help?

I use it for my PS3 controller to play games on my computer.
__________________
Team 1296-Full Metal Jackets
Alumni 2009
Mentor 2009-2014

Team 624-CRyptonite
Mentor 2014-2015
Reply With Quote
  #5   Spotlight this post!  
Unread 05-10-2013, 10:52
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,566
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Test controllers without Robot?[JAVA]

The driver station only reads 6 axes. If you want the 7th axis, you need to use a remapping program and get rid of one of the other axes.
Reply With Quote
  #6   Spotlight this post!  
Unread 05-10-2013, 13:29
SoftwareBug2.0's Avatar
SoftwareBug2.0 SoftwareBug2.0 is offline
Registered User
AKA: Eric
FRC #1425 (Error Code Xero)
Team Role: Mentor
 
Join Date: Aug 2004
Rookie Year: 2004
Location: Tigard, Oregon
Posts: 486
SoftwareBug2.0 has a brilliant futureSoftwareBug2.0 has a brilliant futureSoftwareBug2.0 has a brilliant futureSoftwareBug2.0 has a brilliant futureSoftwareBug2.0 has a brilliant futureSoftwareBug2.0 has a brilliant futureSoftwareBug2.0 has a brilliant futureSoftwareBug2.0 has a brilliant futureSoftwareBug2.0 has a brilliant futureSoftwareBug2.0 has a brilliant futureSoftwareBug2.0 has a brilliant future
Re: Test controllers without Robot?[JAVA]

Quote:
Originally Posted by Joe Ross View Post
The driver station only reads 6 axes. If you want the 7th axis, you need to use a remapping program and get rid of one of the other axes.
I've never really explored how the drivers' station works, but if you are writing your own remapping software then you could do something funny like multiplex the bits of multiple axes together and then de-multiplex them on the other side.

So for example, if each axis is normally 16 bits you could make your remapper program squeeze two in if you allocated 8 bits to each.

On computer:
Code:
uint16_t axis_4_in,axis_7_in,axis_4_out;
axis_4_out=(axis_4_in&0xff00) | (axis_7_in>>8);
On robot:
Code:
uint16_t axis_4_in,axis_4_out,axis_7_out;
axis_4_out=axis_4_in&0xff00;
axis_7_out=axis_4_in<<8;
This would discard the lower eight bits, but presumably you don't need more than 256 different positions for each axis anyway.

There may be some simpler way to do this like just opening a TCP stream or something; again, I haven't really looked into what you can do with the drivers' station.
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 13:39.

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