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

Detailed Description

Definition at line 841 of file FGStateSpace.h.

+ Inheritance diagram for FGStateSpace::Vn:
+ Collaboration diagram for FGStateSpace::Vn:

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

◆ Vn()

Vn ( )
inline

Definition at line 844 of file FGStateSpace.h.

844: Component("Vel north","feet/s") {};

Member Function Documentation

◆ get()

double get ( ) const
inlinevirtual

Implements FGStateSpace::Component.

Definition at line 845 of file FGStateSpace.h.

846 {
847 return m_fdm->GetPropagate()->GetVel(1);
848 }
std::shared_ptr< FGPropagate > GetPropagate(void) const
Returns the FGPropagate pointer.

◆ getDeriv()

double getDeriv ( ) const
inlinevirtual

Reimplemented from FGStateSpace::Component.

Definition at line 853 of file FGStateSpace.h.

854 {
855 //get NED accel from body accel
856 return (m_fdm->GetPropagate()->GetTb2l()*m_fdm->GetAccelerations()->GetUVWdot())(1);
857 }
std::shared_ptr< FGAccelerations > GetAccelerations(void) const
Returns the FGAccelerations pointer.

◆ set()

void set ( double  val)
inlinevirtual

Implements FGStateSpace::Component.

Definition at line 849 of file FGStateSpace.h.

850 {
851 m_fdm->GetIC()->SetVNorthFpsIC(val);
852 }
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: