DetectionFilterSimulation:

Path: Math/FDIR

% Simulate a detection filter using a state space model.
   The failure vector can be used to fail actuators an sensors. Failures can 
   be a bias (which can be zero) and/or noise. All fields in failure are 
   optional. If you only enter the k... fields, then the failure will be a 
   zero. The bias and noise arrays must be the same size as the k... arrays.

   Since version 9.
--------------------------------------------------------------------------
   Form:
   [r, xDF, xP] = DetectionFilterSimulation( d, gP, u, failure, xDF, xP )
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   d			        (:)    Detection filter
                        .g      plant
                        .d      gain matrix
                        .uMin   input minimum
                        .uRange input range
                        .yMin   output minimum
                        .yRange output range
                        .xMin   state minimum
                        .xRange state range
                        .xS     static valud
   gP                   Plant
   u                    Inputs
   failure              Failure data structure
                        .kSensorFailed   (1,:)
                        .sensorBias      (1,:)
                        .sensorNoise     (1,:)
                        .kActuatorFailed (1,:)
                        .actuatorBias    (1,:)
                        .actuatorNoise   (1,:)
   xDF                  State of the detection filter
   xP                   State of the plant

   -------
   Outputs
   -------
   r                    Residuals
   xDF                  State of the detection filter
   xP                   State of the plant

--------------------------------------------------------------------------
   References:	Meserole, J. S., "Detection Filters for Fault-Tolerant Control
               of Turbofan Engines." MIT 1981.            
--------------------------------------------------------------------------

Children:

Math: FDIR/DetectionFilter

Back to the Math Module page