Marine systems simulation
ZigZagManeuver.h
1#pragma once
2
13#include "ControlAlgorithm.h"
14#include <math.h>
15#include <sfh/math.h>
16
17namespace Ship{
19 {
20 public:
21 ZigZagManeuver(const string& simObjectName, ISimObjectCreator* const creator);
22 const double* RudderAngle(const double T, const double* const X);
23
24 private:
25 double m_dRudderangle;
26 double m_dDeviationFromInitialHeading;
27 double m_dTimeOfExecute;
28 double m_dInitialHeading;
29 int m_iCounter;
30 int m_iDirectionOfFirstTurn;
31 string m_sDirectionOfFirstTurn;
32 double output;
33 int m_iCounterMax;
34
35 #ifdef FH_VISUALIZATION
36 void RenderInit(Ogre::Root* const ogreRoot, ISimObjectCreator* const creator);
37 void RenderUpdate(const double T, const double* const X);
38 #endif
39 #ifdef FH_VISUALIZATION
40 Ogre::SceneNode* m_RenderNode;
41 double m_Radius;
42 string m_Material;
43 double m_Color[3];
44 #endif
45
46 };
47}
Definition: ControlAlgorithm.h:22
Definition: ZigZagManeuver.h:19
ZigZagManeuver(const string &simObjectName, ISimObjectCreator *const creator)
reads parameters, registers states, input/output ports and shared resources
Simple waypoint object.
Definition: CableAttach.h:16