AC_InputManager: remove MAIN_LOOP_RATE in favour of parameter value

This commit is contained in:
Peter Barker 2017-08-26 22:59:26 +10:00 committed by Randy Mackay
parent 89e6e70235
commit 0f22f923e1
2 changed files with 4 additions and 5 deletions

View File

@ -11,14 +11,13 @@
/// @brief Class managing the pilot's control inputs
class AC_InputManager{
public:
AC_InputManager(uint16_t loop_rate):
_loop_rate(loop_rate)
{
AC_InputManager() {
// setup parameter defaults
AP_Param::setup_object_defaults(this, var_info);
}
static const struct AP_Param::GroupInfo var_info[];
void set_loop_rate(uint16_t loop_rate) { _loop_rate = loop_rate; }
protected:

View File

@ -17,8 +17,8 @@
class AC_InputManager_Heli : public AC_InputManager {
public:
// Constructor
AC_InputManager_Heli(uint16_t loop_rate):
AC_InputManager(loop_rate)
AC_InputManager_Heli():
AC_InputManager()
{
// setup parameter defaults
AP_Param::setup_object_defaults(this, var_info);