parent
efcb45a94c
commit
17026dbb3d
|
@ -620,8 +620,9 @@ bool TriggerNoiseFilter::noiseFilter(efitick_t nowNt,
|
||||||
}
|
}
|
||||||
|
|
||||||
void TriggerCentral::decodeMapCam(efitick_t timestamp, float currentPhase) {
|
void TriggerCentral::decodeMapCam(efitick_t timestamp, float currentPhase) {
|
||||||
if (engineConfiguration->vvtMode[0] == VVT_MAP_V_TWIN &&
|
isDecodingMapCam = engineConfiguration->vvtMode[0] == VVT_MAP_V_TWIN &&
|
||||||
Sensor::getOrZero(SensorType::Rpm) < engineConfiguration->cranking.rpm) {
|
Sensor::getOrZero(SensorType::Rpm) < engineConfiguration->cranking.rpm;
|
||||||
|
if (isDecodingMapCam) {
|
||||||
// we are trying to figure out which 360 half of the total 720 degree cycle is which, so we compare those in 360 degree sense.
|
// we are trying to figure out which 360 half of the total 720 degree cycle is which, so we compare those in 360 degree sense.
|
||||||
auto toothAngle360 = currentPhase;
|
auto toothAngle360 = currentPhase;
|
||||||
while (toothAngle360 >= 360) {
|
while (toothAngle360 >= 360) {
|
||||||
|
|
Loading…
Reference in New Issue