From c959a4d919b06dd3d8e343f4911f2ee9071d265a Mon Sep 17 00:00:00 2001 From: rusEfi Date: Thu, 4 Dec 2014 16:03:21 -0600 Subject: [PATCH] auto-sync --- firmware/controllers/trigger/rpm_calculator.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/firmware/controllers/trigger/rpm_calculator.h b/firmware/controllers/trigger/rpm_calculator.h index 6f231e4e4f..608219046e 100644 --- a/firmware/controllers/trigger/rpm_calculator.h +++ b/firmware/controllers/trigger/rpm_calculator.h @@ -31,12 +31,18 @@ public: int mockRpm; #endif RpmCalculator(); + /** + * Please note that this is a relatively heavy method due to getTimeNowNt() usage + */ bool isRunning(DECLARE_ENGINE_PARAMETER_F); int rpm(DECLARE_ENGINE_PARAMETER_F); void onNewEngineCycle(); uint32_t getRevolutionCounter(void); void setRpmValue(int value); uint32_t getRevolutionCounterSinceStart(void); + /** + * This is public because sometimes we cannot afford to call isRunning() and the value is good enough + */ volatile int rpmValue; /** * This is a performance optimization: let's pre-calulate this each time RPM changes