FhSim  3.1.0
Marine systems simulation
Loading...
Searching...
No Matches
ToTrawlDoor.h
1#pragma once
2
111#include "TrawlDoorBase.h"
112
113#include <fhsim_environment/EnvironmentProvider.h>
114
116{
117public:
119 ToTrawlDoor(std::string simObjectName, ISimObjectCreator* creator);
120
121 void FinalSetup(const double dT, const double* const adX, ISimObjectCreator* const creator);
122
124 const double* OutRoll(const double dT, const double* const adX);
125
126 // Output port returning the pitch angle of the trawl door.
127 const double* OutPitch(const double dT, const double* const adX);
128
129 // Output port returning the angle of attack of the trawl door.
130 const double* OutAngleOfAttack(const double dT, const double* const adX);
131
132#ifdef FH_VISUALIZATION
134 virtual void RenderInit(Ogre::Root* const ogreRoot, ISimObjectCreator* const creator);
135
137 virtual void RenderUpdate(const double dT, const double* const adX);
138#endif
139
140protected:
142 virtual void AddBottomForces();
143
146 bool HasJacobians() const override { return false; }
147
148 environment::EnvironmentProvider* m_environment;
149 double m_avgSubmergence;
150 double m_cornerPos_ned[4][3];
151 double m_submergence[4];
152 double m_roll;
153 double m_pitch;
154};
Definition ToTrawlDoor.h:116
bool HasJacobians() const override
Definition ToTrawlDoor.h:146
const double * OutRoll(const double dT, const double *const adX)
Output port returning the roll angle of the trawl door.
ToTrawlDoor(std::string simObjectName, ISimObjectCreator *creator)
The constructor sets the pointer to the output object and the parser object.
virtual void AddBottomForces()
Adds the bottom forces to the trawl door.
Definition TrawlDoorBase.h:116