73 element = thruster_element->
FindElement(
"location");
75 else cerr <<
fgred <<
" No thruster location found." <<
reset << endl;
79 string property_name, base_property_name;
82 element = thruster_element->
FindElement(
"pointing");
89 mT(1,1) = pointing(1);
90 mT(2,1) = pointing(2);
91 mT(3,1) = pointing(3);
99 property_name = base_property_name +
"/pitch-angle-rad";
101 property_name = base_property_name +
"/yaw-angle-rad";
107 property_name = base_property_name +
"/reverser-angle-rad";
139 std::ostringstream buf;
141 buf <<
Name <<
" Thrust (engine " <<
id <<
" in lbs)";
150 std::ostringstream buf;
186 if (from == 0) cout <<
"Instantiated: FGThruster" << endl;
187 if (from == 1) cout <<
"Destroyed: FGThruster" << endl;
JSBSim::FGFDMExec * FDMExec
const std::string & GetName(void) const
Retrieves the element name.
FGColumnVector3 FindElementTripletConvertTo(const std::string &target_units)
Composes a 3-element column vector for the supplied location or orientation.
Element * GetParent(void)
Returns a pointer to the parent of an element.
std::string GetAttributeValue(const std::string &key)
Retrieves an attribute.
Element * FindElement(const std::string &el="")
Searches for a specified element.
This class implements a 3 element column vector.
void SetTransformType(TransformType ii)
double GetPitch(void) const
double GetYaw(void) const
FGForce(FGFDMExec *FDMExec)
Constructor.
void SetAnglesToBody(double broll, double bpitch, double byaw)
void SetActingLocation(double x, double y, double z)
Acting point of application.
void SetLocation(double x, double y, double z)
void SetPitch(double pitch)
static char reset[5]
resets text properties
static char fgred[6]
red text
static std::string CreateIndexedPropertyName(const std::string &Property, int index)
void Tie(const std::string &name, T *pointer)
Tie a property to an external variable.
virtual void Debug(int from)
virtual std::string GetThrusterValues(int id, const std::string &delimeter)
virtual std::string GetThrusterLabels(int id, const std::string &delimeter)
double GetReverserAngle(void) const
virtual void ResetToIC(void)
virtual ~FGThruster()
Destructor.
FGThruster(FGFDMExec *FDMExec, Element *el, int num)
Constructor.
void SetReverserAngle(double angle)