home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / octa21eb.zip / octave / SCRIPTS.ZIP / scripts.fat / control / jet707.m < prev    next >
Text File  |  1999-04-29  |  2KB  |  55 lines

  1. # Copyright (C) 1997 Kai P. Mueller
  2. #
  3. # This file is part of Octave. 
  4. #
  5. # Octave is free software; you can redistribute it and/or modify it 
  6. # under the terms of the GNU General Public License as published by the 
  7. # Free Software Foundation; either version 2, or (at your option) any 
  8. # later version. 
  9. # Octave is distributed in the hope that it will be useful, but WITHOUT 
  10. # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 
  11. # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License 
  12. # for more details.
  13. # You should have received a copy of the GNU General Public License 
  14. # along with Octave; see the file COPYING.  If not, write to the Free 
  15. # Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. 
  16.  
  17. function outsys = jet707()
  18.   # function outsys = jet707()
  19.   # Creates linearized state space model of a Boeing 707-321 aircraft
  20.   # at v=80m/s. (M = 0.26, Ga0 = -3 deg, alpha0 = 4 deg, kappa = 50 deg)
  21.   # System inputs:   (1) thrust   and (2) elevator angle
  22.   # System outputs:  (1) airspeed and (2) pitch angle
  23.   # Ref: R. Brockhaus: Flugregelung (Flight Control), Springer, 1994
  24.   #
  25.   # see also: ord2
  26.  
  27.   # Written by Kai P. Mueller September 28, 1997
  28.   # Updates
  29.  
  30.   if (nargin != 0)
  31.     usage("outsys = jet707()")
  32.   endif
  33.   if (nargin > 1)
  34.     usage("outsys = jet707()")
  35.   endif
  36.  
  37.   a = [ -0.46E-01,            0.10681415316, 0.0,   -0.17121680433;
  38.         -0.1675901504661613, -0.515,         1.0,    0.6420630320636088E-02;
  39.          0.1543104215347786, -0.547945,     -0.906, -0.1521689385990753E-02;
  40.          0.0,                 0.0,           1.0,    0.0 ];
  41.   b = [ 0.1602300107479095,      0.2111848453E-02;
  42.         0.8196877780963616E-02, -0.3025E-01;
  43.         0.9173594317692437E-01, -0.75283075;
  44.         0.0,                     0.0 ];
  45.   c = [ 1.0,  0.0,  0.0,  0.0;
  46.         0.0,  0.0,  0.0,  1.0 ];
  47.   d=zeros(2,2);
  48.   inam = ["thrust"; "rudder"];
  49.   onam = ["speed"; "pitch"];
  50.   snam = ["x1"; "x2"; "x3"; "x4"];
  51.   outsys = ss2sys(a, b, c, d, 0.0, 4, 0, snam, inam, onam);
  52. endfunction
  53.