extra checks
This commit is contained in:
parent
f20b22fa81
commit
632912d265
|
@ -11,6 +11,9 @@
|
||||||
#include "pch.h"
|
#include "pch.h"
|
||||||
|
|
||||||
#if EFI_TOOTH_LOGGER
|
#if EFI_TOOTH_LOGGER
|
||||||
|
#if !EFI_SHAFT_POSITION_INPUT
|
||||||
|
fail("EFI_SHAFT_POSITION_INPUT required to have EFI_EMULATE_POSITION_SENSORS")
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Engine idles around 20Hz and revs up to 140Hz, at 60/2 and 8 cylinders we have about 20Khz events
|
* Engine idles around 20Hz and revs up to 140Hz, at 60/2 and 8 cylinders we have about 20Khz events
|
||||||
|
|
|
@ -31,6 +31,9 @@
|
||||||
#include "fuel_computer.h"
|
#include "fuel_computer.h"
|
||||||
|
|
||||||
#if EFI_HPFP
|
#if EFI_HPFP
|
||||||
|
#if !EFI_SHAFT_POSITION_INPUT
|
||||||
|
fail("EFI_SHAFT_POSITION_INPUT required to have EFI_EMULATE_POSITION_SENSORS")
|
||||||
|
#endif
|
||||||
|
|
||||||
// A constant we use; doesn't seem important to hoist into engineConfiguration.
|
// A constant we use; doesn't seem important to hoist into engineConfiguration.
|
||||||
static constexpr int rpm_spinning_cutoff = 60; // Below this RPM, we don't run the logic
|
static constexpr int rpm_spinning_cutoff = 60; // Below this RPM, we don't run the logic
|
||||||
|
|
|
@ -26,6 +26,9 @@
|
||||||
|
|
||||||
|
|
||||||
#if EFI_MAP_AVERAGING
|
#if EFI_MAP_AVERAGING
|
||||||
|
#if !EFI_SHAFT_POSITION_INPUT
|
||||||
|
fail("EFI_SHAFT_POSITION_INPUT required to have EFI_EMULATE_POSITION_SENSORS")
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "map_averaging.h"
|
#include "map_averaging.h"
|
||||||
#include "trigger_central.h"
|
#include "trigger_central.h"
|
||||||
|
|
|
@ -30,6 +30,10 @@ bool needEvent(const int currentIndex, const MultiChannelStateSequence & mcss, i
|
||||||
|
|
||||||
#if EFI_EMULATE_POSITION_SENSORS
|
#if EFI_EMULATE_POSITION_SENSORS
|
||||||
|
|
||||||
|
#if !EFI_SHAFT_POSITION_INPUT
|
||||||
|
fail("EFI_SHAFT_POSITION_INPUT required to have EFI_EMULATE_POSITION_SENSORS")
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "trigger_emulator_algo.h"
|
#include "trigger_emulator_algo.h"
|
||||||
#include "trigger_central.h"
|
#include "trigger_central.h"
|
||||||
#include "trigger_simulator.h"
|
#include "trigger_simulator.h"
|
||||||
|
|
Loading…
Reference in New Issue