|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Motor speed sensing with the Jaguar motor controller?
Can anyone tell me if there is a way to detect the actual speed of a motor being controlled by the new Jaguar motor controllers? The documentation on the Jaguar site indicates that this will not be available for use for this year's competition but may be available in the future, but I also saw a function in Labview, something like GetMotorSpeed, that seems to indicate otherwise. Not sure which to believe.
Thanks, Mike |
|
#2
|
|||||
|
|||||
|
Re: Motor speed sensing with the Jaguar motor controller?
The FRC Programming Guide found here has information about the functions of the WPILib VIs.
The GetSpeed VI outputs the -1.0 to 1.0 scaled value of the PWM output being fed to the Jaguar. This would be the equivalent to getting the 0 to 255 value of the PWM output in the old control system. This value is not necessarily directly related to the motor speed as there are other factors such as the load on the motor and motor's torque/speed curve. |
|
#3
|
|||
|
|||
|
Re: Motor speed sensing with the Jaguar motor controller?
Digging into the LabVIEW code, it appears that the Set Speed and Get Speed VIs just end up setting and retrieving the PWM output value (0..255) by way of a speed value (-1..1). By default, the VIs assume the motor's speed is linear from 0 to 255. If it isn't linear, you can specify your own VI to do the transformation.
So, there is no speed feedback from the Jaguar at this time. It is possible that speed will be available over the CAN bus in the future, but I don't know. |
|
#4
|
||||
|
||||
|
Re: Motor speed sensing with the Jaguar motor controller?
The Jaguars have the capability to report the amount of electric current being drawn by the motors (but this does not give you direct information about the actual speed of the motors) over their CAN bus interface; this interface is illegal for FRC this year. If you want to know the motor speed, try using the US Digital encoders included in the KoP. These have an API in LabVIEW that will automatically track speed, as well as distance traveled and direction of movement if both sides of the quadrature encoder are wired. The encoders get connected to two digital inputs on the Sidecar: Wire the Brown, Red, and Blue wires to the Ground (black), +5 (red), and Signal (white/yellow) wires of one PWM cable, respectively, and the Yellow wire to the Signal wire of a second PWM cable.
--Ryan Last edited by RyanCahoon : 13-01-2009 at 16:56. |
|
#5
|
|||
|
|||
|
Re: Motor speed sensing with the Jaguar motor controller?
Which rule states that we can't get use the Jaguars interface? I am under the impression you are able to use it...
|
|
#6
|
||||
|
||||
|
Re: Motor speed sensing with the Jaguar motor controller?
Quote:
Quote:
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Jaguar Motor Controller Problem | prashil27 | Electrical | 5 | 07-01-2009 21:21 |
| are we allowed to control a window motor using a speed controller? | Wstedtlogan | Motors | 1 | 19-02-2006 15:47 |
| <R86> No more than one motor may be connected to each speed controller. | Michael Hill | Electrical | 2 | 08-01-2006 02:00 |
| Drill Motor/Speed Controller/Who Knows What Issues | GMitchell | Motors | 12 | 28-01-2003 17:11 |
| What's with the New Motor Specs for the Atwood Mobile (Chiaphua) Motor. | Robb Gerber | Motors | 2 | 23-01-2002 08:58 |