43 #include "models/FGAccelerations.h" 44 #include "input_output/FGXMLElement.h" 45 #include "models/FGFCS.h" 51 IDENT(IdSrc,
"$Id: FGGyro.cpp,v 1.11 2015/07/12 19:34:08 bcoconni Exp $");
58 FGGyro::FGGyro(FGFCS* fcs, Element* element) : FGSensor(fcs, element),
59 FGSensorOrientation(element)
61 Accelerations = fcs->GetExec()->GetAccelerations();
75 bool FGGyro::Run(
void )
80 vAccel = mT * Accelerations->GetPQRdot();
84 ProcessSensorSignal();
86 if (IsOutput) SetOutput();
110 void FGGyro::Debug(
int from)
112 string ax[4] = {
"none",
"X",
"Y",
"Z"};
114 if (debug_lvl <= 0)
return;
118 cout <<
" Axis: " << ax[axis] << endl;
121 if (debug_lvl & 2 ) {
122 if (from == 0) cout <<
"Instantiated: FGGyro" << endl;
123 if (from == 1) cout <<
"Destroyed: FGGyro" << endl;
125 if (debug_lvl & 4 ) {
127 if (debug_lvl & 8 ) {
129 if (debug_lvl & 16) {
131 if (debug_lvl & 64) {
133 cout << IdSrc << endl;
134 cout << IdHdr << endl;