P.I.D questions?
grasshopper
Posts: 438
When using the PID object I want to know when do I set Δt to zero.
An exaggerated example [noparse][[/noparse]If running a PID program that is controlling a system; after a full day of keeping track Δt the number would become so huge.]
An exaggerated example [noparse][[/noparse]If running a PID program that is controlling a system; after a full day of keeping track Δt the number would become so huge.]
Comments
Leon
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Amateur radio callsign: G1HSM
Suzuki SV1000S motorcycle
No that object seems lacking. I am using Andys PID object listed below
[code]
{{
┌──────────────────┬────────────────────────┬────────┬────────────────┬────────┐
│ PID.spin │ (C)2007 Parallax, Inc. │ V0.92 │ by Andy Lindsay│ Aug 24 │
│ │ │ │ │ │
├──────────────────┴────────────────────────┴────────┴────────────────┴────────┤
│ │
│ Relies on Cam Thompson's Float32 object, which is available for download │
│ from the Propeller Object Exchange. │
│ │
│ Includes HyperTerminal diplay code for viewing calculation iterations. │ │
│ In HyperTerminal, use 57600, 8, N, 1, no flow control. │
│ │
│ │
│ Performs PID calculations: │
│ │
│ P + I + D │
│
│
│ E + Ep ΔE │
│ out = kp
Leon
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Amateur radio callsign: G1HSM
Suzuki SV1000S motorcycle
Post Edited (Leon) : 6/24/2008 8:23:42 PM GMT
John Abshier
Leon
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Amateur radio callsign: G1HSM
Suzuki SV1000S motorcycle