auto-sync
This commit is contained in:
parent
ea4e267a0d
commit
e1ffcfd569
|
@ -31,12 +31,18 @@ public:
|
||||||
int mockRpm;
|
int mockRpm;
|
||||||
#endif
|
#endif
|
||||||
RpmCalculator();
|
RpmCalculator();
|
||||||
|
/**
|
||||||
|
* Please note that this is a relatively heavy method due to getTimeNowNt() usage
|
||||||
|
*/
|
||||||
bool isRunning(DECLARE_ENGINE_PARAMETER_F);
|
bool isRunning(DECLARE_ENGINE_PARAMETER_F);
|
||||||
int rpm(DECLARE_ENGINE_PARAMETER_F);
|
int rpm(DECLARE_ENGINE_PARAMETER_F);
|
||||||
void onNewEngineCycle();
|
void onNewEngineCycle();
|
||||||
uint32_t getRevolutionCounter(void);
|
uint32_t getRevolutionCounter(void);
|
||||||
void setRpmValue(int value);
|
void setRpmValue(int value);
|
||||||
uint32_t getRevolutionCounterSinceStart(void);
|
uint32_t getRevolutionCounterSinceStart(void);
|
||||||
|
/**
|
||||||
|
* This is public because sometimes we cannot afford to call isRunning() and the value is good enough
|
||||||
|
*/
|
||||||
volatile int rpmValue;
|
volatile int rpmValue;
|
||||||
/**
|
/**
|
||||||
* This is a performance optimization: let's pre-calulate this each time RPM changes
|
* This is a performance optimization: let's pre-calulate this each time RPM changes
|
||||||
|
|
Loading…
Reference in New Issue