Yes that could be a problem in a controller. Since this is a monitoring project it doesn't matter. Good point! Andy Spehro Pefhany on 05/11/2000 02:07:29 PM Please respond to pic microcontroller discussion list To: PICLIST@MITVMA.MIT.EDU cc: (bcc: Andrew Kunz/TDI_NOTES) Subject: Re: Square root (was: Pressure to MPH) [OT] At 08:50 AM 5/11/00 -0700, you wrote: > >Andy can avoid the square root if he doesn't have to display airspeed. Just >square the target speed and do the speed loop comparisons using the squared >numbers. Careful with this one, it results in nonlinear controller gain, which can affect control stability if there is much range in the setpoint. Best regards, =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Spehro Pefhany --"it's the network..." "The Journey is the reward" speff@interlog.com Info for manufacturers: http://www.trexon.com Embedded software/hardware/analog Info for designers: http://www.speff.com Contributions invited->The AVR-gcc FAQ is at: http://www.bluecollarlinux.com =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=