WSF
wsf::six_dof::RigidBodyFlightControlSystem Class Reference

#include <WsfRigidBodySixDOF_FlightControlSystem.hpp>

Inheritance diagram for wsf::six_dof::RigidBodyFlightControlSystem:
Collaboration diagram for wsf::six_dof::RigidBodyFlightControlSystem:

Classes

struct  ControlInputValue
struct  ControlSignalModifier
struct  ControlInputGainStream
struct  ControlSurfaceElement
struct  ControlValueElement
struct  ControlBooleanElement

Public Types

enum  ControlSignalModifierType {
  Undefined , ScalarGain , ClampGain , SASChannel ,
  MachGainTable , KTASGainTable , AlphaGainTable , BetaGainTable ,
  GxLoadGainTable , GyLoadGainTable , GzLoadGainTable , AltGainTable ,
  QGainTable , MachMappingTable , KTASMappingTable , AlphaMappingTable ,
  BetaMappingTable , GxLoadMappingTable , GyLoadMappingTable , GzLoadMappingTable ,
  AltMappingTable , QMappingTable , SignalMappingTable
}

Public Member Functions

 RigidBodyFlightControlSystem ()=default
 ~RigidBodyFlightControlSystem ()=default
RigidBodyFlightControlSystemoperator= (const RigidBodyFlightControlSystem &other)=delete
RigidBodyFlightControlSystemClone () const
void ConnectInputsWithOutputs ()
bool ProcessInput (UtInput &aInput)
bool Initialize (int64_t aSimTime_nanosec)
void Update (int64_t aSimTime_nanosec)
void SetLastUpdateSimTime (int64_t aLastUpdateSimTime_nanosec)
void SetPilotManager (RigidBodyPilotManager *aRigidBodySixDOF_PilotManager)
void SetPilotObject (RigidBodyPilotObject *aRigidBodySixDOF_PilotObject)
size_t GetControlSurfaceHandle (const std::string &aControlSurfaceName) const
size_t GetControlSurfaceHandleContainingString (const std::string &aString) const
size_t GetControlSurfaceHandleContainingTwoStrings (const std::string &aString1, const std::string &aString2) const
std::string GetControlSurfaceName (size_t aControlSurfaceHandle) const
double GetControlSurfaceAngle_deg (size_t aControlSurfaceHandle) const
double GetControlSurfaceMinAngle_deg (size_t aControlSurfaceHandle) const
double GetControlSurfaceMaxAngle_deg (size_t aControlSurfaceHandle) const
double GetControlSurfaceValueNormalized (size_t aControlSurfaceHandle) const
void SetControlSurfaceAngle_deg (size_t aControlSurfaceHandle, double aAngle_deg)
size_t GetControlValueHandle (const std::string &aControlValueName) const
std::string GetControlValueName (size_t aControlValueHandle) const
double GetControlValue (size_t aControlValueHandle) const
size_t GetBooleanControlHandle (const std::string &aControlBooleanName) const
std::string GetBooleanControlName (size_t aControlBooleanHandle) const
bool GetControlBoolean (size_t aControlBooleanHandle) const
bool GetControlBooleanLastValue (size_t aControlBooleanHandle) const
void ClearAllControlData ()
size_t NumFlightControlInputs () const
void LoadFlightControlInputData (size_t aIndex, FlightControlInputValue *aData) const
size_t NumFlightControlSurfaces () const
void LoadFlightControlSurfaceData (size_t aIndex, ControlSurfaceValue *aData) const
bool GetControlSurfacesUsingInput (std::vector< ControlSurfaceElement * > &list, unsigned int aInputHandle)
void GetControlSurfaceNames (std::vector< std::string > &list)
void GetAllControlSurfaceAndActuatorsAngles (std::vector< double > &aControlSurfaceAngles_deg, std::vector< double > &aActuatorAngles_deg) const
void SetAllControlSurfaceAndActuatorsAngles (const std::vector< double > &aControlSurfaceAngles_deg, const std::vector< double > &aActuatorAngles_deg)
void SetControlSurfacesBasedOnControlInputs (int64_t aSimTime_nanosec)
void SetControlValuesBasedOnControlInputs ()
void SetControlBooleansBasedOnControlInputs ()
Public Member Functions inherited from wsf::six_dof::Object
 Object ()=default
virtual ~Object ()=default
virtual std::string GetName () const
virtual void SetName (const std::string &aName)
virtual MoverGetParentVehicle () const
virtual void SetParentVehicle (Mover *aParentVehicle)

Protected Member Functions

 RigidBodyFlightControlSystem (const RigidBodyFlightControlSystem &aSrc)
bool ProcessSignalModifierTable (UtInput &aInput)
bool ProcessControlSurfaceInput (UtInput &aInput)
bool ProcessControlValueInput (UtInput &aInput)
bool ProcessControlBooleanInput (UtInput &aInput)
bool ProcessInputSet (UtInput &aInput, ControlSurfaceElement *aActiveControlSurfaceElement)
bool ProcessInputSet (UtInput &aInput, ControlValueElement *aActiveControlValueElement)
bool ProcessInputSet (UtInput &aInput, ControlBooleanElement *aActiveControlBooleanElement)
bool ProcessControlInputs (UtInput &aInput, ControlSurfaceElement *aActiveControlSurfaceElement)
bool ProcessControlInputs (UtInput &aInput, ControlValueElement *aActiveControlValueElement)
bool ProcessControlInputs (UtInput &aInput, ControlBooleanElement *aActiveControlBooleanElement)
bool AddControlSurfaceToList (std::unique_ptr< ControlSurfaceElement > aControlSurface)
bool AddControlValueToList (std::unique_ptr< ControlValueElement > aControlValue)
bool AddControlBooleanToList (std::unique_ptr< ControlBooleanElement > aControlBoolean)
ControlInputValueGetControlInputByName (const std::string &aControlInputName) const
ControlSignalModifierGetControlSignalModifierByName (const std::string &aSignalModifierName) const
Protected Member Functions inherited from wsf::six_dof::Object
 Object (const Object &)=default

Protected Attributes

int64_t mLastUpdateSimTime_nanosec = 0
RigidBodyPilotObjectmRigidBodySixDOF_PilotObjectPtr = nullptr
RigidBodyPilotManagermRigidBodySixDOF_PilotManager = nullptr
std::vector< std::unique_ptr< ControlInputValue > > mControlInputList
std::vector< std::unique_ptr< ControlSignalModifier > > mControlSignalModifiersList
std::vector< std::unique_ptr< ControlSurfaceElement > > mControlSurfaceList
std::vector< std::unique_ptr< ControlValueElement > > mControlValueList
std::vector< std::unique_ptr< ControlBooleanElement > > mControlBooleanList
Protected Attributes inherited from wsf::six_dof::Object
std::string mObjName = ""
MovermParentVehicle = nullptr

Member Enumeration Documentation

◆ ControlSignalModifierType

Enumerator
Undefined 
ScalarGain 
ClampGain 
SASChannel 
MachGainTable 
KTASGainTable 
AlphaGainTable 
BetaGainTable 
GxLoadGainTable 
GyLoadGainTable 
GzLoadGainTable 
AltGainTable 
QGainTable 
MachMappingTable 
KTASMappingTable 
AlphaMappingTable 
BetaMappingTable 
GxLoadMappingTable 
GyLoadMappingTable 
GzLoadMappingTable 
AltMappingTable 
QMappingTable 
SignalMappingTable 

Constructor & Destructor Documentation

◆ RigidBodyFlightControlSystem() [1/2]

wsf::six_dof::RigidBodyFlightControlSystem::RigidBodyFlightControlSystem ( )
default

◆ ~RigidBodyFlightControlSystem()

wsf::six_dof::RigidBodyFlightControlSystem::~RigidBodyFlightControlSystem ( )
default

◆ RigidBodyFlightControlSystem() [2/2]

wsf::six_dof::RigidBodyFlightControlSystem::RigidBodyFlightControlSystem ( const RigidBodyFlightControlSystem & aSrc)
protected

Member Function Documentation

◆ AddControlBooleanToList()

bool wsf::six_dof::RigidBodyFlightControlSystem::AddControlBooleanToList ( std::unique_ptr< ControlBooleanElement > aControlBoolean)
protected

◆ AddControlSurfaceToList()

bool wsf::six_dof::RigidBodyFlightControlSystem::AddControlSurfaceToList ( std::unique_ptr< ControlSurfaceElement > aControlSurface)
protected

◆ AddControlValueToList()

bool wsf::six_dof::RigidBodyFlightControlSystem::AddControlValueToList ( std::unique_ptr< ControlValueElement > aControlValue)
protected

References mControlValueList.

Referenced by ProcessControlValueInput().

◆ ClearAllControlData()

void wsf::six_dof::RigidBodyFlightControlSystem::ClearAllControlData ( )

◆ Clone()

wsf::six_dof::RigidBodyFlightControlSystem * wsf::six_dof::RigidBodyFlightControlSystem::Clone ( ) const

References RigidBodyFlightControlSystem().

Referenced by operator=().

◆ ConnectInputsWithOutputs()

◆ GetAllControlSurfaceAndActuatorsAngles()

void wsf::six_dof::RigidBodyFlightControlSystem::GetAllControlSurfaceAndActuatorsAngles ( std::vector< double > & aControlSurfaceAngles_deg,
std::vector< double > & aActuatorAngles_deg ) const

◆ GetBooleanControlHandle()

size_t wsf::six_dof::RigidBodyFlightControlSystem::GetBooleanControlHandle ( const std::string & aControlBooleanName) const

◆ GetBooleanControlName()

std::string wsf::six_dof::RigidBodyFlightControlSystem::GetBooleanControlName ( size_t aControlBooleanHandle) const

References mControlBooleanList.

◆ GetControlBoolean()

bool wsf::six_dof::RigidBodyFlightControlSystem::GetControlBoolean ( size_t aControlBooleanHandle) const

References mControlBooleanList.

◆ GetControlBooleanLastValue()

bool wsf::six_dof::RigidBodyFlightControlSystem::GetControlBooleanLastValue ( size_t aControlBooleanHandle) const

References mControlBooleanList.

◆ GetControlInputByName()

wsf::six_dof::RigidBodyFlightControlSystem::ControlInputValue * wsf::six_dof::RigidBodyFlightControlSystem::GetControlInputByName ( const std::string & aControlInputName) const
protected

References mControlInputList.

Referenced by ConnectInputsWithOutputs().

◆ GetControlSignalModifierByName()

wsf::six_dof::RigidBodyFlightControlSystem::ControlSignalModifier * wsf::six_dof::RigidBodyFlightControlSystem::GetControlSignalModifierByName ( const std::string & aSignalModifierName) const
protected

◆ GetControlSurfaceAngle_deg()

double wsf::six_dof::RigidBodyFlightControlSystem::GetControlSurfaceAngle_deg ( size_t aControlSurfaceHandle) const

◆ GetControlSurfaceHandle()

size_t wsf::six_dof::RigidBodyFlightControlSystem::GetControlSurfaceHandle ( const std::string & aControlSurfaceName) const

◆ GetControlSurfaceHandleContainingString()

size_t wsf::six_dof::RigidBodyFlightControlSystem::GetControlSurfaceHandleContainingString ( const std::string & aString) const

◆ GetControlSurfaceHandleContainingTwoStrings()

size_t wsf::six_dof::RigidBodyFlightControlSystem::GetControlSurfaceHandleContainingTwoStrings ( const std::string & aString1,
const std::string & aString2 ) const

◆ GetControlSurfaceMaxAngle_deg()

double wsf::six_dof::RigidBodyFlightControlSystem::GetControlSurfaceMaxAngle_deg ( size_t aControlSurfaceHandle) const

◆ GetControlSurfaceMinAngle_deg()

double wsf::six_dof::RigidBodyFlightControlSystem::GetControlSurfaceMinAngle_deg ( size_t aControlSurfaceHandle) const

◆ GetControlSurfaceName()

std::string wsf::six_dof::RigidBodyFlightControlSystem::GetControlSurfaceName ( size_t aControlSurfaceHandle) const

References mControlSurfaceList.

◆ GetControlSurfaceNames()

void wsf::six_dof::RigidBodyFlightControlSystem::GetControlSurfaceNames ( std::vector< std::string > & list)

◆ GetControlSurfacesUsingInput()

bool wsf::six_dof::RigidBodyFlightControlSystem::GetControlSurfacesUsingInput ( std::vector< ControlSurfaceElement * > & list,
unsigned int aInputHandle )

References mControlSurfaceList.

◆ GetControlSurfaceValueNormalized()

◆ GetControlValue()

double wsf::six_dof::RigidBodyFlightControlSystem::GetControlValue ( size_t aControlValueHandle) const

◆ GetControlValueHandle()

size_t wsf::six_dof::RigidBodyFlightControlSystem::GetControlValueHandle ( const std::string & aControlValueName) const

◆ GetControlValueName()

std::string wsf::six_dof::RigidBodyFlightControlSystem::GetControlValueName ( size_t aControlValueHandle) const

References mControlValueList.

◆ Initialize()

bool wsf::six_dof::RigidBodyFlightControlSystem::Initialize ( int64_t aSimTime_nanosec)

◆ LoadFlightControlInputData()

◆ LoadFlightControlSurfaceData()

void wsf::six_dof::RigidBodyFlightControlSystem::LoadFlightControlSurfaceData ( size_t aIndex,
ControlSurfaceValue * aData ) const

◆ NumFlightControlInputs()

size_t wsf::six_dof::RigidBodyFlightControlSystem::NumFlightControlInputs ( ) const

References mControlInputList.

◆ NumFlightControlSurfaces()

size_t wsf::six_dof::RigidBodyFlightControlSystem::NumFlightControlSurfaces ( ) const

◆ operator=()

