Marine systems simulation
CActuator.h
1#pragma once
2
75#include <string>
76#include "SimObject.h"
77
78class CActuator : public SimObject
79{
80public:
81
82 CActuator(std::string sSimObjectName, ISimObjectCreator* pCreator );
83
84 ~CActuator();
85 void OdeFcn(const double dT, const double* const adX, double* const adXDot, const bool bIsMajorTimeStep);
86
87 const double * OutLength( const double T, const double * const X);
88 const double * OutPower( const double T, const double * const X);
89 const double * OutEnergy( const double T, const double * const X);
90
91
92#ifdef FH_VISUALIZATION
94 virtual void RenderInit(Ogre::Root* const ogreRoot, ISimObjectCreator* const creator){}
95
97 virtual void RenderUpdate(const double T, const double* const X){}
98#endif
99
100protected:
101
102 ISignalPort* m_InSpeedRef;
103 ISignalPort* m_InForce;
104 int m_IStateLength;
105 int m_IStateEnergy;
106
107 double m_minForce;
108 double m_maxForce;
109 double m_minSpeed;
110 double m_maxSpeed;
111 double m_minLength;
112 double m_maxLength;
113
114 double m_power;
115
116
117};
Definition: CActuator.h:79