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

Public Member Functions

 ReferenceGenerator (const string &simObjectName, ISimObjectCreator *const creator)
 reads parameters, registers states, input/output ports and shared resources
 
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
 

Protected Attributes

ISignalPort * m_adStatePositionPort
 input port. Current position
 
ISignalPort * m_adStateThetaPort
 input port. Current attitude as a quaternion
 
ISignalPort * m_adStateVelocityPort
 input port. Current linear velocity
 
ISignalPort * m_adStateRotationPort
 input port. current attitude in euler angles
 
double m_adStatePosition_Desired [3]
 Desired position and attitude.
 
double m_adStateTheta_Desired [4]
 Desired linear and angular velocity.
 
double m_adStateVelocity_Desired [3]
 Desired linear and angular acceleration.
 
int i
 
int j
 counter variables
 

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