RigidBodyFlightControlSystem & wsf::six_dof::RigidBodyFlightControlSystem::operator= ( const RigidBodyFlightControlSystem & other)
delete

◆ ProcessControlBooleanInput()

bool wsf::six_dof::RigidBodyFlightControlSystem::ProcessControlBooleanInput ( UtInput & aInput)
protected

◆ ProcessControlInputs() [1/3]

bool wsf::six_dof::RigidBodyFlightControlSystem::ProcessControlInputs ( UtInput & aInput,
ControlBooleanElement * aActiveControlBooleanElement )
protected

◆ ProcessControlInputs() [2/3]

bool wsf::six_dof::RigidBodyFlightControlSystem::ProcessControlInputs ( UtInput & aInput,
ControlSurfaceElement * aActiveControlSurfaceElement )
protected

◆ ProcessControlInputs() [3/3]

bool wsf::six_dof::RigidBodyFlightControlSystem::ProcessControlInputs ( UtInput & aInput,
ControlValueElement * aActiveControlValueElement )
protected

◆ ProcessControlSurfaceInput()

bool wsf::six_dof::RigidBodyFlightControlSystem::ProcessControlSurfaceInput ( UtInput & aInput)
protected

◆ ProcessControlValueInput()

bool wsf::six_dof::RigidBodyFlightControlSystem::ProcessControlValueInput ( UtInput & aInput)
protected

References AddControlValueToList(), and ProcessInputSet().

Referenced by ProcessInput().

◆ ProcessInput()

bool wsf::six_dof::RigidBodyFlightControlSystem::ProcessInput ( UtInput & aInput)

◆ ProcessInputSet() [1/3]

bool wsf::six_dof::RigidBodyFlightControlSystem::ProcessInputSet ( UtInput & aInput,
ControlBooleanElement * aActiveControlBooleanElement )
protected

◆ ProcessInputSet() [2/3]

bool wsf::six_dof::RigidBodyFlightControlSystem::ProcessInputSet ( UtInput & aInput,
ControlSurfaceElement * aActiveControlSurfaceElement )
protected

◆ ProcessInputSet() [3/3]

bool wsf::six_dof::RigidBodyFlightControlSystem::ProcessInputSet ( UtInput & aInput,
ControlValueElement * aActiveControlValueElement )
protected

◆ ProcessSignalModifierTable()

◆ SetAllControlSurfaceAndActuatorsAngles()

void wsf::six_dof::RigidBodyFlightControlSystem::SetAllControlSurfaceAndActuatorsAngles ( const std::vector< double > & aControlSurfaceAngles_deg,
const std::vector< double > & aActuatorAngles_deg )

◆ SetControlBooleansBasedOnControlInputs()

◆ SetControlSurfaceAngle_deg()

◆ SetControlSurfacesBasedOnControlInputs()

◆ SetControlValuesBasedOnControlInputs()

◆ SetLastUpdateSimTime()

void wsf::six_dof::RigidBodyFlightControlSystem::SetLastUpdateSimTime ( int64_t aLastUpdateSimTime_nanosec)
inline

◆ SetPilotManager()

void wsf::six_dof::RigidBodyFlightControlSystem::SetPilotManager ( RigidBodyPilotManager * aRigidBodySixDOF_PilotManager)

◆ SetPilotObject()

void wsf::six_dof::RigidBodyFlightControlSystem::SetPilotObject ( RigidBodyPilotObject * aRigidBodySixDOF_PilotObject)

◆ Update()

Member Data Documentation

◆ mControlBooleanList

◆ mControlInputList

std::vector<std::unique_ptr<ControlInputValue> > wsf::six_dof::RigidBodyFlightControlSystem::mControlInputList
protected

◆ mControlSignalModifiersList

std::vector<std::unique_ptr<ControlSignalModifier> > wsf::six_dof::RigidBodyFlightControlSystem::mControlSignalModifiersList
protected

◆ mControlSurfaceList

◆ mControlValueList

std::vector<std::unique_ptr<ControlValueElement> > wsf::six_dof::RigidBodyFlightControlSystem::mControlValueList
protected

◆ mLastUpdateSimTime_nanosec

int64_t wsf::six_dof::RigidBodyFlightControlSystem::mLastUpdateSimTime_nanosec = 0
protected

◆ mRigidBodySixDOF_PilotManager

RigidBodyPilotManager* wsf::six_dof::RigidBodyFlightControlSystem::mRigidBodySixDOF_PilotManager = nullptr
protected

◆ mRigidBodySixDOF_PilotObjectPtr

RigidBodyPilotObject* wsf::six_dof::RigidBodyFlightControlSystem::mRigidBodySixDOF_PilotObjectPtr = nullptr
protected

The documentation for this class was generated from the following files:
Copyrights Multiple, All Rights Reserved