57 Propagate =
fcs->GetExec()->GetPropagate();
58 Accelerations =
fcs->GetExec()->GetAccelerations();
59 MassBalance =
fcs->GetExec()->GetMassBalance();
65 cerr << element->ReadFrom()
66 <<
"No location given for accelerometer. " << endl;
67 throw(
"Malformed accelerometer specification");
70 vRadius = MassBalance->StructuralToBody(vLocation);
88 vRadius = MassBalance->StructuralToBody(vLocation);
91 vAccel = (Accelerations->GetBodyAccel()
92 + Accelerations->GetPQRidot() * vRadius
93 + Propagate->GetPQRi() * (Propagate->GetPQRi() * vRadius));
126void FGAccelerometer::Debug(
int from)
128 string ax[4] = {
"none",
"X",
"Y",
"Z"};
134 cout <<
" Axis: " << ax[
axis] << endl;
138 if (from == 0) cout <<
"Instantiated: FGAccelerometer" << endl;
139 if (from == 1) cout <<
"Destroyed: FGAccelerometer" << endl;
FGColumnVector3 FindElementTripletConvertTo(const std::string &target_units)
Composes a 3-element column vector for the supplied location or orientation.
Element * FindElement(const std::string &el="")
Searches for a specified element.
FGAccelerometer(FGFCS *fcs, Element *element)
virtual void SetOutput(void)
FGSensorOrientation(Element *element)
FGSensor(FGFCS *fcs, Element *element)
void ProcessSensorSignal(void)