FhSim  3.1.0
Marine systems simulation
Loading...
Searching...
No Matches
ToTrawlDoor.h
1#pragma once
2
109#include "TrawlDoorBase.h"
110
111#include <fhsim_environment/EnvironmentProvider.h>
112
114{
115public:
117 ToTrawlDoor(std::string simObjectName, ISimObjectCreator* creator);
118
119 void FinalSetup(const double dT, const double* const adX, ISimObjectCreator* const creator);
120
122 const double* OutRoll(const double dT, const double* const adX);
123
124 // Output port returning the pitch angle of the trawl door.
125 const double* OutPitch(const double dT, const double* const adX);
126
127 // Output port returning the angle of attack of the trawl door.
128 const double* OutAngleOfAttack(const double dT, const double* const adX);
129
130#ifdef FH_VISUALIZATION
132 virtual void RenderInit(Ogre::Root* const ogreRoot, ISimObjectCreator* const creator);
133
135 virtual void RenderUpdate(const double dT, const double* const adX);
136#endif
137
138protected:
140 virtual void AddBottomForces();
141
144 bool HasJacobians() const override { return false; }
145
146 environment::EnvironmentProvider* m_environment = nullptr;
147 double m_avgSubmergence;
148 double m_cornerPos_ned[4][3];
149 double m_submergence[4];
150 double m_roll;
151 double m_pitch;
152};
Definition ToTrawlDoor.h:114
bool HasJacobians() const override
Definition ToTrawlDoor.h:144
const double * OutRoll(const double dT, const double *const adX)
Output port returning the roll angle of the trawl door.
environment::EnvironmentProvider * m_environment
Resolved in FinalSetup.
Definition ToTrawlDoor.h:146
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:169