|
WSF
|
#include <P6DofFlightControlSystem.hpp>


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 | |
| P6DofFlightControlSystem & | operator= (const P6DofFlightControlSystem &other)=delete |
| P6DofFlightControlSystem * | Clone () 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 |
| P6DofObject * | Clone () const |
| P6DofScenario * | GetScenario () const |
| std::string | GetName () const |
| void | SetName (const std::string &aName) |
| P6DofVehicle * | GetParentVehicle () 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) |
| ControlInputValue * | GetControlInputByName (const std::string &aControlInputName) const |
| ControlSignalModifier * | GetControlSignalModifierByName (const std::string &aSignalModifierName) const |
| Protected Member Functions inherited from P6DofObject | |
| P6DofObject (const P6DofObject &aSrc)=default | |
| P6DofObject & | operator= (const P6DofObject &other)=default |
Protected Attributes | |
| P6DofPilotObject * | mP6DofPilotObjectPtr |
| P6DofPilotManager * | mP6DofPilotManager |
| 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 | |
| P6DofScenario * | mScenario |
| P6DofVehicle * | mParentVehicle |
| std::string | mObjName |
|
explicit |
References mLastUpdateSimTime_nanosec, mP6DofPilotManager, mP6DofPilotObjectPtr, and P6DofObject::P6DofObject().
Referenced by Clone(), operator=(), and P6DofFlightControlSystem().
|
override |
|
protected |
|
protected |
References P6DofFlightControlSystem::ControlBooleanElement::controlValueName, and mControlBooleanList.
Referenced by ProcessControlBooleanInput().
|
protected |
References P6DofFlightControlSystem::ControlSurfaceElement::controlSurfaceName, and mControlSurfaceList.
Referenced by ProcessControlSurfaceInput().
|
protected |
References P6DofFlightControlSystem::ControlValueElement::controlValueName, and mControlValueList.
Referenced by ProcessControlValueInput().
| void P6DofFlightControlSystem::ClearAllControlData | ( | ) |
References mControlBooleanList, mControlSurfaceList, and mControlValueList.
| P6DofFlightControlSystem * P6DofFlightControlSystem::Clone | ( | ) | const |
References P6DofFlightControlSystem().
Referenced by P6DofVehicleType::DeriveFrom().
| void P6DofFlightControlSystem::ConnectInputsWithOutputs | ( | ) |
References P6DOF::DataType::Float, GetControlInputByName(), GetControlSignalModifierByName(), mControlBooleanList, mControlInputList, mControlSurfaceList, mControlValueList, and mP6DofPilotObjectPtr.
Referenced by Initialize(), and operator=().
| void P6DofFlightControlSystem::GetAllControlSurfaceAndActuatorsAngles | ( | std::vector< double > & | aControlSurfaceAngles_deg, |
| std::vector< double > & | aActuatorAngles_deg ) const |
References mControlSurfaceList, and NumFlightControlSurfaces().
Referenced by P6DofVehicle::ZeroKinematicsDuringTesting().
| size_t P6DofFlightControlSystem::GetBooleanControlHandle | ( | const std::string & | aControlBooleanName | ) | const |
References mControlBooleanList.
| std::string P6DofFlightControlSystem::GetBooleanControlName | ( | size_t | aControlBooleanHandle | ) | const |
References mControlBooleanList.
| bool P6DofFlightControlSystem::GetControlBoolean | ( | size_t | aControlBooleanHandle | ) | const |
References mControlBooleanList.
| bool P6DofFlightControlSystem::GetControlBooleanLastValue | ( | size_t | aControlBooleanHandle | ) | const |
References mControlBooleanList.
|
protected |
References mControlInputList.
Referenced by ConnectInputsWithOutputs().
|
protected |
References mControlSignalModifiersList.
Referenced by ConnectInputsWithOutputs(), ProcessControlInputs(), ProcessControlInputs(), and ProcessControlInputs().
| double P6DofFlightControlSystem::GetControlSurfaceAngle_deg | ( | size_t | aControlSurfaceHandle | ) | const |
References mControlSurfaceList.
Referenced by WsfP6DOF_Mover::GetAngleOfControlSurface(), and WsfP6DOF_Mover::GetAngleOfControlSurface().
| size_t P6DofFlightControlSystem::GetControlSurfaceHandle | ( | const std::string & | aControlSurfaceName | ) | const |
References mControlSurfaceList.
Referenced by WsfP6DOF_Mover::GetAngleOfControlSurface(), and WsfP6DOF_Mover::GetControlSurfaceHandle().
| size_t P6DofFlightControlSystem::GetControlSurfaceHandleContainingString | ( | const std::string & | aString | ) | const |
References mControlSurfaceList.
Referenced by WsfP6DOF_Mover::GetControlSurfaceHandleContainingString().
| size_t P6DofFlightControlSystem::GetControlSurfaceHandleContainingTwoStrings | ( | const std::string & | aString1, |
| const std::string & | aString2 ) const |
References mControlSurfaceList.
Referenced by WsfP6DOF_Mover::GetControlSurfaceHandleContainingTwoStrings().
| double P6DofFlightControlSystem::GetControlSurfaceMaxAngle_deg | ( | size_t | aControlSurfaceHandle | ) | const |
References mControlSurfaceList.
| double P6DofFlightControlSystem::GetControlSurfaceMinAngle_deg | ( | size_t | aControlSurfaceHandle | ) | const |
References mControlSurfaceList.
| std::string P6DofFlightControlSystem::GetControlSurfaceName | ( | size_t | aControlSurfaceHandle | ) | const |
References mControlSurfaceList.
| void P6DofFlightControlSystem::GetControlSurfaceNames | ( | std::vector< std::string > & | list | ) |
References mControlSurfaceList.
Referenced by WsfP6DOF_Mover::GetListOfControlSurfaceNames().
| bool P6DofFlightControlSystem::GetControlSurfacesUsingInput | ( | std::vector< ControlSurfaceElement * > & | list, |
| unsigned int | aInputHandle ) |
References mControlSurfaceList.
| double P6DofFlightControlSystem::GetControlSurfaceValueNormalized | ( | size_t | aControlSurfaceHandle | ) | const |
| double P6DofFlightControlSystem::GetControlValue | ( | size_t | aControlValueHandle | ) | const |
References mControlValueList.
Referenced by P6DofThrustProducerObject::SetControlInputValue(), and P6DofPropulsionSystem::SetControlInputValues().
| size_t P6DofFlightControlSystem::GetControlValueHandle | ( | const std::string & | aControlValueName | ) | const |
References mControlValueList.
Referenced by P6DofThrustProducerObject::SetControlInputHandle(), and P6DofPropulsionSystem::SetControlInputHandles().
| std::string P6DofFlightControlSystem::GetControlValueName | ( | size_t | aControlValueHandle | ) | const |
References mControlValueList.
| bool P6DofFlightControlSystem::Initialize | ( | int64_t | aSimTime_nanosec | ) |
References ConnectInputsWithOutputs(), mControlSurfaceList, and mLastUpdateSimTime_nanosec.
Referenced by operator=().
| void P6DofFlightControlSystem::LoadFlightControlInputData | ( | size_t | aIndex, |
| P6DOF::FlightControlInputValue * | aData ) const |
| void P6DofFlightControlSystem::LoadFlightControlSurfaceData | ( | size_t | aIndex, |
| P6DOF::ControlSurfaceValue * | aData ) const |
| size_t P6DofFlightControlSystem::NumFlightControlInputs | ( | ) | const |
References mControlInputList.
| size_t P6DofFlightControlSystem::NumFlightControlSurfaces | ( | ) | const |
References mControlSurfaceList.
Referenced by GetAllControlSurfaceAndActuatorsAngles().
|
delete |
References ConnectInputsWithOutputs(), Initialize(), P6DofFlightControlSystem(), and ProcessInput().
|
protected |
References AddControlBooleanToList(), and ProcessInputSet().
Referenced by ProcessInput().
|
protected |
|
protected |
References P6DofFlightControlSystem::ControlSurfaceElement::controlInputList, and GetControlSignalModifierByName().
Referenced by ProcessInputSet(), ProcessInputSet(), and ProcessInputSet().
|
protected |
|
protected |
References AddControlSurfaceToList(), and ProcessInputSet().
Referenced by ProcessInput().
|
protected |
References AddControlValueToList(), and ProcessInputSet().
Referenced by ProcessInput().
| bool P6DofFlightControlSystem::ProcessInput | ( | UtInput & | aInput | ) |
References ProcessControlBooleanInput(), ProcessControlSurfaceInput(), ProcessControlValueInput(), and ProcessSignalModifierTable().
Referenced by operator=().
|
protected |
References ProcessControlInputs().
|
protected |
References ProcessControlInputs().
Referenced by ProcessControlBooleanInput(), ProcessControlSurfaceInput(), and ProcessControlValueInput().
|
protected |
References ProcessControlInputs().
|
protected |
References AlphaGainTable, AlphaMappingTable, AltGainTable, AltMappingTable, BetaGainTable, BetaMappingTable, ClampGain, P6DofFlightControlSystem::ControlSignalModifier::curve, GxLoadGainTable, GxLoadMappingTable, GyLoadGainTable, GyLoadMappingTable, GzLoadGainTable, GzLoadMappingTable, KTASGainTable, KTASMappingTable, MachGainTable, MachMappingTable, P6DofFlightControlSystem::ControlSignalModifier::maxClamp, mControlSignalModifiersList, P6DofFlightControlSystem::ControlSignalModifier::minClamp, P6DofFlightControlSystem::ControlSignalModifier::name, QGainTable, QMappingTable, SASChannel, ScalarGain, P6DofFlightControlSystem::ControlSignalModifier::scalarGain, SignalMappingTable, P6DofFlightControlSystem::ControlSignalModifier::table, P6DofFlightControlSystem::ControlSignalModifier::type, and Undefined.
Referenced by ProcessInput().
| void P6DofFlightControlSystem::SetAllControlSurfaceAndActuatorsAngles | ( | const std::vector< double > & | aControlSurfaceAngles_deg, |
| const std::vector< double > & | aActuatorAngles_deg ) |
References mControlSurfaceList.
Referenced by P6DofVehicle::ZeroKinematicsDuringTesting().
| void P6DofFlightControlSystem::SetControlBooleansBasedOnControlInputs | ( | ) |
References AlphaGainTable, AlphaMappingTable, AltGainTable, AltMappingTable, BetaGainTable, BetaMappingTable, ClampGain, GxLoadGainTable, GxLoadMappingTable, GyLoadGainTable, GyLoadMappingTable, GzLoadGainTable, GzLoadMappingTable, KTASGainTable, KTASMappingTable, MachGainTable, MachMappingTable, mControlBooleanList, mState, QGainTable, QMappingTable, SASChannel, ScalarGain, and SignalMappingTable.
Referenced by Update().
| void P6DofFlightControlSystem::SetControlSurfaceAngle_deg | ( | size_t | aControlSurfaceHandle, |
| double | aAngle_deg ) |
| void P6DofFlightControlSystem::SetControlSurfacesBasedOnControlInputs | ( | int64_t | aSimTime_nanosec | ) |
References AlphaGainTable, AlphaMappingTable, AltGainTable, AltMappingTable, BetaGainTable, BetaMappingTable, ClampGain, GxLoadGainTable, GxLoadMappingTable, GyLoadGainTable, GyLoadMappingTable, GzLoadGainTable, GzLoadMappingTable, KTASGainTable, KTASMappingTable, MachGainTable, MachMappingTable, mControlSurfaceList, mP6DofPilotManager, mP6DofPilotObjectPtr, mState, QGainTable, QMappingTable, SASChannel, ScalarGain, and SignalMappingTable.
Referenced by Update().
| void P6DofFlightControlSystem::SetControlValuesBasedOnControlInputs | ( | ) |
References AlphaGainTable, AlphaMappingTable, AltGainTable, AltMappingTable, BetaGainTable, BetaMappingTable, ClampGain, GxLoadGainTable, GxLoadMappingTable, GyLoadGainTable, GyLoadMappingTable, GzLoadGainTable, GzLoadMappingTable, KTASGainTable, KTASMappingTable, MachGainTable, MachMappingTable, mControlValueList, mState, QGainTable, QMappingTable, SASChannel, ScalarGain, and SignalMappingTable.
Referenced by Update().
|
inline |
References mLastUpdateSimTime_nanosec.
| void P6DofFlightControlSystem::SetPilotManager | ( | P6DofPilotManager * | aP6DofPilotManager | ) |
References mP6DofPilotManager.
| void P6DofFlightControlSystem::SetPilotObject | ( | P6DofPilotObject * | aP6DofPilotObject | ) |
References mP6DofPilotObjectPtr.
| void P6DofFlightControlSystem::Update | ( | int64_t | aSimTime_nanosec, |
| P6DofKinematicState & | aState ) |
References P6DofScenario::GetFreezeFlags(), P6DofFreezeFlags::GetMasterNoLagTesting(), P6DofObject::GetScenario(), mControlInputList, mLastUpdateSimTime_nanosec, mP6DofPilotManager, mP6DofPilotObjectPtr, mState, SetControlBooleansBasedOnControlInputs(), SetControlSurfacesBasedOnControlInputs(), and SetControlValuesBasedOnControlInputs().
|
protected |
|
protected |
|
protected |
Referenced by GetControlSignalModifierByName(), ProcessSignalModifierTable(), and ~P6DofFlightControlSystem().
|
protected |
Referenced by AddControlSurfaceToList(), ClearAllControlData(), ConnectInputsWithOutputs(), GetAllControlSurfaceAndActuatorsAngles(), GetControlSurfaceAngle_deg(), GetControlSurfaceHandle(), GetControlSurfaceHandleContainingString(), GetControlSurfaceHandleContainingTwoStrings(), GetControlSurfaceMaxAngle_deg(), GetControlSurfaceMinAngle_deg(), GetControlSurfaceName(), GetControlSurfaceNames(), GetControlSurfacesUsingInput(), GetControlSurfaceValueNormalized(), Initialize(), LoadFlightControlSurfaceData(), NumFlightControlSurfaces(), SetAllControlSurfaceAndActuatorsAngles(), SetControlSurfaceAngle_deg(), SetControlSurfacesBasedOnControlInputs(), and ~P6DofFlightControlSystem().
|
protected |
|
protected |
Referenced by Initialize(), P6DofFlightControlSystem(), P6DofFlightControlSystem(), SetLastUpdateSimTime(), and Update().
|
protected |
|
protected |
|
protected |