40 #include "FGFCSComponent.h" 47 #define ID_SENSOR "$Id: FGSensor.h,v 1.24 2014/01/02 21:58:42 bcoconni Exp $" 140 void SetFailLow(
double val) {
if (val > 0.0) fail_low =
true;
else fail_low =
false;}
141 void SetFailHigh(
double val) {
if (val > 0.0) fail_high =
true;
else fail_high =
false;}
142 void SetFailStuck(
double val) {
if (val > 0.0) fail_stuck =
true;
else fail_stuck =
false;}
144 double GetFailLow(
void)
const {
if (fail_low)
return 1.0;
else return 0.0;}
145 double GetFailHigh(
void)
const {
if (fail_high)
return 1.0;
else return 0.0;}
146 double GetFailStuck(
void)
const {
if (fail_stuck)
return 1.0;
else return 0.0;}
147 int GetQuantized(
void)
const {
return quantized;}
149 virtual bool Run (
void);
150 void ResetPastStates(
void);
153 enum eNoiseType {ePercent=0, eAbsolute} NoiseType;
154 enum eDistributionType {eUniform=0, eGaussian} DistributionType;
161 double noise_variance;
167 double PreviousInput;
175 std::string quant_property;
177 void ProcessSensorSignal(
void);
188 void Debug(
int from);
Encapsulates a Sensor component for the flight control system.
double cb
lag filter coefficient "a"
Encapsulates the Flight Control System (FCS) functionality.
Base class for JSBSim Flight Control System Components.
double PreviousOutput
lag filter coefficient "b"