rusEFI
The most advanced open source ECU
Loading...
Searching...
No Matches
frequency_sensor.h
Go to the documentation of this file.
1/**
2 * @file frequency_sensor.h
3 */
4#include "functional_sensor.h"
5#include <rusefi/timer.h>
6#include "biquad.h"
7
9public:
11 : FunctionalSensor(type, timeoutPeriod)
12 { }
13
14 void initIfValid(brain_pin_e pin, SensorConverter &converter, float filterParameter);
15 void deInit();
16
17 // sad workaround: we are not good at BiQuad configuring
18 bool useBiQuad = true;
19
20 void showInfo(const char* sensorName) const override;
21
22 void onEdge(efitick_t nowNt);
23
24 int eventCounter = 0;
25private:
28
30};
void showInfo(const char *sensorName) const override
FrequencySensor(SensorType type, efidur_t timeoutPeriod)
void onEdge(efitick_t nowNt)
void initIfValid(brain_pin_e pin, SensorConverter &converter, float filterParameter)
Class for sensors that convert from some raw floating point value (ex: voltage, frequency,...
SensorType type() const
Definition sensor.h:162
@ Unassigned
converter
efitick_t efidur_t
SensorType
Definition sensor_type.h:18
brain_pin_e pin
Definition stm32_adc.cpp:15