|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#4
|
|||
|
|||
|
Re: PID cmd_drive can't drive straight?
I comented on the use of "/ pid_time" earlier. Someone suggested that this may be a way to deal with wind up, but I think it just makes the itegral correction ineffective after the beginning. It was pointed out that the original code always calls set_pid_stop() which zeros pid_time.
We have removed this dividing by pid_time, and used the conditional integration I posted above. This stops integration while the system is limited. But leaves it working to correct errors later after the system gets close. There will still be some accumulated integral value that has to be removed by going beyong the the set point, but much less than otherwise. |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Drive Straight C Code using Encoders without PID? | Chris_Elston | Programming | 17 | 15-02-2005 23:41 |
| All-Time PID Drive with Hall-effects: Coming along very nicely | jdong | Programming | 6 | 05-02-2005 19:39 |
| Globe gear box | Pat Roche | Motors | 9 | 25-05-2004 22:50 |
| What is wrong with this code???? It won't Compile and I don't know why? Please Help | CrashZero | Programming | 23 | 26-03-2004 09:44 |
| "Motors and Drive train edition" of Fresh From the Forum | Ken Leung | CD Forum Support | 6 | 29-01-2002 12:32 |