Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Talon SRX Motor Current (http://www.chiefdelphi.com/forums/showthread.php?t=147554)

Trapazium 22-04-2016 09:06

Talon SRX Motor Current
 
It there a way to read the Motor Current Amps while motor running.
via CAN on Talon SRX Motor

nickbrickmaster 22-04-2016 09:13

Re: Talon SRX Motor Current
 
Use the PDP singleton class and the getCurrent(channel) method.

Trapazium 22-04-2016 09:26

Re: Talon SRX Motor Current
 
I found C code examples

Anybody can give tips or examples on JAVA..

nickbrickmaster 22-04-2016 10:17

Re: Talon SRX Motor Current
 
Quote:

Originally Posted by Trapazium (Post 1577076)
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-

James Kuszmaul 22-04-2016 10:20

Re: Talon SRX Motor Current
 
Or you could use the CAN Talon's internal current sensor:
http://first.wpi.edu/FRC/roborio/rel...utputCurrent--

Pault 22-04-2016 10:20

Re: Talon SRX Motor Current
 
Alternatively, you can just call:

Code:

myTalon.getOutputCurrent();

Trapazium 24-04-2016 20:10

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...

nickbrickmaster 24-04-2016 21:09

Re: Talon SRX Motor Current
 
Quote:

Originally Posted by Trapazium (Post 1578371)
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.


All times are GMT -5. The time now is 09:36.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi