Go to Post "We just fundraised $5000 for registration, and you spent it all on balloons?" - [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 Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 08-05-2011, 21:31
Vikesrock's Avatar
Vikesrock Vikesrock is offline
Team 2175 Founder
AKA: Kevin O'Connor
no team
Team Role: Engineer
 
Join Date: Mar 2006
Rookie Year: 2007
Location: Manchester, NH
Posts: 3,305
Vikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond repute
Send a message via AIM to Vikesrock Send a message via MSN to Vikesrock Send a message via Yahoo to Vikesrock
Re: Broken 360 controller needs a dead zone

Creating a deadzone should be fairly easy. I would use a select VI. To feed the selector I would run the input through an absolute value then a "greater than" VI. For the True part of the Select VI you would have the unaltered input value and for the False you would feed 0.

I will suggest an alternative however. Depending on the joystick behavior, you may want to trim it instead of make a deadzone. If it has a constant or near constant offset, you can add or subtract the appropriate value before using the input to correct for the drift.

EDIT: Alternative suggestion removed due to Chris' post below.
__________________


2007 Wisconsin Regional Highest Rookie Seed & Regional Finalists (Thanks 930 & 2039)
2008 MN Regional Semifinalists (Thanks 2472 & 1756)
2009 Northstar Regional Semifinalists (Thanks 171 & 525)

Last edited by Vikesrock : 08-05-2011 at 21:34.
Reply With Quote
  #2   Spotlight this post!  
Unread 08-05-2011, 21:32
Chris is me's Avatar
Chris is me Chris is me is offline
no bag, vex only, final destination
AKA: Pinecone
FRC #0228 (GUS Robotics); FRC #2170 (Titanium Tomahawks)
Team Role: Mentor
 
Join Date: Dec 2008
Rookie Year: 2006
Location: Glastonbury, CT
Posts: 7,721
Chris is me has a reputation beyond reputeChris is me has a reputation beyond reputeChris is me has a reputation beyond reputeChris is me has a reputation beyond reputeChris is me has a reputation beyond reputeChris is me has a reputation beyond reputeChris is me has a reputation beyond reputeChris is me has a reputation beyond reputeChris is me has a reputation beyond reputeChris is me has a reputation beyond reputeChris is me has a reputation beyond repute
Send a message via AIM to Chris is me
Re: Broken 360 controller needs a dead zone

It's generally good practice to add dead zones to Xbox 360 controllers. They don't consistently return to any particular center point.
__________________
Mentor / Drive Coach: 228 (2016-?)
...2016 Waterbury SFs (with 3314, 3719), RIDE #2 Seed / Winners (with 1058, 6153), Carver QFs (with 503, 359, 4607)
Mentor / Consultant Person: 2170 (2017-?)
---
College Mentor: 2791 (2010-2015)
...2015 TVR Motorola Quality, FLR GM Industrial Design
...2014 FLR Motorola Quality / SFs (with 341, 4930)
...2013 BAE Motorola Quality, WPI Regional #1 Seed / Delphi Excellence in Engineering / Finalists (with 20, 3182)
...2012 BAE Imagery / Finalists (with 1519, 885), CT Xerox Creativity / SFs (with 2168, 118)
Student: 1714 (2009) - 2009 Minnesota 10,000 Lakes Regional Winners (with 2826, 2470)
2791 Build Season Photo Gallery - Look here for mechanism photos My Robotics Blog (Updated April 11 2014)
Reply With Quote
  #3   Spotlight this post!  
Unread 08-05-2011, 21:54
DFZXA DFZXA is offline
Registered User
FRC #3055 (Furious George)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2007
Location: Minnesota
Posts: 60
DFZXA is infamous around these parts
Re: Broken 360 controller needs a dead zone

Well yeah I guess it works fine with all my games except fallout 3 for some reason and minecraft on my computer. Those and my program are the only things it leans right on
Reply With Quote
  #4   Spotlight this post!  
Unread 11-05-2011, 20:43
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: Broken 360 controller needs a dead zone

What I'd do is use the in range and coerce function, and then either return zero or the value with a select. Remember to do it for each axis.
Reply With Quote
  #5   Spotlight this post!  
Unread 19-05-2011, 06:42
Wamp Wamp is offline
Registered User
no team
 
Join Date: May 2011
Location: Spain
Posts: 5
Wamp is an unknown quantity at this point
Re: Broken 360 controller needs a dead zone

Quote:
Originally Posted by DFZXA View Post
Well yeah I guess it works fine with all my games except fallout 3 for some reason and minecraft on my computer. Those and my program are the only things it leans right on
Thatīs because the videogames are the ones who manage the dead zone, not the console or the PC by themselves.

Videogames like Fallout, Deadly Premonition, etc, didnīt manage the dead zone at all, so if your controller is slightly "broken"... well, s**t happens.

Itīs a very common issue with the Xbox360 controller, if you are too rough playing (but there are FEW titles which donīt manage the dead zone, so chances that you never notice your controller is broken are high).

New and well conserved controllers work fine, so if you are not able to manage the dead zone, you can always buy a new one...
Reply With Quote
  #6   Spotlight this post!  
Unread 19-05-2011, 08:18
Jared Russell's Avatar
Jared Russell Jared Russell is offline
Taking a year (mostly) off
FRC #0254 (The Cheesy Poofs), FRC #0341 (Miss Daisy)
Team Role: Engineer
 
Join Date: Nov 2002
Rookie Year: 2001
Location: San Francisco, CA
Posts: 3,078
Jared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond repute
Re: Broken 360 controller needs a dead zone

I've noticed this on our 360 controllers, and for this reason I will encourage our team to use something like this as an FRC gamepad in the future.
Reply With Quote
  #7   Spotlight this post!  
Unread 19-05-2011, 18:03
Wamp Wamp is offline
Registered User
no team
 
Join Date: May 2011
Location: Spain
Posts: 5
Wamp is an unknown quantity at this point
Re: Broken 360 controller needs a dead zone

If drivers werenīt a problem, this would be nice:



So beautiful... Itīs for a "mecha (giant robot of massive destruction) simulator" for the Xbox1, Steel Battalion.

And back to the real world... if you dont like the 360īs just try Logitech gamepads, those are fine too.
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 20:48.

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