]> git.mxchange.org Git - flightgear.git/blobdiff - src/FDM/LaRCsim/c172_main.c
Latest round of JSBim updates.
[flightgear.git] / src / FDM / LaRCsim / c172_main.c
index 67e3944b5e561972193c73630185d7521241df78..acb15b1e94bfc0a70ec206b5b93dc1239d4b54b9 100644 (file)
@@ -2,7 +2,7 @@
 //
 // Written by Curtis Olson, started October 1998.
 //
-// Copyright (C) 1998  Curtis L. Olson  - curt@me.umn.edu
+// Copyright (C) 1998  Curtis L. Olson  - http://www.flightgear.org/~curt
 //
 // This program is free software; you can redistribute it and/or
 // modify it under the terms of the GNU General Public License as
@@ -16,7 +16,7 @@
 //
 // You should have received a copy of the GNU General Public License
 // along with this program; if not, write to the Free Software
-// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 //
 // $Id$
 
@@ -262,7 +262,7 @@ int wave_stats(float *var,float *var_rate,int N,FILE *out)
        if(Nmaxima > 2)
        {
          ld=log(varmaxima[1]/varmaxima[2]);   //logarithmic decrement
-         zeta=ld/sqrt(4*PI*PI +ld*ld);        //damping ratio
+         zeta=ld/sqrt(4*LS_PI*LS_PI +ld*ld);        //damping ratio
          omegad=1/(vm_times[2]-vm_times[1]);  //damped natural frequency Hz
          if(zeta < 1)
          {