VSS input: one step back
This commit is contained in:
parent
8ca9b62b22
commit
6347b11c27
|
@ -103,7 +103,7 @@ uint16_t rpmAcceleration;dRPM;"RPM/s",1, 0, 0, 5, 2
|
||||||
int16_t autoscale tpsAccelFuel;@@GAUGE_NAME_FUEL_TPS_EXTRA@@;"ms",{1/@@PACK_MULT_MS@@}, 0, 0, 0, 3
|
int16_t autoscale tpsAccelFuel;@@GAUGE_NAME_FUEL_TPS_EXTRA@@;"ms",{1/@@PACK_MULT_MS@@}, 0, 0, 0, 3
|
||||||
! Ignition
|
! Ignition
|
||||||
int16_t autoscale ignitionAdvance;@@GAUGE_NAME_TIMING_ADVANCE@@;"deg",{1/@@PACK_MULT_ANGLE@@}, 0, 0, 0, 1
|
int16_t autoscale ignitionAdvance;@@GAUGE_NAME_TIMING_ADVANCE@@;"deg",{1/@@PACK_MULT_ANGLE@@}, 0, 0, 0, 1
|
||||||
uint16_t globalFrequencyInputCounter;;"",1, 0, 0, 65000, 0, @@GAUGE_CATEGORY_SYNC@@
|
uint16_t unusedDwellWasHere
|
||||||
|
|
||||||
uint16_t autoscale coilDutyCycle;@@GAUGE_NAME_DWELL_DUTY@@;"%",{1/@@PACK_MULT_PERCENT@@}, 0, 0, 0, 0
|
uint16_t autoscale coilDutyCycle;@@GAUGE_NAME_DWELL_DUTY@@;"%",{1/@@PACK_MULT_PERCENT@@}, 0, 0, 0, 0
|
||||||
! Idle & ETB
|
! Idle & ETB
|
||||||
|
|
|
@ -26,11 +26,6 @@ void FrequencySensor::initIfValid(brain_pin_e pin, SensorConverter &converter, f
|
||||||
|
|
||||||
m_filter.configureLowpass(1, filterParameter);
|
m_filter.configureLowpass(1, filterParameter);
|
||||||
|
|
||||||
#if ! EFI_UNIT_TEST
|
|
||||||
// a global counter is so much better than nothing right? at least some way to validate VSS input
|
|
||||||
engine->outputChannels.globalFrequencyInputCounter++;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
setFunction(converter);
|
setFunction(converter);
|
||||||
|
|
||||||
m_pin = pin;
|
m_pin = pin;
|
||||||
|
@ -58,6 +53,7 @@ void FrequencySensor::deInit() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void FrequencySensor::onEdge(efitick_t nowNt) {
|
void FrequencySensor::onEdge(efitick_t nowNt) {
|
||||||
|
// diagnostics
|
||||||
eventCounter++;
|
eventCounter++;
|
||||||
float frequency = 1 / m_edgeTimer.getElapsedSecondsAndReset(nowNt);
|
float frequency = 1 / m_edgeTimer.getElapsedSecondsAndReset(nowNt);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue