24 static uint8_t grabPedalCounter = 0;
26 if (grabPedalCounter % 2 == 0) {
62 return interpolateMsg(
"tps", 0xE48, 0, 0x1A0, POSITION_FULLY_OPEN, sentValue);
64 return interpolateMsg(
"tps", 250, 0, 3560, POSITION_FULLY_OPEN, sentValue);
virtual float getRaw() const
void setValidValue(float value, efitick_t timestamp)
float interpolateMsg(const char *msg, float x1, float y1, float x2, float y2, float x)
Linear interpolation by two points.
static constexpr engine_configuration_s * engineConfiguration
@ AcceleratorPedalPrimary
@ AcceleratorPedalSecondary
float getSentValue(SentInput input)
uint16_t customSentTpsMax
uint16_t customSentTpsMin
static void onGrabPedal()
void grapTps1PrimaryIsClosed()
void grapTps1PrimaryIsOpen()
void sentTpsDecode(SentInput sentCh)
float decodeTpsSentValue(float sentValue)
void grabPedalIsWideOpen()
void tsCalibrationSetData(TsCalMode mode, float value, float value2, float timeoutMs)
maintainConstantValue implementation header