Go to Post If you want to prove your worth, prove it by creation, not destruction. - DanL [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 31-01-2015, 13:30
ironmare ironmare is offline
Registered User
FRC #5072
 
Join Date: Jan 2015
Location: United States
Posts: 7
ironmare is an unknown quantity at this point
Program a dead zone?

Please help. We are using an xbox 360 usb joystick with mecanum wheels. After deploying our program (not touching the thumbstick) the wheels are spinning slowly on their own. We flick the left thumbstick and can get some wheels to stop every so often. We need help in seeing some LabView code to create a dead zone with a 0.1 so that it disregards the off center joystick input. Thank you!
Reply With Quote
  #2   Spotlight this post!  
Unread 31-01-2015, 14:11
Mark McLeod's Avatar
Mark McLeod Mark McLeod is online now
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,713
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Program a dead zone?

Here is one example.
A drawback to this one is that it will start motor power at the deadband value. Not necessarily an issue with drive motors that don't begin moving before .3, but more of an issue with mechanism motors that have much lower resistance to movement.
It can be rescaled with a little more trouble.

P.S.
Here is an example of rescaling.
Attached Thumbnails
Click image for larger version

Name:	DeadbandExample.png
Views:	134
Size:	22.7 KB
ID:	18075  Click image for larger version

Name:	DeadbandRescaledExample.png
Views:	109
Size:	26.8 KB
ID:	18083  
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 01-02-2015 at 07:47.
Reply With Quote
  #3   Spotlight this post!  
Unread 31-01-2015, 15:35
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,112
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: Program a dead zone?

This is the block diagram of the Deadband.vi we use. It subtracts the deadband size from the input value. If the result is less than zero it keeps it at zero. Other code can use the "In Deadband?" output to do things like maintain heading or activate a brake.
Attached Thumbnails
Click image for larger version

Name:	Deadband.png
Views:	122
Size:	15.3 KB
ID:	18078  
Reply With Quote
  #4   Spotlight this post!  
Unread 31-01-2015, 15:53
adciv adciv is offline
One Eyed Man
FRC #0836 (RoboBees)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2010
Location: Southern Maryland
Posts: 478
adciv is a name known to alladciv is a name known to alladciv is a name known to alladciv is a name known to alladciv is a name known to alladciv is a name known to all
Re: Program a dead zone?

Try calibrating your motor controllers.
__________________
Quote:
Originally Posted by texarkana View Post
I would not want the task of devising a system that 50,000 very smart people try to outwit.
Reply With Quote
  #5   Spotlight this post!  
Unread 01-02-2015, 00:56
pastelpony's Avatar
pastelpony pastelpony is offline
Programmer/Electrical
AKA: Zach M
FRC #3525 (Nuts and Bolts of Fury)
Team Role: Programmer
 
Join Date: Feb 2014
Rookie Year: 2013
Location: Waterbury, Connecticut
Posts: 152
pastelpony will become famous soon enough
Re: Program a dead zone?

We had the same issue. In the end, we found that calibrating the actual Xbox 360 controller led to no sudden jerks or movement of our mecanums. You might also want to calibrate your motor controllers.
__________________
Team 3525 Head Programmer (2014- ) - Java (Formerly LabVIEW)
Reply With Quote
  #6   Spotlight this post!  
Unread 01-02-2015, 20:53
Sohaib's Avatar
Sohaib Sohaib is online now
Registered User
AKA: Sohaib Nadeem
FRC #5036 (The Robo Devils)
Team Role: Coach
 
Join Date: Apr 2014
Rookie Year: 2013
Location: Toronto, Ontario
Posts: 129
Sohaib is a glorious beacon of lightSohaib is a glorious beacon of lightSohaib is a glorious beacon of lightSohaib is a glorious beacon of lightSohaib is a glorious beacon of light
Re: Program a dead zone?

If you disconnect your controller, and reconnect it, it should be centered. I don't know about the Xbox controller, but with the F310s this seems to fix the issue.

Going to advocate calibrating your motor controllers.

If you're using the Talon SR/SRX or Victor SP, speed controllers, they have a built in "deadband" of 4%. The Victor 888 has one of 5.4% and the Jaguar of 5.5%.
__________________

2014 Season:
- Drive Coach
- Rookie All-Star Award (GTR-E)
2015 Season:
- Driver
- Deans List Semi-Finalist (GTR-E)
2016 Season:
- Driver
- Alliance Captain (GTR-E)
Reply With Quote
  #7   Spotlight this post!  
Unread 02-02-2015, 13:50
ironmare ironmare is offline
Registered User
FRC #5072
 
Join Date: Jan 2015
Location: United States
Posts: 7
ironmare is an unknown quantity at this point
Re: Program a dead zone?

Thank you all for your help, re-coding the programming with the dead zone coding using your suggestions above worked!
Reply With Quote
  #8   Spotlight this post!  
Unread 06-02-2015, 14:41
Skyehawk's Avatar
Skyehawk Skyehawk is offline
Nuts N' Bolts
AKA: Skye Leake
FRC #0876 (Thunder Robotics)
Team Role: Mentor
 
Join Date: Nov 2012
Rookie Year: 2011
Location: Northwood, ND
Posts: 203
Skyehawk is a name known to allSkyehawk is a name known to allSkyehawk is a name known to allSkyehawk is a name known to allSkyehawk is a name known to allSkyehawk is a name known to all
Re: Program a dead zone?

Quote:
Originally Posted by Alan Anderson View Post
This is the block diagram of the Deadband.vi we use. It subtracts the deadband size from the input value. If the result is less than zero it keeps it at zero. Other code can use the "In Deadband?" output to do things like maintain heading or activate a brake.
quick question: How do you export labview code so you can just drop it in?
Reply With Quote
  #9   Spotlight this post!  
Unread 06-02-2015, 14:49
Mark McLeod's Avatar
Mark McLeod Mark McLeod is online now
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,713
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Program a dead zone?

Highlight what you want to copy.
Choose
Edit -> Create VI Snippet From Selection
A Save dialog appears to save it as a png.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
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 08:28.

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