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::Pi Class Reference

Detailed Description

Definition at line 778 of file FGStateSpace.h.

+ Inheritance diagram for FGStateSpace::Pi:
+ Collaboration diagram for FGStateSpace::Pi:

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

◆ Pi()

Pi ( )
inline

Definition at line 781 of file FGStateSpace.h.

781: Component("P inertial","rad/s") {};

Member Function Documentation

◆ get()

double get ( ) const
inlinevirtual

Implements FGStateSpace::Component.

Definition at line 782 of file FGStateSpace.h.

783 {
784 return m_fdm->GetPropagate()->GetPQRi(1);
785 }
std::shared_ptr< FGPropagate > GetPropagate(void) const
Returns the FGPropagate pointer.

◆ getDeriv()

double getDeriv ( ) const
inlinevirtual

Reimplemented from FGStateSpace::Component.

Definition at line 793 of file FGStateSpace.h.

794 {
795 return m_fdm->GetAccelerations()->GetPQRdot(1);
796 }
std::shared_ptr< FGAccelerations > GetAccelerations(void) const
Returns the FGAccelerations pointer.

◆ set()

void set ( double  val)
inlinevirtual

Implements FGStateSpace::Component.

Definition at line 786 of file FGStateSpace.h.

787 {
788 //Set PQR from PQRi
789 //VState.vPQR = VState.vPQRi - Ti2b * vOmegaEarth;
790 m_fdm->GetIC()->SetQRadpsIC(val + \
791 (m_fdm->GetPropagate()->GetPQR(1) - m_fdm->GetPropagate()->GetPQRi(1)));
792 }
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: