Go to Post For those of you who don't want to read a block of text: Respect the Tools. - Andrew Schreiber [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
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 03-03-2015, 17:44
Sparkyshires Sparkyshires is offline
Registered User
AKA: Michael Shires
FRC #0384 (Sparky)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2006
Location: Virginia
Posts: 226
Sparkyshires is an unknown quantity at this point
talon srx SetVoltageRampRate disabling motor controllers

Hello all,

So my team is using the talon srx motor controllers this year. I was attempting to use the SetVoltageRampRate function for autonomous, but when I put the lines in the motor controllers don't output anything at all! I've tried putting them in different sections of the code, nothing works. If you're interested, here's the code:
Code:
	FR->SetVoltageRampRate(6.0);
	FL->SetVoltageRampRate(6.0);
	RR->SetVoltageRampRate(6.0);
	RL->SetVoltageRampRate(6.0);
this is called once in the beginning of autonomous. I've also tried it with the value 1000, that does not work either :/ any suggestions?
__________________
"Measure with a micrometer, mark with chalk, cut with an axe."
Reply With Quote
  #2   Spotlight this post!  
Unread 03-03-2015, 18:05
wireties's Avatar
wireties wireties is offline
Principal Engineer
AKA: Keith Buchanan
FRC #1296 (Full Metal Jackets)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2004
Location: Rockwall, TX
Posts: 1,169
wireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond repute
Send a message via AIM to wireties
Re: talon srx SetVoltageRampRate disabling motor controllers

It will take 2 seconds to get to max output. Is that the problem, were you expecting such a long ramp? Is your autonomous code running for the correct amount of time?
__________________
Fast, cheap or working - pick any two!
Reply With Quote
  #3   Spotlight this post!  
Unread 03-03-2015, 18:12
Sparkyshires Sparkyshires is offline
Registered User
AKA: Michael Shires
FRC #0384 (Sparky)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2006
Location: Virginia
Posts: 226
Sparkyshires is an unknown quantity at this point
Re: talon srx SetVoltageRampRate disabling motor controllers

No, that's the problem, I don't get ANY motor output. And it is definitely just those lines. I comment them out, it works, I comment those four lines back in, and I get zero motor movement. I've left it for about 2 minutes thinking maybe it was just a slow ramp, but the motors do not change :/ Is there a different set function you have to call after using the SetVoltageRampRate? Is there something in the web interface you have to do? I'm running it through CAN if that helps, but like I said it's not a wiring issue, it works perfectly until I put those lines in then it stops doing any motor output.
__________________
"Measure with a micrometer, mark with chalk, cut with an axe."
Reply With Quote
  #4   Spotlight this post!  
Unread 03-03-2015, 18:43
ozrien's Avatar
ozrien ozrien is offline
Omar Zrien
AKA: Omar
no team
Team Role: Mentor
 
Join Date: Sep 2006
Rookie Year: 2003
Location: Sterling Heights, MI
Posts: 521
ozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant future
Re: talon srx SetVoltageRampRate disabling motor controllers

Please grab the self-test results when a Talon SRX is not meeting your expectations. That's always the first step.

Also check the DS Messages view on the right side for anything. If the view is not empty, correct the problems listed in the messages listview.
Reply With Quote
  #5   Spotlight this post!  
Unread 03-03-2015, 19:47
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: talon srx SetVoltageRampRate disabling motor controllers

You are also setting an actual motor output value somewhere, right? Just configuring the ramp rate doesn't tell the Talon to drive anything. Based on your commenting the lines in/out and having it fail/work, I don't think you're being so silly, but I just want to make sure.
Reply With Quote
  #6   Spotlight this post!  
Unread 04-03-2015, 08:19
Sparkyshires Sparkyshires is offline
Registered User
AKA: Michael Shires
FRC #0384 (Sparky)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2006
Location: Virginia
Posts: 226
Sparkyshires is an unknown quantity at this point
Re: talon srx SetVoltageRampRate disabling motor controllers

Yeah, I am. I'm setting them all to 1.0 for autonomous. do you maybe need to tell it to monitor a specific pdp port or something? I'm at a loss because supposedly it just works, and the documentation for this section of the software is lacking a bit for trouble shooting.
__________________
"Measure with a micrometer, mark with chalk, cut with an axe."
Reply With Quote
  #7   Spotlight this post!  
Unread 04-03-2015, 08:43
FrankJ's Avatar
FrankJ FrankJ is offline
Robot Mentor
FRC #2974 (WALT)
Team Role: Mentor
 
Join Date: Feb 2011
Rookie Year: 2009
Location: Marietta GA
Posts: 1,906
FrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond repute
Re: talon srx SetVoltageRampRate disabling motor controllers

The Talon programing manual (pg. 63) implies the throttle range is 1023 to -1023. 1 is essentially 0? I know the joy stick output is 1 to -1 but maybe the gets scaled somewhere that is not obvious before being sent to the talon?
__________________
If you don't know what you should hook up then you should read a data sheet
Reply With Quote
  #8   Spotlight this post!  
Unread 04-03-2015, 10:46
wireties's Avatar
wireties wireties is offline
Principal Engineer
AKA: Keith Buchanan
FRC #1296 (Full Metal Jackets)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2004
Location: Rockwall, TX
Posts: 1,169
wireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond repute
Send a message via AIM to wireties
Re: talon srx SetVoltageRampRate disabling motor controllers

Quote:
Originally Posted by FrankJ View Post
The Talon programing manual (pg. 63) implies the throttle range is 1023 to -1023. 1 is essentially 0? I know the joy stick output is 1 to -1 but maybe the gets scaled somewhere that is not obvious before being sent to the talon?
We are passing -1.0 to 1.0 to the Set() function and using the SetVoltageRampRate() with no problems. It has to be something else.

