From 91acff8ff81e4cc5162695bc45b787707b460902 Mon Sep 17 00:00:00 2001 From: Andrey Date: Sat, 29 Apr 2023 22:20:07 -0400 Subject: [PATCH] sperry picking to make matters green --- firmware/controllers/math/throttle_model.cpp | 3 +++ firmware/controllers/math/throttle_model.h | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/firmware/controllers/math/throttle_model.cpp b/firmware/controllers/math/throttle_model.cpp index c2dcea0834..a4538088fc 100644 --- a/firmware/controllers/math/throttle_model.cpp +++ b/firmware/controllers/math/throttle_model.cpp @@ -128,6 +128,9 @@ expected 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); } diff --git a/firmware/controllers/math/throttle_model.h b/firmware/controllers/math/throttle_model.h index b189c1afb3..88c3215bf4 100644 --- a/firmware/controllers/math/throttle_model.h +++ b/firmware/controllers/math/throttle_model.h @@ -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 estimateThrottleFlow(float map, float tps);