parent
000716483e
commit
9a676d581f
|
@ -1,2 +1,8 @@
|
|||
bit boardUseTachPullUp,"12v","5v"
|
||||
bit boardUseCrankPullUp,"Hall","VR"
|
||||
bit boardUseTempPullUp,"With Pull Ups","Piggyback Mode"
|
||||
bit boardUse2stepPullDown,"With Pull Down","With Pull Up"
|
||||
bit boardUseCamPullDown,"With Pull Down","With Pull Up"
|
||||
bit boardUseD4PullDown,"With Pull Down","With Pull Up"
|
||||
bit boardUseD5PullDown,"With Pull Down","With Pull Up"
|
||||
bit boardUseCamVrPullUp,"Hall","VR"
|
||||
|
|
|
@ -112,18 +112,18 @@ void boardInitHardware() {
|
|||
}
|
||||
|
||||
void boardOnConfigurationChange(engine_configuration_s * /*previousConfiguration*/) {
|
||||
alphaTachPullUp.setValue(engineConfiguration->boardUseTachPullUp);
|
||||
alphaTempPullUp.setValue(engineConfiguration->boardUseTempPullUp);
|
||||
alphaCrankPPullUp.setValue(engineConfiguration->boardUseCrankPullUp);
|
||||
alphaCrankNPullUp.setValue(engineConfiguration->boardUseCrankPullUp);
|
||||
alpha2stepPullDown.setValue(engineConfiguration->boardUse2stepPullDown);
|
||||
alphaCamPullDown.setValue(engineConfiguration->boardUseCamPullDown);
|
||||
alphaCamVrPullUp.setValue(engineConfiguration->boardUseCamVrPullUp);
|
||||
alphaTachPullUp.setValue(config->boardUseTachPullUp);
|
||||
alphaTempPullUp.setValue(config->boardUseTempPullUp);
|
||||
alphaCrankPPullUp.setValue(config->boardUseCrankPullUp);
|
||||
alphaCrankNPullUp.setValue(config->boardUseCrankPullUp);
|
||||
alpha2stepPullDown.setValue(config->boardUse2stepPullDown);
|
||||
alphaCamPullDown.setValue(config->boardUseCamPullDown);
|
||||
alphaCamVrPullUp.setValue(config->boardUseCamVrPullUp);
|
||||
|
||||
alphaD2PullDown.setValue(engineConfiguration->boardUseD2PullDown);
|
||||
alphaD3PullDown.setValue(engineConfiguration->boardUseD3PullDown);
|
||||
alphaD4PullDown.setValue(engineConfiguration->boardUseD4PullDown);
|
||||
alphaD5PullDown.setValue(engineConfiguration->boardUseD5PullDown);
|
||||
alphaD2PullDown.setValue(config->boardUseD2PullDown);
|
||||
alphaD3PullDown.setValue(config->boardUseD3PullDown);
|
||||
alphaD4PullDown.setValue(config->boardUseD4PullDown);
|
||||
alphaD5PullDown.setValue(config->boardUseD5PullDown);
|
||||
}
|
||||
|
||||
|
||||
|
@ -174,7 +174,7 @@ void setBoardDefaultConfiguration() {
|
|||
// engineConfiguration->baroSensor.type = MT_MPXH6400;
|
||||
// engineConfiguration->baroSensor.hwChannel = H144_IN_MAP3; // On-board MAP
|
||||
|
||||
engineConfiguration->boardUseTempPullUp = true;
|
||||
config->boardUseTempPullUp = true;
|
||||
|
||||
engineConfiguration->acSwitch = Gpio::Unassigned;
|
||||
engineConfiguration->fuelPumpPin = Gpio::H144_OUT_IO12;
|
||||
|
|
|
@ -117,12 +117,10 @@ void boardOnConfigurationChange(engine_configuration_s * /*previousConfiguration
|
|||
alphaCrankPPullUp.setValue(engineConfiguration->boardUseCrankPullUp);
|
||||
alpha2stepPullDown.setValue(engineConfiguration->boardUse2stepPullDown);
|
||||
alphaCamPullDown.setValue(engineConfiguration->boardUseCamPullDown);
|
||||
//alphaCamVrPullUp.setValue(engineConfiguration->boardUseCamVrPullUp);
|
||||
|
||||
alphaD2PullDown.setValue(engineConfiguration->boardUseD2PullDown);
|
||||
alphaD3PullDown.setValue(engineConfiguration->boardUseD3PullDown);
|
||||
alphaD4PullDown.setValue(engineConfiguration->boardUseD4PullDown);
|
||||
//alphaD5PullDown.setValue(engineConfiguration->boardUseD5PullDown);
|
||||
}
|
||||
|
||||
void setBoardConfigOverrides() {
|
||||
|
|
|
@ -1,2 +1,5 @@
|
|||
bit boardUseTempPullUp,"With Pull Ups","Piggyback Mode"
|
||||
bit boardUse2stepPullDown,"With Pull Down","With Pull Up"
|
||||
bit boardUseD2PullDown,"With Pull Down","With Pull Up"
|
||||
bit boardUseD3PullDown,"With Pull Down","With Pull Up"
|
||||
|
||||
|
|
|
@ -104,31 +104,17 @@ static void setupDefaultSensorInputs() {
|
|||
void boardInitHardware() {
|
||||
setHellenEnPin(Gpio::MM176_EN_PIN);
|
||||
|
||||
// alphaTempPullUp.initPin("a-temp", Gpio::H144_OUT_IO4);
|
||||
alphaCrankPPullUp.initPin("a-crank-p", Gpio::MM176_GP16);
|
||||
// alphaTachPullUp.initPin("a-tach", Gpio::H144_OUT_IO6);
|
||||
// alpha2stepPullDown.initPin("a-2step", Gpio::H144_OUT_IO7);
|
||||
// alphaCamPullDown.initPin("a-cam", Gpio::H144_OUT_IO8);
|
||||
// //alphaCamVrPullUp.initPin("a-cam-vr", Gpio::H144_OUT_IO9);
|
||||
alphaD2PullDown.initPin("a-d2", Gpio::MM176_GP21);
|
||||
alphaD3PullDown.initPin("a-d3", Gpio::MM176_GP22);
|
||||
alphaD4PullDown.initPin("a-d4", Gpio::MM176_GP23);
|
||||
// //alphaD5PullDown.initPin("a-d5", Gpio::H144_LS_8);
|
||||
boardOnConfigurationChange(nullptr);
|
||||
}
|
||||
|
||||
void boardOnConfigurationChange(engine_configuration_s * /*previousConfiguration*/) {
|
||||
// alphaTachPullUp.setValue(engineConfiguration->boardUseTachPullUp);
|
||||
// alphaTempPullUp.setValue(engineConfiguration->boardUseTempPullUp);
|
||||
alphaCrankPPullUp.setValue(engineConfiguration->boardUseCrankPullUp);
|
||||
// alpha2stepPullDown.setValue(engineConfiguration->boardUse2stepPullDown);
|
||||
// alphaCamPullDown.setValue(engineConfiguration->boardUseCamPullDown);
|
||||
// //alphaCamVrPullUp.setValue(engineConfiguration->boardUseCamVrPullUp);
|
||||
//
|
||||
alphaD2PullDown.setValue(engineConfiguration->boardUseD2PullDown);
|
||||
alphaD3PullDown.setValue(engineConfiguration->boardUseD3PullDown);
|
||||
// alphaD4PullDown.setValue(engineConfiguration->boardUseD4PullDown);
|
||||
//alphaD5PullDown.setValue(engineConfiguration->boardUseD5PullDown);
|
||||
}
|
||||
|
||||
void setBoardConfigOverrides() {
|
||||
|
@ -154,7 +140,7 @@ void setBoardDefaultConfiguration() {
|
|||
// engineConfiguration->vvtPins[0] = Gpio::H144_OUT_PWM7;
|
||||
// engineConfiguration->vvtPins[1] = Gpio::H144_OUT_PWM8;
|
||||
|
||||
engineConfiguration->boardUseTempPullUp = true;
|
||||
config->boardUseTempPullUp = true;
|
||||
|
||||
setHellenMMbaro();
|
||||
|
||||
|
|
|
@ -99,7 +99,7 @@ void setHyundaiPb() {
|
|||
engineConfiguration->hpfpValvePin = Gpio::H144_OUT_IO6; // E2
|
||||
engineConfiguration->starterControlPin = Gpio::H144_OUT_PWM5; // F1
|
||||
engineConfiguration->startStopButtonPin = Gpio::H144_IN_VSS; // C4
|
||||
engineConfiguration->boardUse2stepPullDown = true; // looks like 1K extra pull-down is needed on the harness?! :(
|
||||
config->boardUse2stepPullDown = true; // looks like 1K extra pull-down is needed on the harness?! :(
|
||||
engineConfiguration->camInputs[0] = Gpio::H144_IN_D_4; // E6
|
||||
engineConfiguration->map.sensor.hwChannel = H144_IN_MAP2;
|
||||
#endif // HW_HELLEN_4CHAN
|
||||
|
|
|
@ -1034,15 +1034,15 @@ end_struct
|
|||
bit widebandOnSecondBus,"2","1";Select which bus the wideband controller is attached to.
|
||||
bit fuelClosedLoopCorrectionEnabled;Enables lambda sensor closed loop feedback for fuelling.
|
||||
bit oddFireEngine;On even fire engines with even number of cylinders we go wasted spark during cranking. Use this setting to disable wasted spark cranking on odd fire engines.
|
||||
bit boardUseTachPullUp,"12v","5v"
|
||||
bit boardUseTempPullUp,"With Pull Ups","Piggyback Mode"
|
||||
bit unusedFancy3
|
||||
bit unusedFancy4
|
||||
bit yesUnderstandLocking,"yes","no"
|
||||
bit silentTriggerError;Sometimes we have a performance issue while printing error
|
||||
bit useLinearCltSensor
|
||||
bit canReadEnabled;enable can_read/disable can_read
|
||||
bit canWriteEnabled;enable can_write/disable can_write. See also can1ListenMode
|
||||
bit useLinearIatSensor
|
||||
bit boardUse2stepPullDown,"With Pull Down","With Pull Up"
|
||||
bit unusedFancy5
|
||||
bit tachPulseDurationAsDutyCycle,"Duty cycle","Constant time";Treat milliseconds value as duty cycle value, i.e. 0.5ms would become 50%
|
||||
bit isAlternatorControlEnabled;This enables smart alternator control and activates the extra alternator settings.
|
||||
bit invertPrimaryTriggerSignal,"Falling","Rising";https://wiki.rusefi.com/Trigger-Configuration-Guide\nThis setting flips the signal from the primary engine speed sensor.
|
||||
|
@ -1052,13 +1052,13 @@ bit cutFuelOnHardLimit,"yes","no"
|
|||
bit cutSparkOnHardLimit,"yes","no";Be careful enabling this: some engines are known to self-disassemble their valvetrain with a spark cut. Fuel cut is much safer.
|
||||
bit launchFuelCutEnable
|
||||
bit launchSparkCutEnable;This is the Cut Mode normally used
|
||||
bit boardUseCrankPullUp,"Hall","VR"
|
||||
bit boardUseCamPullDown,"With Pull Down","With Pull Up"
|
||||
bit boardUseCamVrPullUp,"Hall","VR"
|
||||
bit boardUseD2PullDown,"With Pull Down","With Pull Up"
|
||||
bit boardUseD3PullDown,"With Pull Down","With Pull Up"
|
||||
bit boardUseD4PullDown,"With Pull Down","With Pull Up"
|
||||
bit boardUseD5PullDown,"With Pull Down","With Pull Up"
|
||||
bit unusedFancy1
|
||||
bit unusedFancy2
|
||||
bit unusedFancy14
|
||||
bit unusedFancy7
|
||||
bit unusedFancy8
|
||||
bit unusedFancy9
|
||||
bit unusedFancy10
|
||||
bit verboseIsoTp;Are you a developer troubleshooting TS over CAN ISO/TP?
|
||||
bit engineSnifferFocusOnInputs
|
||||
bit launchActivateInverted
|
||||
|
|
Loading…
Reference in New Issue