LRAUV  revA
ThrusterModel.h
Go to the documentation of this file.
1 
9 #ifndef THRUSTERMODEL_H_
10 #define THRUSTERMODEL_H_
11 
24 {
25 public:
26  ThrusterModel();
27 
29  {}
30  ;
31 
32  void initialize( float designSpeed, float designPropEff, float designOmega, float designThrust, float designTorque );
33 
34  float currentPropOmega( void )
35  {
36  return currentPropOmega_;
37  };
38 
39  void setPrevious( const float previous )
40  {
41  currentPropOmega_ = previous;
42  }
43 
44  void project( float propOmega, float u, float dt, float &thrust, float &torque );
45  void advance( float propOmega, float u, float dt );
46 
48  float thrusterTorque( float omegaP, float u );
49  float thrusterForce( float omegaP, float u );
50 
51 private:
52  float prevThrust_;
53  float prevTorque_;
55  float kWash_;
56  float kThrust_;
57  float kTorque_;
58 
59 };
60 
61 #endif /*THRUSTERMODEL_H_*/
void advance(float propOmega, float u, float dt)
Definition: ThrusterModel.cpp:51
float thrusterForce(float omegaP, float u)
Definition: ThrusterModel.cpp:66
float prevTorque_
Definition: ThrusterModel.h:53
float kWash_
Definition: ThrusterModel.h:55
float currentPropOmega(void)
Definition: ThrusterModel.h:34
Though far simpler than ActuatorModel, the intent is the same, to encapsulate some of the complexity ...
Definition: ThrusterModel.h:23
float kThrust_
Definition: ThrusterModel.h:56
float kTorque_
Definition: ThrusterModel.h:57
void setPrevious(const float previous)
Definition: ThrusterModel.h:39
float thrusterTorque(float omegaP, float u)
Definition: ThrusterModel.cpp:78
void initialize(float designSpeed, float designPropEff, float designOmega, float designThrust, float designTorque)
Definition: ThrusterModel.cpp:25
void project(float propOmega, float u, float dt, float &thrust, float &torque)
Unlike the actuator model, the thruster model is very simple, with no time delay. ...
Definition: ThrusterModel.cpp:37
~ThrusterModel()
Definition: ThrusterModel.h:28
float currentPropOmega_
Definition: ThrusterModel.h:54
ThrusterModel()
Definition: ThrusterModel.cpp:16
float prevThrust_
Definition: ThrusterModel.h:52
*uLong * dt
Definition: ZipEncoder.cpp:36