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/AP_EFI/AP_EFI_ThrottleLinearisation.h
Views: 1798
1
#include "AP_EFI_config.h"
2
3
#if AP_EFI_THROTTLE_LINEARISATION_ENABLED
4
5
/*
6
throttle linearisation support
7
*/
8
class AP_EFI_ThrLin {
9
public:
10
11
AP_EFI_ThrLin();
12
13
static const struct AP_Param::GroupInfo var_info[];
14
15
/*
16
apply throttle linearisation, returning value to pass to the
17
engine
18
*/
19
float linearise_throttle(float throttle_pct);
20
21
private:
22
AP_Int8 enable;
23
AP_Float coefficient[3];
24
AP_Float offset;
25
};
26
27
#endif // AP_EFI_THROTTLE_LINEARISATION_ENABLED
28
29
30