CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
Ardupilot

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.

GitHub Repository: Ardupilot/ardupilot
Path: blob/master/libraries/AC_InputManager/AC_InputManager.h
Views: 1798
1
#pragma once
2
3
/// @file AC_InputManager.h
4
/// @brief Pilot manual control input library
5
6
#include <AP_Common/AP_Common.h>
7
#include <AP_Param/AP_Param.h>
8
#include <AP_Math/AP_Math.h>
9
10
/// @class AC_InputManager
11
/// @brief Class managing the pilot's control inputs
12
class AC_InputManager{
13
public:
14
AC_InputManager() {
15
// setup parameter defaults
16
AP_Param::setup_object_defaults(this, var_info);
17
}
18
19
/* Do not allow copies */
20
CLASS_NO_COPY(AC_InputManager);
21
22
static const struct AP_Param::GroupInfo var_info[];
23
void set_loop_rate(uint16_t loop_rate) { _loop_rate = loop_rate; }
24
25
protected:
26
// internal variables
27
uint16_t _loop_rate; // rate at which output() function is called (normally 400hz)
28
29
};
30
31