This commit is contained in:
rusefi 2023-10-31 01:53:52 -04:00
parent 4b64e0e087
commit 4f53fdc11d
4 changed files with 19 additions and 14 deletions

View File

@ -151,10 +151,8 @@ void setBoardDefaultConfiguration() {
engineConfiguration->boardUseTempPullUp = true;
engineConfiguration->acSwitch = Gpio::Unassigned;
engineConfiguration->fuelPumpPin = Gpio::H144_OUT_PWM2;
engineConfiguration->fanPin = Gpio::H144_OUT_PWM4;
engineConfiguration->mainRelayPin = Gpio::Unassigned;
engineConfiguration->tachOutputPin = Gpio::H144_OUT_PWM3;
// "required" hardware is done - set some reasonable defaults

View File

@ -44,15 +44,15 @@ pins:
# H144_LS_1
id: G7
class: outputs
function: Front Injector
ts_name: 6 Front Injector
function: Front Injector 1
ts_name: 6 Front Injector 1
- pin: 7
# H144_LS_2
id: G8
class: outputs
function: Rear Injector
ts_name: 7 Rear Injector
function: Rear Injector 2
ts_name: 7 Rear Injector 2
- pin: 8
# H144_OUT_IO6
@ -90,8 +90,8 @@ pins:
# H144_IGN_1
id: C13
class: outputs
ts_name: 24 Front Coil
function: Front Coil
ts_name: 24 Front Coil 1
function: Front Coil 1
type: ign
- pin: 25
@ -148,10 +148,12 @@ pins:
- pin: 38
function: CAN bus low
type: can
color: blue
- pin: 39
function: CAN bus high
type: can
color: green
- pin: 41
# H144_IN_PPS
@ -171,8 +173,8 @@ pins:
# H144_IGN_2
id: E5
class: outputs
ts_name: 43 Rear Coil
function: Rear Coil
ts_name: 43 Rear Coil 2
function: Rear Coil 2
type: ign
- pin: 44

View File

@ -14,13 +14,17 @@ void proteusHarley() {
engineConfiguration->camInputs[0] = PROTEUS_DIGITAL_6;
engineConfiguration->vvtMode[0] = VVT_MAP_V_TWIN;
engineConfiguration->mainRelayPin = Gpio::Unassigned;
engineConfiguration->mapCamDetectionAnglePosition = 50;
engineConfiguration->acrPin = Gpio::PROTEUS_IGN_8;
engineConfiguration->acrPin2 = Gpio::PROTEUS_IGN_9;
engineConfiguration->luaOutputPins[0] = Gpio::PROTEUS_LS_12;
#if HW_PROTEUS
strncpy(config->luaScript, R"(
outputIndex = 0
startPwm(outputIndex, 100, 0)
--outputIndex = 0
--startPwm(outputIndex, 100, 0)
rpmLimitSetting = findSetting("compReleaseRpm", 300)
compReleaseDulationLimit = findSetting("compReleaseDur", 6000)
@ -118,8 +122,8 @@ function onTick()
--print('getTimeSinceTriggerEventMs ' .. getTimeSinceTriggerEventMs())
enableCompressionReleaseSolenoid = getTimeSinceTriggerEventMs() < compReleaseDulationLimit and rpm < rpmLimitSetting
duty = enableCompressionReleaseSolenoid and 1 or 0
print("Compression release solenoid " .. duty)
setPwmDuty(outputIndex, duty)
-- print("Compression release solenoid " .. duty)
-- setPwmDuty(outputIndex, duty)
else
if offCounter == 0 then --goodbye sweet love
txCan(1, 0x502, 0, packet502) --goodbye

View File

@ -2117,6 +2117,7 @@ end_struct
#define PROTOCOL_HIP_NAME "HIP"
#define PROTOCOL_TACH_NAME "tach"
#define PROTOCOL_HPFP_NAME "hpfp"
#define PROTOCOL_ACR_NAME "acr"
#define PROTOCOL_WA_CHANNEL_1 "input1"
#define PROTOCOL_WA_CHANNEL_2 "input2"