Go to Post All those crazy teenagers walking around Atlanta trying to "Save the world" looking like gang members with their attire. - BrendanB [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

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 22-04-2016, 09:06
Trapazium Trapazium is offline
Registered User
FRC #3735
 
Join Date: Mar 2016
Location: houston
Posts: 5
Trapazium is an unknown quantity at this point
Talon SRX Motor Current

It there a way to read the Motor Current Amps while motor running.
via CAN on Talon SRX Motor
Reply With Quote
  #2   Spotlight this post!  
Unread 22-04-2016, 09:13
nickbrickmaster's Avatar
nickbrickmaster nickbrickmaster is offline
Not Allowed Near Power Tools
AKA: Nick Schatz
FRC #3184 (Blaze Robotics)
Team Role: Leadership
 
Join Date: Jan 2015
Rookie Year: 2014
Location: Eagan MN
Posts: 162
nickbrickmaster is an unknown quantity at this point
Re: Talon SRX Motor Current

Use the PDP singleton class and the getCurrent(channel) method.
__________________
I have approximate knowledge of many things.

FRC 3184: 2014-, FTC 10648: 2015-
Reply With Quote
  #3   Spotlight this post!  
Unread 22-04-2016, 09:26
Trapazium Trapazium is offline
Registered User
FRC #3735
 
Join Date: Mar 2016
Location: houston
Posts: 5
Trapazium is an unknown quantity at this point
Re: Talon SRX Motor Current

I found C code examples

Anybody can give tips or examples on JAVA..
Reply With Quote
  #4   Spotlight this post!  
Unread 22-04-2016, 10:17
nickbrickmaster's Avatar
nickbrickmaster nickbrickmaster is offline
Not Allowed Near Power Tools
AKA: Nick Schatz
FRC #3184 (Blaze Robotics)
Team Role: Leadership
 
Join Date: Jan 2015
Rookie Year: 2014
Location: Eagan MN
Posts: 162
nickbrickmaster is an unknown quantity at this point
Re: Talon SRX Motor Current

Quote:
Originally Posted by Trapazium View Post
I found C code examples

Anybody can give tips or examples on JAVA..
Here's the Javadoc link:

http://first.wpi.edu/FRC/roborio/rel...rent-byte-int-
__________________
I have approximate knowledge of many things.

FRC 3184: 2014-, FTC 10648: 2015-
Reply With Quote
  #5   Spotlight this post!  
Unread 22-04-2016, 10:20
James Kuszmaul James Kuszmaul is offline
NEFIRST CSA
FRC #0971 (Spartan Robotics)
 
Join Date: Jan 2012
Rookie Year: 2011
Location: Worcester, MA
Posts: 61
James Kuszmaul has much to be proud ofJames Kuszmaul has much to be proud ofJames Kuszmaul has much to be proud ofJames Kuszmaul has much to be proud ofJames Kuszmaul has much to be proud ofJames Kuszmaul has much to be proud ofJames Kuszmaul has much to be proud ofJames Kuszmaul has much to be proud ofJames Kuszmaul has much to be proud ofJames Kuszmaul has much to be proud of
Re: Talon SRX Motor Current

Or you could use the CAN Talon's internal current sensor:
http://first.wpi.edu/FRC/roborio/rel...utputCurrent--
__________________
FRC971 (Student) 2011-2014
FRC190 (College Mentor-ish) 2014
WPILib Development 2014-present
Reply With Quote
  #6   Spotlight this post!  
Unread 22-04-2016, 10:20
Pault's Avatar
Pault Pault is offline
Registered User
FRC #0246 (Overclocked)
Team Role: College Student
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Boston
Posts: 618
Pault has a reputation beyond reputePault has a reputation beyond reputePault has a reputation beyond reputePault has a reputation beyond reputePault has a reputation beyond reputePault has a reputation beyond reputePault has a reputation beyond reputePault has a reputation beyond reputePault has a reputation beyond reputePault has a reputation beyond reputePault has a reputation beyond repute
Re: Talon SRX Motor Current

Alternatively, you can just call:

Code:
myTalon.getOutputCurrent();
Reply With Quote
  #7   Spotlight this post!  
Unread 24-04-2016, 20:10
Trapazium Trapazium is offline
Registered User
FRC #3735
 
Join Date: Mar 2016
Location: houston
Posts: 5
Trapazium is an unknown quantity at this point
Re: Talon SRX Motor Current

We were able to use to myTalon.getOutputCurrent();

This worked out well for Dual Motor Shooter...

We found One Motor has lower current and thus shooter was spinning balls to one side.

We adjusted the Each Motor Speeds via motor current since we dont have encoders..
So for a quick an dirty shooting with dual motor use motor current feedback to fine/tweek the shooter shoot direction...
Reply With Quote
  #8   Spotlight this post!  
Unread 24-04-2016, 21:09
nickbrickmaster's Avatar
nickbrickmaster nickbrickmaster is offline
Not Allowed Near Power Tools
AKA: Nick Schatz
FRC #3184 (Blaze Robotics)
Team Role: Leadership
 
Join Date: Jan 2015
Rookie Year: 2014
Location: Eagan MN
Posts: 162
nickbrickmaster is an unknown quantity at this point
Re: Talon SRX Motor Current

Quote:
Originally Posted by Trapazium View Post
We were able to use to myTalon.getOutputCurrent();

This worked out well for Dual Motor Shooter...

We found One Motor has lower current and thus shooter was spinning balls to one side.

We adjusted the Each Motor Speeds via motor current since we dont have encoders..
So for a quick an dirty shooting with dual motor use motor current feedback to fine/tweek the shooter shoot direction...
The Talon SRX has a current PID mode as well. Might be worth looking into.
__________________
I have approximate knowledge of many things.

FRC 3184: 2014-, FTC 10648: 2015-
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:00.

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