|
|
|
@ -116,7 +116,8 @@ public:
@@ -116,7 +116,8 @@ public:
|
|
|
|
|
_rsc_runup_increment(0.0f), |
|
|
|
|
_rotor_speed_estimate(0.0f), |
|
|
|
|
_tail_direct_drive_out(0), |
|
|
|
|
_dt(0.01f) |
|
|
|
|
_dt(0.01f), |
|
|
|
|
_delta_phase_angle(0) |
|
|
|
|
{ |
|
|
|
|
AP_Param::setup_object_defaults(this, var_info); |
|
|
|
|
|
|
|
|
@ -191,8 +192,11 @@ public:
@@ -191,8 +192,11 @@ public:
|
|
|
|
|
// var_info for holding Parameter information
|
|
|
|
|
static const struct AP_Param::GroupInfo var_info[]; |
|
|
|
|
|
|
|
|
|
//
|
|
|
|
|
// set_dt for setting main loop rate time
|
|
|
|
|
void set_dt(float dt) { _dt = dt; } |
|
|
|
|
|
|
|
|
|
// set_dt for setting main loop rate time
|
|
|
|
|
void set_delta_phase_angle(int16_t angle) { _delta_phase_angle = angle; } |
|
|
|
|
|
|
|
|
|
protected: |
|
|
|
|
|
|
|
|
@ -288,6 +292,7 @@ private:
@@ -288,6 +292,7 @@ private:
|
|
|
|
|
float _rotor_speed_estimate; // estimated speed of the main rotor (0~1000)
|
|
|
|
|
int16_t _tail_direct_drive_out; // current ramped speed of output on ch7 when using direct drive variable pitch tail type
|
|
|
|
|
float _dt; // main loop time
|
|
|
|
|
int16_t _delta_phase_angle; // phase angle dynamic compensation
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
#endif // AP_MOTORSHELI
|
|
|
|
|