AC_InputManager: remove MAIN_LOOP_RATE in favour of parameter value
This commit is contained in:
parent
89e6e70235
commit
0f22f923e1
@ -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:
|
||||
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user