|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools |
Rating:
|
Display Modes |
|
#76
|
|||
|
|||
|
Re: Jaguar Speed Control Only Reaches 50% of Setpoint
Looks like the Jag PID limits integrator wind-up:
Code:
//
// Update the error integrator.
//
if((psState->lIntegrator & 0x80000000) == (lError & 0x80000000))
//trimmed
From this old thread it looks like the Jaguar's onboard firmware source code was once available - at least the old TI/Luminary micro version (I understand that the FRC version was not). Is there anywhere to obtain this source code today? Our students are attempting position-based PID control onboard the jaguar using an encoder, and having some difficulty. Being able to point to exactly what the jaguar is doing with their parameters may be a useful teaching opportunity. thanks, Steve |
|
#77
|
|||
|
|||
|
Re: Jaguar Speed Control Only Reaches 50% of Setpoint
Quote:
There is a software download that should include the non-FRC version, which should include all of the PID algorithms. |
|
#78
|
|||||
|
|||||
|
Re: Jaguar Speed Control Only Reaches 50% of Setpoint
Quote:
Also, for benefit of anyone reading this and not recognizing the distinction, you can stably hit a position set point with a P-only control loop. (Well, actually you need some D, but this doesn't need to be in software - a bit of friction will often do the job nicely.) As to a P-only loop only reaching 50% speed, that makes sense if you don't have a feed-forward. Thought experiment: what happens if you start at the setpoint speed, or equivalently read the current speed, and make it the setpoint? Answer: the difference is zero, so zero voltage is applied to the motor. It slows down. As it slows down, D increases and voltage is again applied, but never enough to get back up to the set point. |
|
#79
|
||||
|
||||
|
Re: Jaguar Speed Control Only Reaches 50% of Setpoint
This thread is about speed control using the Jag firmware PID, which does not have a feedforward term. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|