From 864168e5eacbc8c71afa22e7a94635a08381d777 Mon Sep 17 00:00:00 2001 From: Leonard Hall Date: Wed, 11 Feb 2015 21:17:58 +0900 Subject: [PATCH] Copter: add AUTOTUNE_AXES bitmask parameter This is used to allow tuning just some axis --- ArduCopter/Parameters.h | 4 ++++ ArduCopter/Parameters.pde | 7 +++++++ 2 files changed, 11 insertions(+) diff --git a/ArduCopter/Parameters.h b/ArduCopter/Parameters.h index 50ad45320c..aed4008c49 100644 --- a/ArduCopter/Parameters.h +++ b/ArduCopter/Parameters.h @@ -315,6 +315,7 @@ public: k_param_acro_balance_roll, k_param_acro_balance_pitch, k_param_acro_yaw_p, // 244 + k_param_autotune_axis_bitmask, // 245 // 254,255: reserved }; @@ -462,6 +463,9 @@ public: AC_P p_stabilize_yaw; AC_P p_alt_hold; + // Autotune + AP_Int8 autotune_axis_bitmask; + // Note: keep initializers here in the same order as they are declared // above. Parameters() : diff --git a/ArduCopter/Parameters.pde b/ArduCopter/Parameters.pde index d1df0a656b..73a85951cf 100644 --- a/ArduCopter/Parameters.pde +++ b/ArduCopter/Parameters.pde @@ -1037,6 +1037,13 @@ const AP_Param::Info var_info[] PROGMEM = { GOBJECT(optflow, "FLOW", OpticalFlow), #endif + // @Param: AUTOTUNE_AXIS_BITMASK + // @DisplayName: Autotune axis bitmask + // @Description: 1-byte bitmap of axes to autotune + // @Values: 7:All,1:Roll,2:Pitch,4:Yaw,0:None + // @User: Standard + GSCALAR(autotune_axis_bitmask, "AUTOTUNE_AXES", 7), // AUTOTUNE_AXIS_BITMASK_DEFAULT + AP_VAREND };