trigger gap logging: it's a mess :(
This commit is contained in:
parent
0f320448ff
commit
25778f0890
|
@ -104,6 +104,7 @@ PrimaryTriggerDecoder::PrimaryTriggerDecoder(const char* name)
|
||||||
#if ! EFI_PROD_CODE
|
#if ! EFI_PROD_CODE
|
||||||
bool printTriggerDebug = false;
|
bool printTriggerDebug = false;
|
||||||
bool printTriggerTrace = false;
|
bool printTriggerTrace = false;
|
||||||
|
// todo: migrate to triggerSyncGapRatio or triggerActualSyncGapRatio?
|
||||||
float actualSynchGap;
|
float actualSynchGap;
|
||||||
#endif /* ! EFI_PROD_CODE */
|
#endif /* ! EFI_PROD_CODE */
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@ struct_no_prefix trigger_state_s
|
||||||
float autoscale vvtSyncGapRatio;;"", 1, 0, -10000, 10000, 3
|
float autoscale vvtSyncGapRatio;;"", 1, 0, -10000, 10000, 3
|
||||||
float autoscale vvtCurrentPosition;;"", 1, 0, -10000, 10000, 3
|
float autoscale vvtCurrentPosition;;"", 1, 0, -10000, 10000, 3
|
||||||
float autoscale triggerSyncGapRatio;@@GAUGE_NAME_TRG_GAP@@;"", 1, 0, -10000, 10000, 3
|
float autoscale triggerSyncGapRatio;@@GAUGE_NAME_TRG_GAP@@;"", 1, 0, -10000, 10000, 3
|
||||||
float triggerActualSyncGapRatio;
|
float triggerActualSyncGapRatio;trigger: unused field?
|
||||||
|
|
||||||
uint8_t triggerStateIndex
|
uint8_t triggerStateIndex
|
||||||
uint8_t vvtCounter
|
uint8_t vvtCounter
|
||||||
|
|
|
@ -227,6 +227,7 @@ TEST(misc, testFordAspire) {
|
||||||
static void testTriggerDecoder2(const char *msg, engine_type_e type, int synchPointIndex, float channel1duty, float channel2duty, float expectedGapRatio = NAN) {
|
static void testTriggerDecoder2(const char *msg, engine_type_e type, int synchPointIndex, float channel1duty, float channel2duty, float expectedGapRatio = NAN) {
|
||||||
printf("====================================================================================== testTriggerDecoder2 msg=%s\r\n", msg);
|
printf("====================================================================================== testTriggerDecoder2 msg=%s\r\n", msg);
|
||||||
|
|
||||||
|
actualSynchGap = 0; // global variables are bad, let's at least reset state
|
||||||
// Some configs use aux valves, which requires this sensor
|
// Some configs use aux valves, which requires this sensor
|
||||||
std::unordered_map<SensorType, float> sensorVals = {{SensorType::DriverThrottleIntent, 0}};
|
std::unordered_map<SensorType, float> sensorVals = {{SensorType::DriverThrottleIntent, 0}};
|
||||||
EngineTestHelper eth(type, sensorVals);
|
EngineTestHelper eth(type, sensorVals);
|
||||||
|
|
Loading…
Reference in New Issue