|
|
@ -16,13 +16,13 @@ |
|
|
|
/// @brief Class managing the pilot's control inputs for Conventional Helicopter
|
|
|
|
/// @brief Class managing the pilot's control inputs for Conventional Helicopter
|
|
|
|
class AC_InputManager_Heli : public AC_InputManager { |
|
|
|
class AC_InputManager_Heli : public AC_InputManager { |
|
|
|
public: |
|
|
|
public: |
|
|
|
// Constructor
|
|
|
|
static AC_InputManager_Heli create() { return AC_InputManager_Heli{}; } |
|
|
|
AC_InputManager_Heli(): |
|
|
|
|
|
|
|
AC_InputManager() |
|
|
|
constexpr AC_InputManager_Heli(AC_InputManager_Heli &&other) = default; |
|
|
|
{ |
|
|
|
|
|
|
|
// setup parameter defaults
|
|
|
|
/* Do not allow copies */ |
|
|
|
AP_Param::setup_object_defaults(this, var_info); |
|
|
|
AC_InputManager_Heli(const AC_InputManager_Heli &other) = delete; |
|
|
|
} |
|
|
|
AC_InputManager_Heli &operator=(const AC_InputManager_Heli&) = delete; |
|
|
|
|
|
|
|
|
|
|
|
// get_pilot_desired_collective - rescale's pilot collective pitch input in Stabilize and Acro modes
|
|
|
|
// get_pilot_desired_collective - rescale's pilot collective pitch input in Stabilize and Acro modes
|
|
|
|
float get_pilot_desired_collective(int16_t control_in); |
|
|
|
float get_pilot_desired_collective(int16_t control_in); |
|
|
@ -35,8 +35,16 @@ public: |
|
|
|
|
|
|
|
|
|
|
|
static const struct AP_Param::GroupInfo var_info[]; |
|
|
|
static const struct AP_Param::GroupInfo var_info[]; |
|
|
|
|
|
|
|
|
|
|
|
private: |
|
|
|
protected: |
|
|
|
|
|
|
|
// Constructor
|
|
|
|
|
|
|
|
AC_InputManager_Heli() |
|
|
|
|
|
|
|
: AC_InputManager() |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
// setup parameter defaults
|
|
|
|
|
|
|
|
AP_Param::setup_object_defaults(this, var_info); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private: |
|
|
|
struct InputManagerHeliFlags { |
|
|
|
struct InputManagerHeliFlags { |
|
|
|
uint8_t use_stab_col : 1; // 1 if we should use Stabilise mode collective range, 0 for Acro range
|
|
|
|
uint8_t use_stab_col : 1; // 1 if we should use Stabilise mode collective range, 0 for Acro range
|
|
|
|
} _im_flags_heli; |
|
|
|
} _im_flags_heli; |
|
|
|