Did you by chance set the limits to normally closed at some point and leave them that way? Check the status using the web interface and see if something looks goofy. What revision of the firmware is on the Talons?
__________________
Fast, cheap or working - pick any two!
Reply With Quote
  #9   Spotlight this post!  
Unread 04-03-2015, 12:05
Sparkyshires Sparkyshires is offline
Registered User
AKA: Michael Shires
FRC #0384 (Sparky)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2006
Location: Virginia
Posts: 226
Sparkyshires is an unknown quantity at this point
Re: talon srx SetVoltageRampRate disabling motor controllers

Quote:
Originally Posted by FrankJ View Post
The Talon programing manual (pg. 63) implies the throttle range is 1023 to -1023. 1 is essentially 0? I know the joy stick output is 1 to -1 but maybe the gets scaled somewhere that is not obvious before being sent to the talon?
Nope, just like every other motor controller in FRC, the range is -1.0 to 1.0. Again, when I comment those four lines out it works perfectly with all it's sweet features. The talon SRX is a really amazing piece of electronics.

Quote:
Did you by chance set the limits to normally closed at some point and leave them that way? Check the status using the web interface and see if something looks goofy. What revision of the firmware is on the Talons?
I'll get back to you this afternoon at around 4:45 once I get to our shop. Is there any specific setting that they have to be at? We're not wiring a limit switch in so I really haven't bothered with the NO or NC options in the web interface. Fingers crossed that that's it!

Also, would you mind posting your applicable code? Just so I can see if perhaps I'm missing some basic issue?
__________________
"Measure with a micrometer, mark with chalk, cut with an axe."
Reply With Quote
  #10   Spotlight this post!  
Unread 04-03-2015, 17:03
Sparkyshires Sparkyshires is offline
Registered User
AKA: Michael Shires
FRC #0384 (Sparky)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2006
Location: Virginia
Posts: 226
Sparkyshires is an unknown quantity at this point
Re: talon srx SetVoltageRampRate disabling motor controllers

And I'm running hardware revision 1.4, bootloader revision 2.6, Firmware revision 0.28. And all of them are set to coast mode, and normally opened on both forward and reverse limit switch.
__________________
"Measure with a micrometer, mark with chalk, cut with an axe."
Reply With Quote
  #11   Spotlight this post!  
Unread 04-03-2015, 17:07
ozrien's Avatar
ozrien ozrien is offline
Omar Zrien
AKA: Omar
no team
Team Role: Mentor
 
Join Date: Sep 2006
Rookie Year: 2003
Location: Sterling Heights, MI
Posts: 521
ozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant future
Re: talon srx SetVoltageRampRate disabling motor controllers

Unrelated but......
Firmware 0.28? Did you read rule R59? You must update the Talons to be FRC-legal (1.1 or greater).
Reply With Quote
  #12   Spotlight this post!  
Unread 04-03-2015, 18:02
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: talon srx SetVoltageRampRate disabling motor controllers

Quote:
Originally Posted by ozrien View Post
Unrelated but......
Firmware 0.28?
I'm not sure it's unrelated at all. The early firmware does not implement all the features of the current firmware (1.1-1.4).
Reply With Quote
  #13   Spotlight this post!  
Unread 04-03-2015, 18:19
wireties's Avatar
wireties wireties is offline
Principal Engineer
AKA: Keith Buchanan
FRC #1296 (Full Metal Jackets)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2004
Location: Rockwall, TX
Posts: 1,169
wireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond repute
Send a message via AIM to wireties
Re: talon srx SetVoltageRampRate disabling motor controllers

Yeah, update to 1.1 or even better to 1.4 and try again.
__________________
Fast, cheap or working - pick any two!
Reply With Quote
  #14   Spotlight this post!  
Unread 04-03-2015, 18:19
ozrien's Avatar
ozrien ozrien is offline
Omar Zrien
AKA: Omar
no team
Team Role: Mentor
 
Join Date: Sep 2006
Rookie Year: 2003
Location: Sterling Heights, MI
Posts: 521
ozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant future
Re: talon srx SetVoltageRampRate disabling motor controllers

Hey, looks like there was a throttle-ramp fix back in 0.34. Cool (jeesh that was back in November) Forgot about that. Good thinking Alan.

So anyway, this is addressed to ALL teams : PLEASE UPDATE YOUR CAN DEVICES because...
-The ship firmware is not legal
-Updating them at the comp wastes a great deal of time.
-The legal firmware is what the control system team and beta teams have been using/testing.

Sparkyshires, please update your Talons.
Reply With Quote
  #15   Spotlight this post!  
Unread 05-03-2015, 11:33
Sparkyshires Sparkyshires is offline
Registered User
AKA: Michael Shires
FRC #0384 (Sparky)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2006
Location: Virginia
Posts: 226
Sparkyshires is an unknown quantity at this point
Re: talon srx SetVoltageRampRate disabling motor controllers

Quote:
Originally Posted by ozrien View Post
Hey, looks like there was a throttle-ramp fix back in 0.34. Cool (jeesh that was back in November) Forgot about that. Good thinking Alan.

So anyway, this is addressed to ALL teams : PLEASE UPDATE YOUR CAN DEVICES because...
-The ship firmware is not legal
-Updating them at the comp wastes a great deal of time.
-The legal firmware is what the control system team and beta teams have been using/testing.

Sparkyshires, please update your Talons.
Oh my god, I feel like an idiot D: I updated the talons on our final, but not our prototype. Thank you so much! Sorry about this!
__________________
"Measure with a micrometer, mark with chalk, cut with an axe."
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:12.

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