extra checks

This commit is contained in:
Andrey 2023-06-22 14:45:55 -05:00
parent f20b22fa81
commit 632912d265
4 changed files with 13 additions and 0 deletions

View File

@ -11,6 +11,9 @@
#include "pch.h"
#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

View File

@ -31,6 +31,9 @@
#include "fuel_computer.h"
#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.
static constexpr int rpm_spinning_cutoff = 60; // Below this RPM, we don't run the logic

View File

@ -26,6 +26,9 @@
#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 "trigger_central.h"

View File

@ -30,6 +30,10 @@ bool needEvent(const int currentIndex, const MultiChannelStateSequence & mcss, i
#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_central.h"
#include "trigger_simulator.h"