mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 14:38:30 -04:00
71141080a1
Implementation for Hirth. - Base class - AP_EFI - polynomial functional throttle linearization - AP_EFI_State parameter addition and changes for hirth logging - to fix autotest errors - updated comments - Hirth CI/CD autotest fail fixes - logging - fix CI issues
29 lines
498 B
C++
29 lines
498 B
C++
#include "AP_EFI_config.h"
|
|
|
|
#if AP_EFI_THROTTLE_LINEARISATION_ENABLED
|
|
|
|
/*
|
|
throttle linearisation support
|
|
*/
|
|
class AP_EFI_ThrLin {
|
|
public:
|
|
|
|
AP_EFI_ThrLin();
|
|
|
|
static const struct AP_Param::GroupInfo var_info[];
|
|
|
|
/*
|
|
apply throttle linearisation, returning value to pass to the
|
|
engine
|
|
*/
|
|
float linearise_throttle(float throttle_pct);
|
|
|
|
private:
|
|
AP_Int8 enable;
|
|
AP_Float coefficient[3];
|
|
AP_Float offset;
|
|
};
|
|
|
|
#endif // AP_EFI_THROTTLE_LINEARISATION_ENABLED
|
|
|