FhSim
3.1.0
Marine systems simulation
Loading...
Searching...
No Matches
SimpleThruster.h
1
#ifndef CSimpleThruster_h__
2
#define CSimpleThruster_h__
3
4
#include <vector>
5
6
#include "TableLookup.h"
7
8
namespace
Ship
{
14
class
SimpleThruster
15
{
16
public
:
17
18
SimpleThruster
(
double
D ,
double
Fmax);
19
22
void
SetData
(
const
std::vector<double> &pitch_axis,
const
std::vector<double> &n_axis,
const
std::vector<std::vector<double> > &data);
23
24
double
GetForce(
double
pitch,
double
n);
25
27
void
SetWarnOnce
(
WarnOnce
* warnOnce) { m_warnOnce = warnOnce; }
28
29
private
:
30
double
D;
31
double
Fmax;
32
33
std::vector<double> pitch_axis;
34
std::vector<double> n_axis;
35
36
std::vector<std::vector<double> > thrust_table;
37
WarnOnce
* m_warnOnce =
nullptr
;
38
};
39
}
40
#endif
// CSimpleThruster_h__
Ship::SimpleThruster
Definition
SimpleThruster.h:15
Ship::SimpleThruster::SetWarnOnce
void SetWarnOnce(WarnOnce *warnOnce)
Where to report a pitch or rotational speed outside the map; null (the default) reports nowhere.
Definition
SimpleThruster.h:27
Ship::SimpleThruster::SetData
void SetData(const std::vector< double > &pitch_axis, const std::vector< double > &n_axis, const std::vector< std::vector< double > > &data)
Ship::WarnOnce
Definition
TableLookup.h:18
Ship
Simple waypoint object.
Definition
CableAttach.h:16
webfhsim
reloadrepos
fhsim_maritime
src
ship
Ship
Actuators
SimpleThruster.h
Generated on Mon Oct 26 2026 12:16:38 for FhSim by
1.9.8