ardupilot/libraries/AP_EFI/AP_EFI_ThrottleLinearisation.h
Pradeep CK 71141080a1 AP_EFI : Hirth Driver Addition
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
2023-11-17 13:09:02 +11:00

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