JSBSim Flight Dynamics Model 1.3.0 (09 Apr 2026)
An Open Source Flight Dynamics and Control Software Library in C++
Loading...
Searching...
No Matches
FGStateSpace::Qi Class Reference

Detailed Description

Definition at line 799 of file FGStateSpace.h.

+ Inheritance diagram for FGStateSpace::Qi:
+ Collaboration diagram for FGStateSpace::Qi:

Public Member Functions

double get () const
 
double getDeriv () const
 
void set (double val)
 
- Public Member Functions inherited from FGStateSpace::Component
 Component (const std::string &name, const std::string &unit)
 
const std::string & getName () const
 
const std::string & getUnit () const
 
void setFdm (FGFDMExec *fdm)
 
void setStateSpace (FGStateSpace *stateSpace)
 

Additional Inherited Members

- Protected Attributes inherited from FGStateSpace::Component
FGFDMExecm_fdm
 
std::string m_name
 
FGStateSpacem_stateSpace
 
std::string m_unit
 

Constructor & Destructor Documentation

◆ Qi()

Qi ( )
inline

Definition at line 802 of file FGStateSpace.h.

802: Component("Q inertial","rad/s") {};

Member Function Documentation

◆ get()

double get ( ) const
inlinevirtual

Implements FGStateSpace::Component.

Definition at line 803 of file FGStateSpace.h.

804 {
805 return m_fdm->GetPropagate()->GetPQRi(2);
806 }
std::shared_ptr< FGPropagate > GetPropagate(void) const
Returns the FGPropagate pointer.

◆ getDeriv()

double getDeriv ( ) const
inlinevirtual

Reimplemented from FGStateSpace::Component.

Definition at line 814 of file FGStateSpace.h.

815 {
816 return m_fdm->GetAccelerations()->GetPQRdot(2);
817 }
std::shared_ptr< FGAccelerations > GetAccelerations(void) const
Returns the FGAccelerations pointer.

◆ set()

void set ( double  val)
inlinevirtual

Implements FGStateSpace::Component.

Definition at line 807 of file FGStateSpace.h.

808 {
809 //Set PQR from PQRi
810 //VState.vPQR = VState.vPQRi - Ti2b * vOmegaEarth;
811 m_fdm->GetIC()->SetQRadpsIC(val + \
812 (m_fdm->GetPropagate()->GetPQR(2) - m_fdm->GetPropagate()->GetPQRi(2)));
813 }
std::shared_ptr< FGInitialCondition > GetIC(void) const
Returns a pointer to the FGInitialCondition object.
Definition FGFDMExec.h:390

The documentation for this class was generated from the following file: