|
|
|
@ -64,9 +64,14 @@ public:
@@ -64,9 +64,14 @@ public:
|
|
|
|
|
_aparm(aparm), |
|
|
|
|
_motors(motors) |
|
|
|
|
{ |
|
|
|
|
_singleton = this; |
|
|
|
|
AP_Param::setup_object_defaults(this, var_info); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
static AC_AttitudeControl *get_singleton(void) { |
|
|
|
|
return _singleton; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// Empty destructor to suppress compiler warning
|
|
|
|
|
virtual ~AC_AttitudeControl() {} |
|
|
|
|
|
|
|
|
@ -362,6 +367,9 @@ public:
@@ -362,6 +367,9 @@ public:
|
|
|
|
|
|
|
|
|
|
// enable inverted flight on backends that support it
|
|
|
|
|
virtual void set_inverted_flight(bool inverted) {} |
|
|
|
|
|
|
|
|
|
// get the slew rate value for roll, pitch and yaw, for oscillation detection in lua scripts
|
|
|
|
|
void get_rpy_srate(float &roll_srate, float &pitch_srate, float &yaw_srate); |
|
|
|
|
|
|
|
|
|
// User settable parameters
|
|
|
|
|
static const struct AP_Param::GroupInfo var_info[]; |
|
|
|
@ -483,6 +491,8 @@ protected:
@@ -483,6 +491,8 @@ protected:
|
|
|
|
|
const AP_Vehicle::MultiCopter &_aparm; |
|
|
|
|
AP_Motors& _motors; |
|
|
|
|
|
|
|
|
|
static AC_AttitudeControl *_singleton; |
|
|
|
|
|
|
|
|
|
protected: |
|
|
|
|
/*
|
|
|
|
|
state of control monitoring |
|
|
|
|