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

Detailed Description

Definition at line 568 of file FGStateSpace.h.

+ Inheritance diagram for FGStateSpace::ThrottlePos:
+ Collaboration diagram for FGStateSpace::ThrottlePos:

Public Member Functions

double get () const
 
void set (double val)
 
- Public Member Functions inherited from FGStateSpace::Component
 Component (const std::string &name, const std::string &unit)
 
virtual double getDeriv () const
 
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

◆ ThrottlePos()

ThrottlePos ( )
inline

Definition at line 571 of file FGStateSpace.h.

571: Component("ThtlPos","norm") {};

Member Function Documentation

◆ get()

double get ( ) const
inlinevirtual

Implements FGStateSpace::Component.

Definition at line 572 of file FGStateSpace.h.

573 {
574 return m_fdm->GetFCS()->GetThrottlePos(0);
575 }
std::shared_ptr< FGFCS > GetFCS(void) const
Returns the FGFCS pointer.

◆ set()

void set ( double  val)
inlinevirtual

Implements FGStateSpace::Component.

Definition at line 576 of file FGStateSpace.h.

577 {
578 for (unsigned int i=0;i<m_fdm->GetPropulsion()->GetNumEngines();i++)
579 m_fdm->GetFCS()->SetThrottlePos(i,val);
580 }
std::shared_ptr< FGPropulsion > GetPropulsion(void) const
Returns the FGPropulsion pointer.

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