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
8namespace Ship{
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__
Definition SimpleThruster.h:15
void SetWarnOnce(WarnOnce *warnOnce)
Where to report a pitch or rotational speed outside the map; null (the default) reports nowhere.
Definition SimpleThruster.h:27
void SetData(const std::vector< double > &pitch_axis, const std::vector< double > &n_axis, const std::vector< std::vector< double > > &data)
Definition TableLookup.h:18
Simple waypoint object.
Definition CableAttach.h:16