send more of Engine Sniffer data #4560

This commit is contained in:
rusefillc 2022-10-29 21:55:05 -04:00
parent 579cbddb54
commit 0283351d6c
4 changed files with 7 additions and 17 deletions

View File

@ -178,11 +178,5 @@ operation_mode_e lookupOperationMode();
#define getRevolutionCounter() (engine->rpmCalculator.getRevolutionCounterM())
#if EFI_ENGINE_SNIFFER
#define addEngineSnifferEvent(name, msg) { if (getTriggerCentral()->isEngineSnifferEnabled) { waveChart.addEvent3((name), (msg)); } }
#else
#define addEngineSnifferEvent(n, msg) {}
#endif /* EFI_ENGINE_SNIFFER */
efitick_t scheduleByAngle(scheduling_s *timer, efitick_t edgeTimestamp, angle_t angle, action_s action);

View File

@ -7,7 +7,7 @@
*/
#include "pch.h"
#include "engine_sniffer.h"
#include "drivers/gpio/gpio_ext.h"
@ -19,11 +19,6 @@
#include "electronic_throttle.h"
#endif /* EFI_ELECTRONIC_THROTTLE_BODY */
#if EFI_ENGINE_SNIFFER
#include "engine_sniffer.h"
extern WaveChart waveChart;
#endif /* EFI_ENGINE_SNIFFER */
// todo: clean this mess, this should become 'static'/private
EnginePins enginePins;

View File

@ -61,11 +61,6 @@ PwmConfig triggerSignal;
static int atTriggerVersion = 0;
#if EFI_ENGINE_SNIFFER
#include "engine_sniffer.h"
extern WaveChart waveChart;
#endif /* EFI_ENGINE_SNIFFER */
/**
* todo: why is this method NOT reciprocal to getCrankDivider?!
* todo: oh this method has only one usage? there must me another very similar method!

View File

@ -73,6 +73,12 @@ static void resetNow() {
WaveChart::WaveChart() : logging("wave chart", WAVE_LOGGING_BUFFER, sizeof(WAVE_LOGGING_BUFFER)) {
}
#if EFI_ENGINE_SNIFFER
#define addEngineSnifferEvent(name, msg) { if (getTriggerCentral()->isEngineSnifferEnabled) { waveChart.addEvent3((name), (msg)); } }
#else
#define addEngineSnifferEvent(n, msg) {}
#endif /* EFI_ENGINE_SNIFFER */
void WaveChart::init() {
isInitialized = true;
reset();