16#include "propeller_table_2d.h"
17#include "CPrintDuringExec.h"
18#include "CEnvironment.h"
20#ifdef FH_VISUALIZATION
21#include "sfh/ogre/CDynamicLines.h"
24#include <ICurrentField.h>
27#define N_PROP_DATA 361
29const double PI = 3.1415926;
35 CWagProp(
string simobjectname, ISimObjectCreator* creator);
38 virtual void OdeFcn(
const double T,
const double *
const X,
double *
const XDot,
const bool bIsMajorTimeStep);
39 void FinalSetup(
const double T,
const double *
const X, ISimObjectCreator*
const creator);
40 void GetCurrent(
const double T,
const double*
const X,
const double position[3],
double* currentVelocity);
42 const double*
const outRPS(
const double T,
const double*
const X);
43 const double*
const outHydTorque(
const double T,
const double*
const X);
44 const double*
const outThrust(
const double T,
const double*
const X);
45 const double*
const outBeta(
const double T,
const double*
const X);
47 const double*
const outCt(
const double T,
const double*
const X);
48 const double*
const outUs(
const double T,
const double*
const X);
49 const double*
const outRs(
const double T,
const double*
const X);
51#ifdef FH_VISUALIZATION
54 virtual void RenderInit(Ogre::Root*
const ogreRoot, ISimObjectCreator*
const creator);
57 virtual void RenderUpdate(
const double T,
const double*
const X);
64 void CalcOutPut(
const double T,
const double*
const X);
65 void CalcBeta(
const double T,
const double*
const X);
73 double m_dRudderHeigth;
87 std::string driving_port;
108 CPrintDuringExec* m_Print;
113#ifdef FH_VISUALIZATION
114 Ogre::SceneNode* m_RenderNode;
115 CDynamicLines* m_lines;
Definition: CEnvironment.h:10
CWagProp(string simobjectname, ISimObjectCreator *creator)
The constructor sets the pointer to the output object and the parser object.
double m_dRho
Water density.
Definition: WagProp.h:70
virtual void OdeFcn(const double T, const double *const X, double *const XDot, const bool bIsMajorTimeStep)
Calculates the state derivatives.
double m_dInertia
Inertia of the propeller/shaft.
Definition: WagProp.h:68
void GetCurrent(const double T, const double *const X, const double position[3], double *currentVelocity)
ICurrentField interface method.
int m_ISAngVel
The index of the angular angular velocity state.
Definition: WagProp.h:85
bool ReadPropParFile(ISimObjectCreator *creator)
Sets the parameters of the mass object.
double m_dDia
Propeller diameter.
Definition: WagProp.h:69
Definition: ICurrentField.h:4
Definition: propeller_table_2d.h:15