Marine systems simulation
CVessel_Deploy.h
1#pragma once
12#include <stdio.h>
13#include <string>
14
15#include <SimObject.h>
16#include "trawl/CTrawlVessel.h"
17#include "CAttractorNetBin.h"
18
20{
21public:
23 CVessel_Deploy(std::string sSimObjectName, ISimObjectCreator* pCreator);
24
27
29 virtual void OdeFcn(const double dT, const double* const adX, double* const adXDot, const bool bIsMajorTimeStep);
30
32 virtual void DoDerivedOutputUpdate(const double dT, const double* const adX);
33
34protected:
35
36 double m_dApSpeed;
37
38 double m_adNetbinPos_ned[3];
39 double m_adNetbinPos_body[3];
40
41 ISignalPort* m_apInHeading;
42 ISignalPort* m_apInVel;
43
44 std::string m_sNetAttractor;
45 std::string m_sWarpAttractor;
46 CAttractorNetBin NetBinAttractor;
47 CAttractorNetBin WarpAttractor;
48};
A basic attractor for simulating a net bin during deployment.
Definition: CAttractorNetBin.h:17
Class modelling a simple vessel used for the trawl optimization tool.
Definition: CTrawlVessel.h:20
Definition: CVessel_Deploy.h:20
virtual void OdeFcn(const double dT, const double *const adX, double *const adXDot, const bool bIsMajorTimeStep)
Calculates the state derivatives.
~CVessel_Deploy()
The destructor cleans up.
double m_dApSpeed
The speed of the autopilot.
Definition: CVessel_Deploy.h:36
virtual void DoDerivedOutputUpdate(const double dT, const double *const adX)
Writes to the output ports.
ISignalPort * m_apInHeading
The velocity input port s.
Definition: CVessel_Deploy.h:41
CVessel_Deploy(std::string sSimObjectName, ISimObjectCreator *pCreator)
The constructor sets the pointer to the output object and the parser object.
ISignalPort * m_apInVel
The velocity input port s.
Definition: CVessel_Deploy.h:42