Refactoring, technical debt: export more of trigger attributes into triggers.txt file #2077

This commit is contained in:
rusefillc 2022-04-01 21:10:08 -04:00
parent 1f87bf4413
commit ea94fc05ae
5 changed files with 7 additions and 0 deletions

View File

@ -22,6 +22,7 @@ static float addTooth(float offset, TriggerWaveform *s) {
void configureGm60_2_2_2(TriggerWaveform *s) {
s->initialize(FOUR_STROKE_CAM_SENSOR);
s->isSynchronizationNeeded = false;
s->isSecondWheelCam = true;
float m = CRANK_MODE_MULTIPLIER;
int offset = 1 * m;

View File

@ -26,6 +26,7 @@
void initializeMazdaMiataNaShape(TriggerWaveform *s) {
s->initialize(FOUR_STROKE_CAM_SENSOR);
s->isSecondWheelCam = true;
// nominal gap is 0.325
s->setTriggerSynchronizationGap2(0.1, 0.5);
@ -154,6 +155,7 @@ void configureMazdaProtegeSOHC(TriggerWaveform *s) {
void configureMazdaProtegeLx(TriggerWaveform *s) {
s->initialize(FOUR_STROKE_CAM_SENSOR);
s->isSecondWheelCam = true;
/**
* based on https://svn.code.sf.net/p/rusefi/code/trunk/misc/logs/1993_escort_gt/MAIN_rfi_report_2015-02-01%2017_39.csv
*/

View File

@ -11,6 +11,7 @@
void configureFordAspireTriggerWaveform(TriggerWaveform * s) {
s->initialize(FOUR_STROKE_CAM_SENSOR);
s->isSynchronizationNeeded = false;
s->isSecondWheelCam = true;
float x = 121.90;
float y = 110.86;

View File

@ -56,6 +56,7 @@ TriggerWaveform::TriggerWaveform() {
void TriggerWaveform::initialize(operation_mode_e operationMode) {
isSynchronizationNeeded = true; // that's default value
bothFrontsRequired = false;
isSecondWheelCam = false;
needSecondTriggerInput = false;
shapeWithoutTdc = false;
memset(expectedDutyCycle, 0, sizeof(expectedDutyCycle));

View File

@ -82,6 +82,8 @@ public:
* one primary channel tooth each raising (or falling depending on configuration) front would synchronize
*/
bool isSynchronizationNeeded;
bool isSecondWheelCam;
/**
* number of consecutive trigger gaps needed to synchronize
*/