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