WSF
P6DofFlightControlSystem Class Reference

#include <P6DofFlightControlSystem.hpp>

Inheritance diagram for P6DofFlightControlSystem:
Collaboration diagram for P6DofFlightControlSystem:

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

 P6DofFlightControlSystem (P6DofScenario *aScenario)
 ~P6DofFlightControlSystem () override
P6DofFlightControlSystemoperator= (const P6DofFlightControlSystem &other)=delete
P6DofFlightControlSystemClone () const
void ConnectInputsWithOutputs ()
bool ProcessInput (UtInput &aInput)
bool Initialize (int64_t aSimTime_nanosec)
void Update (int64_t aSimTime_nanosec, P6DofKinematicState &aState)
void SetLastUpdateSimTime (int64_t aLastUpdateSimTime_nanosec)
void SetPilotManager (P6DofPilotManager *aP6DofPilotManager)
void SetPilotObject (P6DofPilotObject *aP6DofPilotObject)
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, P6DOF::FlightControlInputValue *aData) const
size_t NumFlightControlSurfaces () const
void LoadFlightControlSurfaceData (size_t aIndex, P6DOF::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 P6DofObject
 P6DofObject (P6DofScenario *aScenario)
virtual ~P6DofObject ()=default
P6DofObjectClone () const
P6DofScenarioGetScenario () const
std::string GetName () const
void SetName (const std::string &aName)
P6DofVehicleGetParentVehicle () const
virtual void SetParentVehicle (P6DofVehicle *aParentVehicle)

Protected Member Functions

 P6DofFlightControlSystem (const P6DofFlightControlSystem &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 (ControlSurfaceElement *aControlSurface)
bool AddControlValueToList (ControlValueElement *aControlValue)
bool AddControlBooleanToList (ControlBooleanElement *aControlBoolean)
ControlInputValueGetControlInputByName (const std::string &aControlInputName) const
ControlSignalModifierGetControlSignalModifierByName (const std::string &aSignalModifierName) const
Protected Member Functions inherited from P6DofObject
 P6DofObject (const P6DofObject &aSrc)=default
P6DofObjectoperator= (const P6DofObject &other)=default

Protected Attributes

P6DofPilotObjectmP6DofPilotObjectPtr
P6DofPilotManagermP6DofPilotManager
std::vector< ControlInputValue * > mControlInputList
std::vector< ControlSignalModifier * > mControlSignalModifiersList
std::vector< ControlSurfaceElement * > mControlSurfaceList
std::vector< ControlValueElement * > mControlValueList
std::vector< ControlBooleanElement * > mControlBooleanList
int64_t mLastUpdateSimTime_nanosec
P6DofKinematicState mState
Protected Attributes inherited from P6DofObject
P6DofScenariomScenario
P6DofVehiclemParentVehicle
std::string mObjName

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

◆ P6DofFlightControlSystem() [1/2]

P6DofFlightControlSystem::P6DofFlightControlSystem ( P6DofScenario * aScenario)
explicit

◆ ~P6DofFlightControlSystem()

P6DofFlightControlSystem::~P6DofFlightControlSystem ( )
override

◆ P6DofFlightControlSystem() [2/2]

Member Function Documentation

◆ AddControlBooleanToList()

bool P6DofFlightControlSystem::AddControlBooleanToList ( ControlBooleanElement * aControlBoolean)
protected

◆ AddControlSurfaceToList()

bool P6DofFlightControlSystem::AddControlSurfaceToList ( ControlSurfaceElement * aControlSurface)
protected

◆ AddControlValueToList()

bool P6DofFlightControlSystem::AddControlValueToList ( ControlValueElement * aControlValue)
protected

◆ ClearAllControlData()

void P6DofFlightControlSystem::ClearAllControlData ( )

◆ Clone()

P6DofFlightControlSystem * P6DofFlightControlSystem::Clone ( ) const

◆ ConnectInputsWithOutputs()

◆ GetAllControlSurfaceAndActuatorsAngles()

void P6DofFlightControlSystem::GetAllControlSurfaceAndActuatorsAngles ( std::vector< double > & aControlSurfaceAngles_deg,
std::vector< double > & aActuatorAngles_deg ) const

◆ GetBooleanControlHandle()

size_t P6DofFlightControlSystem::GetBooleanControlHandle ( const std::string & aControlBooleanName) const

References mControlBooleanList.

◆ GetBooleanControlName()

std::string P6DofFlightControlSystem::GetBooleanControlName ( size_t aControlBooleanHandle) const

References mControlBooleanList.

◆ GetControlBoolean()

bool P6DofFlightControlSystem::GetControlBoolean ( size_t aControlBooleanHandle) const

References mControlBooleanList.

◆ GetControlBooleanLastValue()

bool P6DofFlightControlSystem::GetControlBooleanLastValue ( size_t aControlBooleanHandle) const

References mControlBooleanList.

◆ GetControlInputByName()

P6DofFlightControlSystem::ControlInputValue * P6DofFlightControlSystem::GetControlInputByName ( const std::string & aControlInputName) const
protected

References mControlInputList.

Referenced by ConnectInputsWithOutputs().

◆ GetControlSignalModifierByName()

P6DofFlightControlSystem::ControlSignalModifier * P6DofFlightControlSystem::GetControlSignalModifierByName ( const std::string & aSignalModifierName) const
protected

◆ GetControlSurfaceAngle_deg()

double P6DofFlightControlSystem::GetControlSurfaceAngle_deg ( size_t aControlSurfaceHandle) const

◆ GetControlSurfaceHandle()

size_t P6DofFlightControlSystem::GetControlSurfaceHandle ( const std::string & aControlSurfaceName) const

◆ GetControlSurfaceHandleContainingString()

size_t P6DofFlightControlSystem::GetControlSurfaceHandleContainingString ( const std::string & aString) const

◆ GetControlSurfaceHandleContainingTwoStrings()

size_t P6DofFlightControlSystem::GetControlSurfaceHandleContainingTwoStrings ( const std::string & aString1,
const std::string & aString2 ) const

◆ GetControlSurfaceMaxAngle_deg()

double P6DofFlightControlSystem::GetControlSurfaceMaxAngle_deg ( size_t aControlSurfaceHandle) const

References mControlSurfaceList.

◆ GetControlSurfaceMinAngle_deg()

double P6DofFlightControlSystem::GetControlSurfaceMinAngle_deg ( size_t aControlSurfaceHandle) const

References mControlSurfaceList.

◆ GetControlSurfaceName()

std::string P6DofFlightControlSystem::GetControlSurfaceName ( size_t aControlSurfaceHandle) const

References mControlSurfaceList.

◆ GetControlSurfaceNames()

void P6DofFlightControlSystem::GetControlSurfaceNames ( std::vector< std::string > & list)

◆ GetControlSurfacesUsingInput()

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

References mControlSurfaceList.

◆ GetControlSurfaceValueNormalized()

◆ GetControlValue()

double P6DofFlightControlSystem::GetControlValue ( size_t aControlValueHandle) const

◆ GetControlValueHandle()

size_t P6DofFlightControlSystem::GetControlValueHandle ( const std::string & aControlValueName) const

◆ GetControlValueName()

std::string P6DofFlightControlSystem::GetControlValueName ( size_t aControlValueHandle) const

References mControlValueList.

◆ Initialize()

bool P6DofFlightControlSystem::Initialize ( int64_t aSimTime_nanosec)

◆ LoadFlightControlInputData()

◆ LoadFlightControlSurfaceData()

◆ NumFlightControlInputs()

size_t P6DofFlightControlSystem::NumFlightControlInputs ( ) const

References mControlInputList.

◆ NumFlightControlSurfaces()

size_t P6DofFlightControlSystem::NumFlightControlSurfaces ( ) const

◆ operator=()

P6DofFlightControlSystem & P6DofFlightControlSystem::operator= ( const P6DofFlightControlSystem & other)
delete

◆ ProcessControlBooleanInput()

bool P6DofFlightControlSystem::ProcessControlBooleanInput ( UtInput & aInput)
protected

◆ ProcessControlInputs() [1/3]

bool P6DofFlightControlSystem::ProcessControlInputs ( UtInput & aInput,
ControlBooleanElement * aActiveControlBooleanElement )
protected

◆ ProcessControlInputs() [2/3]

bool P6DofFlightControlSystem::ProcessControlInputs ( UtInput & aInput,
ControlSurfaceElement * aActiveControlSurfaceElement )
protected

◆ ProcessControlInputs() [3/3]

bool P6DofFlightControlSystem::ProcessControlInputs ( UtInput & aInput,
ControlValueElement * aActiveControlValueElement )
protected

◆ ProcessControlSurfaceInput()

bool P6DofFlightControlSystem::ProcessControlSurfaceInput ( UtInput & aInput)
protected

◆ ProcessControlValueInput()

bool P6DofFlightControlSystem::ProcessControlValueInput ( UtInput & aInput)
protected

References AddControlValueToList(), and ProcessInputSet().

Referenced by ProcessInput().

◆ ProcessInput()

bool P6DofFlightControlSystem::ProcessInput ( UtInput & aInput)

◆ ProcessInputSet() [1/3]

bool P6DofFlightControlSystem::ProcessInputSet ( UtInput & aInput,
ControlBooleanElement * aActiveControlBooleanElement )
protected

◆ ProcessInputSet() [2/3]

bool P6DofFlightControlSystem::ProcessInputSet ( UtInput & aInput,
ControlSurfaceElement * aActiveControlSurfaceElement )
protected

◆ ProcessInputSet() [3/3]

bool P6DofFlightControlSystem::ProcessInputSet ( UtInput & aInput,
ControlValueElement * aActiveControlValueElement )
protected

◆ ProcessSignalModifierTable()

◆ SetAllControlSurfaceAndActuatorsAngles()

void P6DofFlightControlSystem::SetAllControlSurfaceAndActuatorsAngles ( const std::vector< double > & aControlSurfaceAngles_deg,
const std::vector< double > & aActuatorAngles_deg )

◆ SetControlBooleansBasedOnControlInputs()

◆ SetControlSurfaceAngle_deg()

◆ SetControlSurfacesBasedOnControlInputs()

◆ SetControlValuesBasedOnControlInputs()

◆ SetLastUpdateSimTime()

void P6DofFlightControlSystem::SetLastUpdateSimTime ( int64_t aLastUpdateSimTime_nanosec)
inline

◆ SetPilotManager()

void P6DofFlightControlSystem::SetPilotManager ( P6DofPilotManager * aP6DofPilotManager)

References mP6DofPilotManager.

◆ SetPilotObject()

void P6DofFlightControlSystem::SetPilotObject ( P6DofPilotObject * aP6DofPilotObject)

References mP6DofPilotObjectPtr.

◆ Update()

Member Data Documentation

◆ mControlBooleanList

◆ mControlInputList

◆ mControlSignalModifiersList

std::vector<ControlSignalModifier*> P6DofFlightControlSystem::mControlSignalModifiersList
protected

◆ mControlSurfaceList

◆ mControlValueList

◆ mLastUpdateSimTime_nanosec

int64_t P6DofFlightControlSystem::mLastUpdateSimTime_nanosec
protected

◆ mP6DofPilotManager

◆ mP6DofPilotObjectPtr

◆ mState


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