Go to Post I wouldn't need a bullet proof vest I would need bullet proof shorts. - rees2001 [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 13-02-2009, 15:18
Norton Norton is offline
Computer Engineering
FRC #0383 (The Brazilian Machine)
Team Role: Mentor
 
Join Date: Jan 2009
Rookie Year: 2004
Location: Brazil
Posts: 3
Norton is an unknown quantity at this point
Send a message via MSN to Norton
Playstation controller

We are going to use a playstation like USB controller and Its working pretty well, but the analogs have a very small range, in the middle of the physical range it reports 128 to GET RAW or 1 to Joystick GET, how could I optimize this???

I tried to use the scale, but no luck...

Thanks
Reply With Quote
  #2   Spotlight this post!  
Unread 13-02-2009, 15:21
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Playstation controller

The joystick Get() method returns a floating-point value from -1 to +1. The neutral "middle" value should be 0. The range is not as important as the resolution, and the resolution is basically set by the hardware implementation in the controller.
Reply With Quote
  #3   Spotlight this post!  
Unread 14-02-2009, 12:48
Norton Norton is offline
Computer Engineering
FRC #0383 (The Brazilian Machine)
Team Role: Mentor
 
Join Date: Jan 2009
Rookie Year: 2004
Location: Brazil
Posts: 3
Norton is an unknown quantity at this point
Send a message via MSN to Norton
Re: Playstation controller

Ok Alan... I know that, I would like to know if there is a way to "distribute" the axis in a more even way . . .

but I tried it on the computer and got the same results, thanks
Reply With Quote
  #4   Spotlight this post!  
Unread 14-02-2009, 20:28
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: Playstation controller

What you may be looking for is a nonlinear mapping. You might try squaring the joystick value before sending it to the motor. That will give you a more gradual action away from zero. Going the opposite directly, a sign preserving square root would be interesting.

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
playstation first controller starsROBOTICS Programming 4 23-03-2008 23:28
playstation 2 controller to transmitter starsROBOTICS Control System 0 22-03-2008 21:58
Playstation controller code help haywirerobotics Programming 4 25-01-2007 00:16
playstation controller conversion jpyro Electrical 6 31-01-2006 17:52
Connect Playstation Controller to PC USB. kirov Control System 1 28-02-2005 08:24


All times are GMT -5. The time now is 21:33.

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