auto-sync
This commit is contained in:
parent
5414ac6f71
commit
e33424b2e7
|
@ -366,7 +366,7 @@ void initEngineContoller(Engine *engine) {
|
|||
* there is an implicit dependency on the fact that 'tachometer' listener is the 1st listener - this case
|
||||
* other listeners can access current RPM value
|
||||
*/
|
||||
initRpmCalculator();
|
||||
initRpmCalculator(engine);
|
||||
#endif /* EFI_SHAFT_POSITION_INPUT */
|
||||
|
||||
#if EFI_TUNER_STUDIO
|
||||
|
|
|
@ -222,7 +222,7 @@ float getCrankshaftAngleNt(uint64_t timeNt) {
|
|||
return timeSinceZeroAngleNt / getOneDegreeTimeNt(rpmState.rpm());
|
||||
}
|
||||
|
||||
void initRpmCalculator(void) {
|
||||
void initRpmCalculator(Engine *engine) {
|
||||
#if (EFI_PROD_CODE || EFI_SIMULATOR) || defined(__DOXYGEN__)
|
||||
initLogging(&logger, "rpm calc");
|
||||
engine->rpmCalculator = &rpmState;
|
||||
|
|
|
@ -55,16 +55,16 @@ private:
|
|||
int getRpmE(Engine *engine);
|
||||
bool isCrankingE(Engine *engine);
|
||||
void rpmShaftPositionCallback(trigger_event_e ckpSignalType, uint32_t index, RpmCalculator *rpmState);
|
||||
/**
|
||||
* @brief Initialize RPM calculator
|
||||
*/
|
||||
void initRpmCalculator(Engine *engine);
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
/**
|
||||
* @brief Initialize RPM calculator
|
||||
*/
|
||||
void initRpmCalculator(void);
|
||||
bool isCranking(void);
|
||||
uint64_t getLastRpmEventTime(void);
|
||||
|
||||
|
|
Loading…
Reference in New Issue