WSF
WsfAttitudeController Class Referenceabstract

#include <WsfAttitudeController.hpp>

Inheritance diagram for WsfAttitudeController:
Collaboration diagram for WsfAttitudeController:

Public Member Functions

 WsfAttitudeController ()
 WsfAttitudeController (const WsfAttitudeController &aOther)
 ~WsfAttitudeController () override=default
WsfAttitudeControlleroperator= (const WsfAttitudeController &aSrc)=delete
virtual void SetTargetOrientationECI (double aPsiECI, double aThetaECI, double aPhiECI)=0
 Set the orientation target for this attitude controller.
void SetTargetOrientation (double aYawECS, double aPitchECS, double aRollECS, const UtVec3d &aX_AxisOrientationECI, const UtVec3d &aZ_AxisConstraintECI)
virtual void GetTargetOrientationECI (double &aPsiECI, double &aThetaECI, double &aPhiECI) const =0
 Get the current orientation target for this attitude controller.
virtual void UpdateOrientation (double aDeltaT)=0
virtual bool CalculateOrientation (double &aPsi, double &aTheta, double &aPhi) const
 Calculate the updated orientation target.
void Update (double aDeltaT)
 Update attitude controller.
virtual bool AtTargetOrientation () const =0
 Has the mover reached the target orientation.
WsfAttitudeControllerClone () const override=0
 Clone this object.
bool ProcessInput (UtInput &aInput) override
void SetMover (WsfSpaceMoverBase *aMover)
 Set the mover to which this is attached.
WsfSpaceMoverBaseGetMover () const
 Return the mover to which this attitude controller is attached.
void SetOrientation (std::unique_ptr< wsf::space::Orientation > aOrientationPtr)
WSF_SPACE_DEPRECATED bool SetOrientation (const std::string &aOrientation)
Public Member Functions inherited from WsfObject
 WsfObject ()
 This is the constructor for the WsfObject class.
 ~WsfObject () override
 This is the destructor for the WsfObject class.
const char * GetScriptClassName () const override
const std::string & GetType () const
WsfStringId GetTypeId () const
 Get the string ID of the 'type' of the object.
void SetType (WsfStringId aType)
const std::string & GetBaseType () const
WsfStringId GetBaseTypeId () const
const TypeListGetTypeList () const
bool IsA_TypeOf (WsfStringId aType) const
WsfObjectoperator= (const WsfObject &aRhs)
 Assignment operator.
template<typename T>
void Serialize (T &aBuff)
 For XIO (de)serialization.
const std::string & GetName () const
WsfStringId GetNameId () const
void SetName (WsfStringId aName)

Additional Inherited Members

Public Types inherited from WsfObject
typedef std::vector< WsfStringIdTypeList
 The list of types returned by GetTypeList.
 WsfObject (const WsfObject &aSrc)
 Copy constructor (for Clone()).

Detailed Description

A base class for attitude controllers The attitude controller models the ability of the platform with the space mover to reorient itself. It operates by setting a target orientation to which the platform will try to orient.

Constructor & Destructor Documentation

◆ WsfAttitudeController() [1/2]

◆ WsfAttitudeController() [2/2]

WsfAttitudeController::WsfAttitudeController ( const WsfAttitudeController & aOther)

◆ ~WsfAttitudeController()

WsfAttitudeController::~WsfAttitudeController ( )
overridedefault

Member Function Documentation

◆ AtTargetOrientation()

virtual bool WsfAttitudeController::AtTargetOrientation ( ) const
pure virtual

Has the mover reached the target orientation.

Implemented in WsfInstantAttitudeController, and WsfRateLimitedAttitudeController.

◆ CalculateOrientation()

bool WsfAttitudeController::CalculateOrientation ( double & aPsi,
double & aTheta,
double & aPhi ) const
virtual

Calculate the updated orientation target.

a Pass-through method to calculate the satellite's orientation.

Parameters
aPsiThe calculated ECI 'heading' angle.
aThetaThe calculated ECI 'pitch' angle.
aPhiThe calculated ECI 'roll' angle.
Note
See UtOrbitalPropagatorBase::Orientation.

Referenced by Update(), and UpdateOrientation().

◆ Clone()

