diff --git a/libraries/RC_Channel/RC_Channel.h b/libraries/RC_Channel/RC_Channel.h index d3264fda16..a21ef33770 100644 --- a/libraries/RC_Channel/RC_Channel.h +++ b/libraries/RC_Channel/RC_Channel.h @@ -12,6 +12,9 @@ /// @class RC_Channel /// @brief Object managing one RC channel class RC_Channel{ + private: + AP_Var_group _group; // must be before all vars to keep ctor init order correct + public: /// Constructor /// @@ -91,7 +94,6 @@ class RC_Channel{ float scale_output; private: - AP_Var_group _group; bool _filter; int8_t _reverse;