trailing spark outputs #2931

This commit is contained in:
Andrey 2021-07-21 19:55:14 -04:00
parent 1bf98433ef
commit a8afb6eb85
5 changed files with 31 additions and 1 deletions

View File

@ -689,6 +689,28 @@ void setBoschHDEV_5_injectors(DECLARE_CONFIG_PARAMETER_SIGNATURE) {
CONFIG(mc33_t_hold_tot) = 10000;
}
/**
* set engine_type 107
*/
void setRotary(DECLARE_CONFIG_PARAMETER_SIGNATURE) {
engineConfiguration->specs.cylindersCount = 2;
engineConfiguration->specs.firingOrder = FO_1_2;
engineConfiguration->trigger.type = TT_36_2_2_2;
setOperationMode(engineConfiguration, TWO_STROKE);
strcpy(CONFIG(engineMake), ENGINE_MAKE_MAZDA);
strcpy(CONFIG(engineCode), "13B");
strcpy(CONFIG(vehicleName), "test");
engineConfiguration->ignitionMode = IM_INDIVIDUAL_COILS;
engineConfiguration->injectionPins[2] = GPIO_UNASSIGNED; // injector in default pinout
engineConfiguration->injectionPins[3] = GPIO_UNASSIGNED;
engineConfiguration->enableTrailingSparks = true;
engineConfiguration->trailingCoilPins[0] = GPIOC_9;
engineConfiguration->trailingCoilPins[1] = GPIOE_10;
}
/**
* set engine_type 103

View File

@ -33,3 +33,4 @@ void proteusBoardTest(DECLARE_CONFIG_PARAMETER_SIGNATURE);
void setTest33816EngineConfiguration(DECLARE_CONFIG_PARAMETER_SIGNATURE);
void setBoschHDEV_5_injectors(DECLARE_CONFIG_PARAMETER_SIGNATURE);
void setHellen72etb(DECLARE_CONFIG_PARAMETER_SIGNATURE);
void setRotary(DECLARE_CONFIG_PARAMETER_SIGNATURE);

View File

@ -1,6 +1,6 @@
#include "global.h"
#include "rusefi_enums.h"
// was generated automatically by rusEFI tool from rusefi_enums.h // by enum2string.jar tool on Sat Jul 17 00:25:01 EDT 2021
// was generated automatically by rusEFI tool from rusefi_enums.h // by enum2string.jar tool on Wed Jul 21 19:45:59 EDT 2021
// see also gen_config_and_enums.bat
@ -536,6 +536,8 @@ case TEST_ISSUE_366_RISE:
return "TEST_ISSUE_366_RISE";
case TEST_ISSUE_898:
return "TEST_ISSUE_898";
case TEST_ROTARY:
return "TEST_ROTARY";
case TLE8888_BENCH_ENGINE:
return "TLE8888_BENCH_ENGINE";
case TOYOTA_2JZ_GTE_VVTi:

View File

@ -1104,6 +1104,9 @@ void resetConfigurationExt(configuration_callback_t boardCallback, engine_type_e
case TEST_33816:
setTest33816EngineConfiguration(PASS_CONFIG_PARAMETER_SIGNATURE);
break;
case TEST_ROTARY:
setRotary(PASS_CONFIG_PARAMETER_SIGNATURE);
break;
#endif // HW_FRANKENSO
#ifdef HW_SUBARU_EG33
case SUBARUEG33_DEFAULTS:

View File

@ -220,6 +220,8 @@ typedef enum {
BMW_M73_MRE = 104,
BMW_M73_MRE_SLAVE = 105,
TEST_ROTARY = ET_TEST_ROTARY,
Force_4_bytes_size_engine_type = ENUM_32_BITS,
} engine_type_e;