Path: csiph.com!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Phil Hobbs Newsgroups: comp.dsp,sci.electronics.design,comp.arch.embedded Subject: Re: PID Without a PhD, Finally Date: Fri, 15 Apr 2016 10:20:34 -0400 Organization: A noiseless patient Spider Lines: 79 Message-ID: <5710F8B2.9020909@electrooptical.net> References: Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Injection-Info: mx02.eternal-september.org; posting-host="ba5aa477ac8651cd2e4d4a08b4ae59b3"; logging-data="23053"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX184KIjpVBp8vp5YyQKbq7nA" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.7.0 In-Reply-To: Cancel-Lock: sha1:FPDgcWP8nkhG1v3ETf89UwxzSV4= Xref: csiph.com comp.dsp:31201 sci.electronics.design:407659 comp.arch.embedded:23636 On 04/15/2016 09:31 AM, Paul wrote: > In article , > seemywebsite@myfooter.really says... >> >> Embedded Systems Design (or whatever they call themselves) kept moving >> this around -- so I've revamped it, updated it, and posted it on the web. >> >> Take a gander. Please comment on anything you like/don't like. I'm not >> sure if the way that I'm setting off the math is a Really Good Idea or a >> Really Bad Idea -- I'm trying to make it easy for the math-averse to skip >> over it, without breaking up the flow too much for folks who can read >> math without breaking stride. >> >> http://wescottdesign.com/articles/pid/pidWithoutAPhd.pdf > > Well in general good other comments people have stated I would add these > points - > > 1/ Code layout on page 14 of the integral state is UGLY, belongs in > obfuscated C better laid out out that is easier to read at a glance > is better for those trying to understand. > > 2/ Sampling time and loop delay, the closed loop problem that many > people overlook is not mentioned in any manner until into the maths. > Most people forget that digital control systems have a time lag and > time between calculations, sampling and worst of all ALL systems > have a delay between command -> error -> drive -> feedback > Each part has its own intrinsic delays/inertia and other effects > that most people never MEASURE. > > Increasing sampling rate or precision does NOT guarantee being able > to get to target faster. > > A classic problem I saw was a remotely operated vehicle, with a video > link and command back to vehicle. Everybody was annoyed that it could > not be driven faster than 30 mph so were looking at using 3D cameras > to make it faster. No one had obviously measured delays in system > > Camera frame integration time > Camera frame transmission time > Camera frame acquisition time > frame compression encryption time > frame radio link transmission time > frame receive time (missed/corrupt data) > frame decryption time > frame network transfer time (multi-computer setup) > Frame ROTATION by 90 degrees time > Frame mixing with other graphics > Frame buffer switching > > Then > Operator response time > Controls delay to data time > Controls network transfer > Controls radio link transmission > Controls receive time (what about missed/corrupt data) > Controls entered as new commands into drive control loops > Controls being applied > Vehicle lag to changes in drive > > So how was 2 video feeds going to speed this up See "A Meeting with Medusa" by Arthur Clarke. (Really a good story.) Cheers Phil Hobbs (who's not qualified to comment on Tim's magnum opus.) ;) -- Dr Philip C D Hobbs Principal Consultant ElectroOptical Innovations LLC Optics, Electro-optics, Photonics, Analog Electronics 160 North State Road #203 Briarcliff Manor NY 10510 hobbs at electrooptical dot net http://electrooptical.net