JSBSim Flight Dynamics Model 1.2.2 (22 Mar 2025)
An Open Source Flight Dynamics and Control Software Library in C++
Loading...
Searching...
No Matches
FGStateSpace::Alpha Class Reference

Detailed Description

Definition at line 378 of file FGStateSpace.h.

+ Inheritance diagram for FGStateSpace::Alpha:
+ Collaboration diagram for FGStateSpace::Alpha:

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

◆ Alpha()

Alpha ( )
inline

Definition at line 381 of file FGStateSpace.h.

381: Component("Alpha","rad") {};

Member Function Documentation

◆ get()

double get ( ) const
inlinevirtual

Implements FGStateSpace::Component.

Definition at line 382 of file FGStateSpace.h.

383 {
384 return m_fdm->GetAuxiliary()->Getalpha();
385 }
std::shared_ptr< FGAuxiliary > GetAuxiliary(void) const
Returns the FGAuxiliary pointer.

◆ getDeriv()

double getDeriv ( ) const
inlinevirtual

Reimplemented from FGStateSpace::Component.

Definition at line 396 of file FGStateSpace.h.

397 {
398 return m_fdm->GetAuxiliary()->Getadot();
399 }

◆ set()

void set ( double  val)
inlinevirtual

Implements FGStateSpace::Component.

Definition at line 386 of file FGStateSpace.h.

387 {
388 double beta = m_fdm->GetIC()->GetBetaDegIC();
389 double psi = m_fdm->GetIC()->GetPsiRadIC();
390 double theta = m_fdm->GetIC()->GetThetaRadIC();
391 m_fdm->GetIC()->SetAlphaRadIC(val);
392 m_fdm->GetIC()->SetBetaRadIC(beta);
393 m_fdm->GetIC()->SetPsiRadIC(psi);
394 m_fdm->GetIC()->SetThetaRadIC(theta);
395 }
std::shared_ptr< FGInitialCondition > GetIC(void) const
Returns a pointer to the FGInitialCondition object.
Definition FGFDMExec.h:389

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