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