|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools |
Rating:
|
Display Modes |
|
#16
|
|||
|
|||
|
Re: Alternative to PID speed control
Can you expand on this some? We're setting the motor outputs in PWM, so the input to the VI needs to be between -1 and 1 inclusive, so we should make sure that the sum of the feedforward and the output of the PID never goes out of that range. Is that what you mean by "scale the feedforward appropriately"? If not, what do you mean? And what do you mean by "clamp the result"?
|
|
#17
|
||||
|
||||
|
Re: Alternative to PID speed control
Quote:
Quote:
If your PID setpoint is in rpm, and your PID output is +/-1, then it would not make sense to add the setpoint to the PID output without first scaling the setpoint. Adding 4000 (rpm) to the PID's +/-1 output would make the PID completely ineffective. After you've added the feedforward to the output of the PID, you should then clamp that sum to whatever range the downstream code is expecting. In LabVIEW I think that's called "in range and coerce", or some such thing. Last edited by Ether : 21-03-2012 at 12:22. |
|
#18
|
|||||
|
|||||
|
Re: Alternative to PID speed control
Quote:
|
|
#19
|
|||
|
|||
|
Re: Alternative to PID speed control
Quote:
1. How often were you asking the Jag for the speed? 2. How quickly were you running the control loop? 3. Were you able to compensate for the load that the ball puts on the motors quickly enough as to keep them at the correct speed? |
|
#20
|
||||
|
||||
|
Re: Alternative to PID speed control
Quote:
Questions 1 & 2: I'm guessing this controller would work fine in TeleOp. If that is the case, the answer to both questions 1 & 2 would be 20ms1. Question 3: For this application, no other control scheme provides faster spin-up or recovery time than the controller Martin described2. So if Martin's controller approach doesn't respond quickly enough, you won't be able to improve things by using PID. 1 if the CAN cannot respond that fast, the encoder could be moved to the cRIO and read by the FPGA. 2 we used to call this a "bang-bang" control (for obvious reasons) when I was working aerospace back in the '80s. . see this: http://www.chiefdelphi.com/forums/sh....php?p=1146748 . @Martin: what was your criterion for selecting the voltage ramp rate? did you try this with a much faster ramp? Last edited by Ether : 21-03-2012 at 16:37. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|