WsfAttitudeController * WsfAttitudeController::Clone ( ) const
overridepure virtual

Clone this object.

Implements WsfObject.

Implemented in WsfInstantAttitudeController, and WsfRateLimitedAttitudeController.

References WsfAttitudeController().

Referenced by WsfAttitudeController().

◆ GetMover()

WsfSpaceMoverBase * WsfAttitudeController::GetMover ( ) const
inline

◆ GetTargetOrientationECI()

virtual void WsfAttitudeController::GetTargetOrientationECI ( double & aPsiECI,
double & aThetaECI,
double & aPhiECI ) const
pure virtual

Get the current orientation target for this attitude controller.

Implemented in WsfInstantAttitudeController, and WsfRateLimitedAttitudeController.

◆ operator=()

WsfAttitudeController & WsfAttitudeController::operator= ( const WsfAttitudeController & aSrc)
delete

◆ ProcessInput()

bool WsfAttitudeController::ProcessInput ( UtInput & aInput)
overridevirtual

Process input from a generic source.

Examine the current input command. If it is NOT one of the commands recognized by this class then it simply returns 'false'. If it is one of the commands recognized by this class then it processes the command and returns 'true'.

Parameters
aInputa reference to a UtInput object.
Returns
'true' if the command was one recognized by the class or 'false' if not.
Exceptions
UtInput::ExceptionBase(or an object derived from it) if the command was recognized but contains some sort of error.
Note
If a derived class does not recognize the command (i.e.: the return value is false) then it should call the base class ProcessInput method. This chain should continue until either the command is recognized or the top-level base class is encountered.

Reimplemented from WsfObject.

Reimplemented in WsfRateLimitedAttitudeController.

References wsf::space::Orientation::Factory().

Referenced by WsfRateLimitedAttitudeController::ProcessInput().

◆ SetMover()

void WsfAttitudeController::SetMover ( WsfSpaceMoverBase * aMover)
inline

Set the mover to which this is attached.

◆ SetOrientation() [1/2]

bool WsfAttitudeController::SetOrientation ( const std::string & aOrientation)

(Deprecated) Sets the orientation to one of the standard orientation types.

Parameters
aOrientationThe desired orientation type.
Returns
Whether the operation was successful (returns true if aOrientation is a recognized type name).

References wsf::space::Orientation::Factory().

◆ SetOrientation() [2/2]

void WsfAttitudeController::SetOrientation ( std::unique_ptr< wsf::space::Orientation > aOrientationPtr)

Sets the orientation to one of the standard orientation types.

Parameters
aOrientationPtrThe desired orientation type.

Referenced by WsfOrbitalAttitudeChangeEvent::ExecuteEvent().

◆ SetTargetOrientation()

void WsfAttitudeController::SetTargetOrientation ( double aYawECS,
double aPitchECS,
double aRollECS,
const UtVec3d & aX_AxisOrientationECI,
const UtVec3d & aZ_AxisConstraintECI )

Set a general target orientation based on an ECS-referenced yaw, pitch, roll, a PCS x-axis alignment vector in ECI coordinates, and a PCS z-axis constraint vector.

References SetTargetOrientationECI().

Referenced by SetTargetOrientationECI().

◆ SetTargetOrientationECI()

virtual void WsfAttitudeController::SetTargetOrientationECI ( double aPsiECI,
double aThetaECI,
double aPhiECI )
pure virtual

Set the orientation target for this attitude controller.

Implemented in WsfInstantAttitudeController, and WsfRateLimitedAttitudeController.

References SetTargetOrientation().

Referenced by SetTargetOrientation(), and Update().

◆ Update()

void WsfAttitudeController::Update ( double aDeltaT)

Update attitude controller.

Update the platform's attitude.

Parameters
aDeltaTthe change in time to integrate angular rotation.

References CalculateOrientation(), SetTargetOrientationECI(), and UpdateOrientation().

◆ UpdateOrientation()

virtual void WsfAttitudeController::UpdateOrientation ( double aDeltaT)
pure virtual

Perform update to orientation. This is responsible for updating the actual orientation of the platform

Implemented in WsfInstantAttitudeController, and WsfRateLimitedAttitudeController.

References CalculateOrientation().

Referenced by Update().


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