vvttoothDurations0 NT2US #5193 (#5194)

* vvttoothDurations0 NT2US #5193

* vvttoothDurations0 NT2US #5193
This commit is contained in:
Andreika 2023-03-21 15:45:08 +02:00 committed by GitHub
parent 0e74456abf
commit 134d34385e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -311,7 +311,7 @@ void hwHandleVvtCamSignal(TriggerValue front, efitick_t nowNt, int index) {
front == TriggerValue::RISE ? SHAFT_PRIMARY_RISING : SHAFT_PRIMARY_FALLING, nowNt);
// yes we log data from all VVT channels into same fields for now
tc->triggerState.vvtSyncGapRatio = vvtDecoder.triggerSyncGapRatio;
tc->triggerState.vvttoothDurations0 = vvtDecoder.toothDurations[0];
tc->triggerState.vvtToothDurations0 = (uint32_t)NT2US(vvtDecoder.toothDurations[0]);
tc->triggerState.vvtStateIndex = vvtDecoder.currentCycle.current_index;
}

View File

@ -1,7 +1,7 @@
struct_no_prefix trigger_state_s
uint32_t crankSynchronizationCounter;Crank sync counter\nUsually matches crank revolutions
float vvtSyncGapRatio;;"", 1, 0, -10000, 10000, 3
float vvttoothDurations0;;"", 1, 0, -10000, 10000, 3
uint32_t vvtToothDurations0;;"us", 1, 0, 0, 100000, 3
float vvtCurrentPosition;;"", 1, 0, -10000, 10000, 3
float triggerSyncGapRatio;@@GAUGE_NAME_TRG_GAP@@;"", 1, 0, -10000, 10000, 3