/* * In case of dual TPS this function would return logical TPS position * * @return Current TPS position, percent of WOT. 0 means idle and 100 means Wide Open Throttle */ float getTPS(void) { // todo: if (config->isDualTps) // todo: blah blah // todo: if two TPS do not match - show OBD code via malfunction_central.c return getPrimatyRawTPS(); }
percent_t getTPS(DECLARE_ENGINE_PARAMETER_SIGNATURE) { #if !EFI_PROD_CODE if (!cisnan(engine->mockTpsValue)) { return engine->mockTpsValue; } #endif /* EFI_PROD_CODE */ if (!hasTpsSensor(PASS_ENGINE_PARAMETER_SIGNATURE)) return NO_TPS_MAGIC_VALUE; // todo: if (config->isDualTps) // todo: blah blah // todo: if two TPS do not match - show OBD code via malfunction_central.c return getPrimatyRawTPS(PASS_ENGINE_PARAMETER_SIGNATURE); }