Marine systems simulation
Ship::WpHeadingController Class Reference
+ Inheritance diagram for Ship::WpHeadingController:
+ Collaboration diagram for Ship::WpHeadingController:

Public Member Functions

 WpHeadingController (const string &simObjectName, ISimObjectCreator *const creator)
 reads parameters, registers states, input/output ports and shared resources
 
const double * TorqueBODY (const double T, const double *const X)
 
void OdeFcn (const double T, const double *const X, double *const XDot, const bool bIsMajorTimeStep)
 returns object derivatives as a function of time, states and input ports More...
 
const double * RudderAngle (const double T, const double *const X)
 
const double * HeadingError (const double T, const double *const X)
 
- Public Member Functions inherited from Ship::ControlAlgorithm
 ControlAlgorithm (const string &simObjectName, ISimObjectCreator *const creator)
 reads parameters, registers states, input/output ports and shared resources
 
virtual void OdeFcn (const double T, const double *const X, double *const XDot, const bool bIsMajorTimeStep)
 returns object derivatives as a function of time, states and input ports More...
 

Additional Inherited Members

- Protected Attributes inherited from Ship::ControlAlgorithm
ISignalPort * adStatePosition
 Current position.
 
ISignalPort * adStateTheta
 Current attitude in quaternions.
 
ISignalPort * adStateVelocity
 Current linear velocity.
 
ISignalPort * adStateRotation
 Current attitude in euler angles.
 
ISignalPort * adStatePosition_Desired
 Desired position.
 
ISignalPort * adStateTheta_Desired
 Desired attitude.
 
ISignalPort * adStateVelocity_Desired
 Desired linear velocity.
 
double * adStatePosition_error
 Position error, current - desired.
 
double * adStateTheta_error
 Attitude error, current - desired.
 
double * adStateVelocity_error
 Linear velocity error, current - desired.
 
int m_StatePositionErrorSum_Index
 The relative index of the StatePositionErrorSum state in the state array.
 
int m_StateThetaErrorSum_Index
 The relative index of the StateThetaErrorSum state in the state array.
 
int m_StateVelocityErrorSum_Index
 The relative index of the StateVelocityErrorSum state in the state array.
 

Member Function Documentation

◆ OdeFcn()

void Ship::WpHeadingController::OdeFcn ( const double  T,
const double *const  X,
double *const  XDot,
const bool  bIsMajorTimeStep 
)
virtual

Reimplemented from Ship::ControlAlgorithm.


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