auto-sync

This commit is contained in:
rusEfi 2014-12-04 16:03:21 -06:00
parent 69521790fb
commit c959a4d919
1 changed files with 6 additions and 0 deletions

View File

@ -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