Go to Post When you find yourself saying multiple times at one regional "...never coding at 1am in the hotel again... ...never again..." - BigJ [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 18-01-2016, 19:46
Maxwell777's Avatar
Maxwell777 Maxwell777 is offline
Is allowed to touch stuff now
AKA: Jackson Gray
FRC #0842 (Falcon Robotics)
Team Role: Programmer
 
Join Date: Aug 2013
Rookie Year: 2014
Location: Phoenix, AZ
Posts: 72
Maxwell777 has a spectacular aura aboutMaxwell777 has a spectacular aura aboutMaxwell777 has a spectacular aura about
How can I remove/adjust the 4% deadband on a TalonSRX?

Pretty much the title. I'm working in java, but I haven't seen any way to remove/set the 4% deadband over CAN in the other languages either. I've looked the software reference manual and only found a few mentions of deadband, but nothing that would let me change it.
__________________
But why?
  #2   Spotlight this post!  
Unread 18-01-2016, 20:59
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,102
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: How can I remove/adjust the 4% deadband on a TalonSRX?


Why do you want to change it?


  #3   Spotlight this post!  
Unread 18-01-2016, 21:50
sastoller sastoller is offline
Registered User
FRC #2122 (Team Tators)
Team Role: Mentor
 
Join Date: Dec 2013
Rookie Year: 2008
Location: Idaho
Posts: 145
sastoller is a splendid one to beholdsastoller is a splendid one to beholdsastoller is a splendid one to beholdsastoller is a splendid one to beholdsastoller is a splendid one to beholdsastoller is a splendid one to behold
Re: How can I remove/adjust the 4% deadband on a TalonSRX?

I'm not a programmer, but is there any reason you couldn't simply scale your output to the Talon to work around the deadzone with a simple transfer function?

e.g. Take an input value of 1% forward to output 5% forward to the talon. Wouldn't this effectively eliminate any deadzone?
__________________
2014 to present: Mentor on 2122
2008: Student on 2468

Maintain a healthy fear of what can go wrong
  #4   Spotlight this post!  
Unread 18-01-2016, 23:33
nandeeka's Avatar
nandeeka nandeeka is offline
Registered User
FRC #1868
Team Role: Programmer
 
Join Date: May 2014
Rookie Year: 2013
Location: United States
Posts: 53
nandeeka is on a distinguished road
Re: How can I remove/adjust the 4% deadband on a TalonSRX?

Why do you want to eliminate the deadzone? If one of your joysticks is slightly off center, you do not want the robot to move without user input. Also, at such low voltages, the motor would be unable to overcome the friction on its gearbox and stall, unnecessarily damaging it.
  #5   Spotlight this post!  
Unread 19-01-2016, 00:45
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,102
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: How can I remove/adjust the 4% deadband on a TalonSRX?

Quote:
Originally Posted by nandeeka View Post
Also, at such low voltages, the motor would be unable to overcome the friction on its gearbox and stall, unnecessarily damaging it.
If the voltage is so low that the motor can't overcome the friction of the gearbox, there won't be enough current to damage the motor.


  #6   Spotlight this post!  
Unread 19-01-2016, 09:57
Jonathan L. Jonathan L. is offline
Programmer alumnus, mentor, and CSA
FRC #1094 (Channel Cats)
 
Join Date: Jan 2013
Rookie Year: 2011
Location: St. Louis MO
Posts: 79
Jonathan L. is a jewel in the roughJonathan L. is a jewel in the roughJonathan L. is a jewel in the roughJonathan L. is a jewel in the rough
Re: How can I remove/adjust the 4% deadband on a TalonSRX?

I'm not exprenced in java but in LabVIEW there is an input when initailizing the motor called "Eliminate Deadband".

We used this once in 2012 when we had a turret. The turret needed a certain amount of voltage to move, which was less than the deadband of the motor controller. Giving the motor the voltage of the deadband, would move the turret quickly and it was hard to aim. We did not want to reduce the gearing because that would make it hard to aim before the match.
Attached Thumbnails
Click image for larger version

Name:	Screenshot (161).png
Views:	28
Size:	13.7 KB
ID:	19811  

Last edited by Jonathan L. : 19-01-2016 at 10:04.
  #7   Spotlight this post!  
Unread 19-01-2016, 10:33
philso philso is offline
Mentor
FRC #2587
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Houston, Tx
Posts: 938
philso has a reputation beyond reputephilso has a reputation beyond reputephilso has a reputation beyond reputephilso has a reputation beyond reputephilso has a reputation beyond reputephilso has a reputation beyond reputephilso has a reputation beyond reputephilso has a reputation beyond reputephilso has a reputation beyond reputephilso has a reputation beyond reputephilso has a reputation beyond repute
Re: How can I remove/adjust the 4% deadband on a TalonSRX?

Quote:
Originally Posted by Jonathan L. View Post
I'm not exprenced in java but in LabVIEW there is an input when initailizing the motor called "Eliminate Deadband".

We used this once in 2012 when we had a turret. The turret needed a certain amount of voltage to move, which was less than the deadband of the motor controller. Giving the motor the voltage of the deadband, would move the turret quickly and it was hard to aim. We did not want to reduce the gearing because that would make it hard to aim before the match.
If your objective is to overcome "sticktion", it should be possible to command the motor controller to apply a high power for a short time, then drop the power down to the intended level. The software in the industrial motor controllers I work on in my day job (and our competitors) have a built-in function that does this for loads with high starting inertia.
  #8   Spotlight this post!  
Unread 19-01-2016, 11:45
nandeeka's Avatar
nandeeka nandeeka is offline
Registered User
FRC #1868
Team Role: Programmer
 
Join Date: May 2014
Rookie Year: 2013
Location: United States
Posts: 53
nandeeka is on a distinguished road
Re: How can I remove/adjust the 4% deadband on a TalonSRX?

Quote:
Originally Posted by Ether View Post
If the voltage is so low that the motor can't overcome the friction of the gearbox, there won't be enough current to damage the motor.
Sorry about that. Thanks for letting me know.
  #9   Spotlight this post!  
Unread 19-01-2016, 23:34
Maxwell777's Avatar
Maxwell777 Maxwell777 is offline
Is allowed to touch stuff now
AKA: Jackson Gray
FRC #0842 (Falcon Robotics)
Team Role: Programmer
 
Join Date: Aug 2013
Rookie Year: 2014
Location: Phoenix, AZ
Posts: 72
Maxwell777 has a spectacular aura aboutMaxwell777 has a spectacular aura aboutMaxwell777 has a spectacular aura about
Re: How can I remove/adjust the 4% deadband on a TalonSRX?

Quote:
Originally Posted by Ether View Post

Why do you want to change it?



For future reference and because I have a bag motor on a 1/1 gearbox (just versaplanetary to a hex shaft) that I want to apply a velocity control loop to at a fairly low speed (2-3 rotations per second). I'm not certain, but I believe deadband is screwing with my closed loop and I want to reduce (probably not entirely eliminate it) the dead band to make sure. But also, like I said, mostly so I know how to and am able to if the need arises. I am aware of the reason the deadband exists, I just want a bit more fine control of the motor.
__________________
But why?
Closed Thread


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 02:37.

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