progress towards renix 66-2-2-2
This commit is contained in:
parent
f54db83d67
commit
d74e7f5d11
|
@ -959,6 +959,8 @@ case FOUR_STROKE_CAM_SENSOR:
|
|||
return "FOUR_STROKE_CAM_SENSOR";
|
||||
case FOUR_STROKE_CRANK_SENSOR:
|
||||
return "FOUR_STROKE_CRANK_SENSOR";
|
||||
case FOUR_STROKE_THREE_TIMES_CRANK_SENSOR:
|
||||
return "FOUR_STROKE_THREE_TIMES_CRANK_SENSOR";
|
||||
case FOUR_STROKE_SYMMETRICAL_CRANK_SENSOR:
|
||||
return "FOUR_STROKE_SYMMETRICAL_CRANK_SENSOR";
|
||||
case Force_4_bytes_size_operation_mode_e:
|
||||
|
@ -1155,6 +1157,8 @@ case TT_MAZDA_MIATA_VVT_TEST:
|
|||
return "TT_MAZDA_MIATA_VVT_TEST";
|
||||
case TT_MAZDA_SOHC_4:
|
||||
return "TT_MAZDA_SOHC_4";
|
||||
case TT_RENIX_66_2_2_2:
|
||||
return "TT_RENIX_66_2_2_2";
|
||||
case TT_RENIX_44_2_2:
|
||||
return "TT_RENIX_44_2_2";
|
||||
case TT_MIATA_NB2_VVT_CAM:
|
||||
|
|
|
@ -332,13 +332,18 @@ typedef enum {
|
|||
|
||||
TT_RENIX_44_2_2 = 44,
|
||||
|
||||
/**
|
||||
* Same as TT_RENIX_44_2_2 but repeated three times, not two.
|
||||
*/
|
||||
TT_RENIX_66_2_2_2 = 45,
|
||||
|
||||
// do not forget to edit "#define trigger_type_e_enum" line in integration/rusefi_config.txt file to propogate new value to rusefi.ini TS project
|
||||
// do not forget to invoke "gen_config.bat" once you make changes to integration/rusefi_config.txt
|
||||
// todo: one day a hero would integrate some of these things into Makefile in order to reduce manual magic
|
||||
//
|
||||
// Another point: once you add a new trigger, run get_trigger_images.bat which would run rusefi_test.exe from unit_tests
|
||||
//
|
||||
TT_UNUSED = 45, // this is used if we want to iterate over all trigger types
|
||||
TT_UNUSED = 46, // this is used if we want to iterate over all trigger types
|
||||
|
||||
Force_4_bytes_size_trigger_type = ENUM_32_BITS,
|
||||
} trigger_type_e;
|
||||
|
@ -493,9 +498,15 @@ typedef enum {
|
|||
|
||||
/**
|
||||
* 720 degree engine cycle but trigger is defined using a 180 cycle which is when repeated three more times
|
||||
* In other words, same pattern is repeatet on the crank wheel twice.
|
||||
*/
|
||||
FOUR_STROKE_SYMMETRICAL_CRANK_SENSOR = 4,
|
||||
|
||||
/**
|
||||
* Same pattern repeated three times on crank wheel. Crazy, I know!
|
||||
*/
|
||||
FOUR_STROKE_THREE_TIMES_CRANK_SENSOR = 5,
|
||||
|
||||
Force_4_bytes_size_operation_mode_e = ENUM_32_BITS,
|
||||
} operation_mode_e;
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
#include "trigger_renix.h"
|
||||
|
||||
// TT_RENIX_44_2_2
|
||||
void initializeRenix44_4_4(TriggerWaveform *s) {
|
||||
void initializeRenix44_2_2(TriggerWaveform *s) {
|
||||
s->initialize(FOUR_STROKE_SYMMETRICAL_CRANK_SENSOR);
|
||||
|
||||
// 44-2-2 is symmetrical so we only need to define one half
|
||||
|
|
|
@ -10,4 +10,7 @@
|
|||
#include "trigger_structure.h"
|
||||
|
||||
// TT_RENIX_44_2_2
|
||||
void initializeRenix44_4_4(TriggerWaveform *s);
|
||||
void initializeRenix44_2_2(TriggerWaveform *s);
|
||||
|
||||
// TT_RENIX_66_2_2_2
|
||||
void initializeRenix66_2_2(TriggerWaveform *s);
|
||||
|
|
|
@ -116,6 +116,8 @@ int TriggerWaveform::getTriggerWaveformSynchPointIndex() const {
|
|||
*/
|
||||
angle_t TriggerWaveform::getCycleDuration() const {
|
||||
switch (operationMode) {
|
||||
case FOUR_STROKE_THREE_TIMES_CRANK_SENSOR:
|
||||
return 120;
|
||||
case FOUR_STROKE_SYMMETRICAL_CRANK_SENSOR:
|
||||
return 180;
|
||||
case FOUR_STROKE_CRANK_SENSOR:
|
||||
|
@ -468,8 +470,9 @@ void TriggerWaveform::initializeTriggerWaveform(Logging *logger, operation_mode_
|
|||
initializeMazdaMiataVVtCamShape(this);
|
||||
break;
|
||||
|
||||
case TT_RENIX_66_2_2_2:
|
||||
case TT_RENIX_44_2_2:
|
||||
initializeRenix44_4_4(this);
|
||||
initializeRenix44_2_2(this);
|
||||
break;
|
||||
|
||||
case TT_MIATA_VVT:
|
||||
|
|
|
@ -503,7 +503,7 @@ struct trigger_config_s @brief Trigger wheel(s) configuration
|
|||
|
||||
custom bool32_t 4 bits, U32, @OFFSET@, [0:0], "false", "true"
|
||||
|
||||
#define trigger_type_e_enum "custom toothed wheel", "Ford Aspire", "Dodge Neon 1995", "Miata NA", "Miata NB", "GM_7X", "Cooper R50", "Mazda SOHC 4", "60/2", "36/1", "Honda 4+24+1", "Mitsubishi", "Honda 4+24", "Honda 1+4+24", "Dodge Neon 2003", "Mazda DOHC 1+4", "1+1", "1+60/2", "Single Tooth", "Dodge Ram 1+16", "60/2 VW", "Honda 1+24", "Dodge Stratus", "36_2_2_2", "Nissan Primera", "2JZ", "Rover K", "GM LS 24", "Honda CBR 600", "2JZ_1_12", "Honda CBR 600 custom", "3/1 skipped" , "Dodge Neon 2003 crank", "Miata VVT", "trg34", "trg35", "Subaru 7+6", "Jeep 18-2-2-2", "WIP", "Dodge Neon 1995 crank only", "Jeep XJ 4 cyl", "FiatIAQ_P8", "Mazda Z5", "trg43", "Renix 44-2-2", "trg45", "INVALID"
|
||||
#define trigger_type_e_enum "custom toothed wheel", "Ford Aspire", "Dodge Neon 1995", "Miata NA", "Miata NB", "GM_7X", "Cooper R50", "Mazda SOHC 4", "60/2", "36/1", "Honda 4+24+1", "Mitsubishi", "Honda 4+24", "Honda 1+4+24", "Dodge Neon 2003", "Mazda DOHC 1+4", "1+1", "1+60/2", "Single Tooth", "Dodge Ram 1+16", "60/2 VW", "Honda 1+24", "Dodge Stratus", "36_2_2_2", "Nissan Primera", "2JZ", "Rover K", "GM LS 24", "Honda CBR 600", "2JZ_1_12", "Honda CBR 600 custom", "3/1 skipped" , "Dodge Neon 2003 crank", "Miata VVT", "trg34", "trg35", "Subaru 7+6", "Jeep 18-2-2-2", "WIP", "Dodge Neon 1995 crank only", "Jeep XJ 4 cyl", "FiatIAQ_P8", "Mazda Z5", "trg43", "Renix 44-2-2", "Renix 66-2-2-2", "trg46", "trg47", "trg48", "INVALID"
|
||||
|
||||
custom trigger_type_e 4 bits, U32, @OFFSET@, [0:7], @@trigger_type_e_enum@@
|
||||
trigger_type_e type;set trigger_type X
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
package com.rusefi.config.generated;
|
||||
|
||||
// this file was generated automatically by rusEfi tool ConfigDefinition.jar based on gen_config.bat integration\rusefi_config.txt Sat Apr 18 20:42:28 EDT 2020
|
||||
// this file was generated automatically by rusEfi tool ConfigDefinition.jar based on gen_config.bat integration\rusefi_config.txt Sun Apr 19 09:40:24 EDT 2020
|
||||
|
||||
// by class com.rusefi.output.FileJavaFieldsConsumer
|
||||
import com.rusefi.config.*;
|
||||
|
@ -1655,7 +1655,7 @@ public class Fields {
|
|||
public static final Field TPS2_1ADCCHANNEL = Field.create("TPS2_1ADCCHANNEL", 515, FieldType.INT8, adc_channel_e);
|
||||
public static final Field OVERRIDECRANKINGIGNITION = Field.create("OVERRIDECRANKINGIGNITION", 516, FieldType.INT);
|
||||
public static final Field SENSORCHARTFREQUENCY = Field.create("SENSORCHARTFREQUENCY", 520, FieldType.INT);
|
||||
public static final String[] trigger_type_e = {"custom toothed wheel", "Ford Aspire", "Dodge Neon 1995", "Miata NA", "Miata NB", "GM_7X", "Cooper R50", "Mazda SOHC 4", "60/2", "36/1", "Honda 4+24+1", "Mitsubishi", "Honda 4+24", "Honda 1+4+24", "Dodge Neon 2003", "Mazda DOHC 1+4", "1+1", "1+60/2", "Single Tooth", "Dodge Ram 1+16", "60/2 VW", "Honda 1+24", "Dodge Stratus", "36_2_2_2", "Nissan Primera", "2JZ", "Rover K", "GM LS 24", "Honda CBR 600", "2JZ_1_12", "Honda CBR 600 custom", "3/1 skipped" , "Dodge Neon 2003 crank", "Miata VVT", "trg34", "trg35", "Subaru 7+6", "Jeep 18-2-2-2", "WIP", "Dodge Neon 1995 crank only", "Jeep XJ 4 cyl", "FiatIAQ_P8", "Mazda Z5", "trg43", "Renix 44-2-2", "trg45", "INVALID"};
|
||||
public static final String[] trigger_type_e = {"custom toothed wheel", "Ford Aspire", "Dodge Neon 1995", "Miata NA", "Miata NB", "GM_7X", "Cooper R50", "Mazda SOHC 4", "60/2", "36/1", "Honda 4+24+1", "Mitsubishi", "Honda 4+24", "Honda 1+4+24", "Dodge Neon 2003", "Mazda DOHC 1+4", "1+1", "1+60/2", "Single Tooth", "Dodge Ram 1+16", "60/2 VW", "Honda 1+24", "Dodge Stratus", "36_2_2_2", "Nissan Primera", "2JZ", "Rover K", "GM LS 24", "Honda CBR 600", "2JZ_1_12", "Honda CBR 600 custom", "3/1 skipped" , "Dodge Neon 2003 crank", "Miata VVT", "trg34", "trg35", "Subaru 7+6", "Jeep 18-2-2-2", "WIP", "Dodge Neon 1995 crank only", "Jeep XJ 4 cyl", "FiatIAQ_P8", "Mazda Z5", "trg43", "Renix 44-2-2", "Renix 66-2-2-2", "trg46", "trg47", "trg48", "INVALID"};
|
||||
public static final Field TRIGGER_TYPE = Field.create("TRIGGER_TYPE", 524, FieldType.INT, trigger_type_e);
|
||||
public static final Field TRIGGER_TODOREMOVEMEONEDAY0 = Field.create("TRIGGER_TODOREMOVEMEONEDAY0", 528, FieldType.BIT, 0);
|
||||
public static final Field TRIGGER_TODOREMOVEMEONEDAY1 = Field.create("TRIGGER_TODOREMOVEMEONEDAY1", 528, FieldType.BIT, 1);
|
||||
|
|
Loading…
Reference in New Issue