Something something Automatic Compression Release #3442
This commit is contained in:
parent
23612b5873
commit
8333234737
|
@ -830,6 +830,25 @@ void setHellenDefaultVrThresholds(DECLARE_CONFIG_PARAMETER_SIGNATURE) {
|
|||
}
|
||||
}
|
||||
|
||||
void proteusHarley(DECLARE_CONFIG_PARAMETER_SIGNATURE) {
|
||||
engineConfiguration->luaOutputPins[0] = PROTEUS_LS_16;
|
||||
#if HW_PROTEUS
|
||||
strncpy(config->luaScript, R"(
|
||||
startPwm(0, 100, 0)
|
||||
function onTick()
|
||||
rpm = getSensor("RPM")
|
||||
-- handle nil RPM, todo: change firmware to avoid nil RPM
|
||||
rpm = (rpm == nil and 0 or rpm)
|
||||
print('Rpm ' .. rpm)
|
||||
print('getTimeSinceTriggerEventMs ' .. getTimeSinceTriggerEventMs())
|
||||
|
||||
enableCompressionReleaseSolenoid = getTimeSinceTriggerEventMs() < 5000 and rpm < 300
|
||||
setPwmDuty(0, enableCompressionReleaseSolenoid and 100 or 0)
|
||||
end
|
||||
)", efi::size(config->luaScript));
|
||||
#endif
|
||||
}
|
||||
|
||||
void proteusLuaDemo(DECLARE_CONFIG_PARAMETER_SIGNATURE) {
|
||||
#if HW_PROTEUS
|
||||
engineConfiguration->tpsMin = 889;
|
||||
|
|
|
@ -30,6 +30,7 @@ void mreBCM(DECLARE_CONFIG_PARAMETER_SIGNATURE);
|
|||
*/
|
||||
void proteusBoardTest(DECLARE_CONFIG_PARAMETER_SIGNATURE);
|
||||
void proteusLuaDemo(DECLARE_CONFIG_PARAMETER_SIGNATURE);
|
||||
void proteusHarley(DECLARE_CONFIG_PARAMETER_SIGNATURE);
|
||||
|
||||
void setTest33816EngineConfiguration(DECLARE_CONFIG_PARAMETER_SIGNATURE);
|
||||
void setBoschHDEV_5_injectors(DECLARE_CONFIG_PARAMETER_SIGNATURE);
|
||||
|
|
|
@ -943,6 +943,9 @@ void resetConfigurationExt(configuration_callback_t boardCallback, engine_type_e
|
|||
case PROTEUS_LUA_DEMO:
|
||||
proteusLuaDemo(PASS_CONFIG_PARAMETER_SIGNATURE);
|
||||
break;
|
||||
case PROTEUS_HARLEY:
|
||||
proteusHarley(PASS_CONFIG_PARAMETER_SIGNATURE);
|
||||
break;
|
||||
case PROTEUS_BMW_M73:
|
||||
setEngineBMW_M73_Proteus(PASS_CONFIG_PARAMETER_SIGNATURE);
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue