sperry picking to make matters green

This commit is contained in:
Andrey 2023-04-29 22:20:07 -04:00
parent 37c60a3267
commit 91acff8ff8
2 changed files with 6 additions and 1 deletions

View File

@ -128,6 +128,9 @@ expected<float> ThrottleModelBase::estimateThrottleFlow(float map, float tps) {
return estimateThrottleFlow(tip.Value, tps, map, iat.Value);
}
void ThrottleModelBase::onSlowCallback() {
}
float ThrottleModel::effectiveArea(float tps) const {
return interpolate2d(tps, config->throttleEstimateEffectiveAreaBins, config->throttleEstimateEffectiveAreaValues);
}

View File

@ -2,8 +2,10 @@
#include "throttle_model_generated.h"
struct ThrottleModelBase : public throttle_model_s {
struct ThrottleModelBase : public throttle_model_s, public EngineModule {
public:
void onSlowCallback() override;
float estimateThrottleFlow(float tip, float tps, float map, float iat);
expected<float> estimateThrottleFlow(float map, float tps);