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

This commit is contained in:
rusefillc 2020-12-13 23:11:06 -05:00
parent aadccbdbdf
commit 247fd38f1a
2 changed files with 3 additions and 0 deletions

View File

@ -43,6 +43,7 @@ public class TriggerImage {
private static int sleepAtEnd;
private static int onlyOneTrigger = -1;
// todo: https://github.com/rusefi/rusefi/issues/2077
private static String getTriggerName(TriggerWheelInfo triggerName) {
switch (triggerName.id) {
case Fields.TT_TT_FORD_ASPIRE:

View File

@ -93,6 +93,7 @@ class TriggerWheelInfo {
// todo: this 'isFirstCrankBased' should be taken from triggers.txt not hard-coded here!
// todo: open question if current firmware even has info to provide this info or not?
// todo: https://github.com/rusefi/rusefi/issues/2077
private boolean isFirstCrankBased() {
return id == Fields.TT_TT_GM_LS_24 ||
id == Fields.TT_TT_HONDA_K_12_1 ||
@ -104,6 +105,7 @@ class TriggerWheelInfo {
// todo: this 'isFirstCrankBased' should be taken from triggers.txt not hard-coded here!
// todo: open question if current firmware even has info to provide this info or not?
// todo: https://github.com/rusefi/rusefi/issues/2077
private boolean isSecondCamBased() {
return id == Fields.TT_TT_MAZDA_MIATA_NA ||
id == Fields.TT_TT_MAZDA_DOHC_1_4 ||