HD minor defaults progress
This commit is contained in:
parent
b8399bc1a7
commit
0680b44fe1
|
@ -41,8 +41,8 @@ static void setInjectorPins() {
|
||||||
|
|
||||||
static void setIgnitionPins() {
|
static void setIgnitionPins() {
|
||||||
engineConfiguration->ignitionPins[0] = H144_IGN_1;
|
engineConfiguration->ignitionPins[0] = H144_IGN_1;
|
||||||
engineConfiguration->ignitionPins[1] = GPIO_UNASSIGNED;
|
engineConfiguration->ignitionPins[1] = H144_IGN_2;
|
||||||
engineConfiguration->ignitionPins[2] = H144_IGN_2;
|
engineConfiguration->ignitionPins[2] = GPIO_UNASSIGNED;
|
||||||
engineConfiguration->ignitionPins[3] = GPIO_UNASSIGNED;
|
engineConfiguration->ignitionPins[3] = GPIO_UNASSIGNED;
|
||||||
|
|
||||||
// disable remainder
|
// disable remainder
|
||||||
|
@ -88,14 +88,20 @@ static void setupVbatt() {
|
||||||
|
|
||||||
static void setupDefaultSensorInputs() {
|
static void setupDefaultSensorInputs() {
|
||||||
// trigger inputs, hall
|
// trigger inputs, hall
|
||||||
engineConfiguration->triggerInputPins[0] = H144_IN_CRANK;
|
engineConfiguration->triggerInputPins[0] = H144_IN_SENS4;
|
||||||
engineConfiguration->triggerInputPins[1] = H144_IN_CAM;
|
engineConfiguration->triggerInputPins[1] = GPIO_UNASSIGNED;
|
||||||
engineConfiguration->triggerInputPins[2] = GPIO_UNASSIGNED;
|
engineConfiguration->triggerInputPins[2] = GPIO_UNASSIGNED;
|
||||||
engineConfiguration->camInputs[0] = GPIO_UNASSIGNED;
|
engineConfiguration->camInputs[0] = GPIO_UNASSIGNED;
|
||||||
|
|
||||||
|
engineConfiguration->vehicleSpeedSensorInputPin = H144_IN_VSS;
|
||||||
|
|
||||||
engineConfiguration->tps1_1AdcChannel = H144_IN_TPS;
|
engineConfiguration->tps1_1AdcChannel = H144_IN_TPS;
|
||||||
|
engineConfiguration->tps1_2AdcChannel = H144_IN_O2S2;
|
||||||
engineConfiguration->tps2_1AdcChannel = EFI_ADC_NONE;
|
engineConfiguration->tps2_1AdcChannel = EFI_ADC_NONE;
|
||||||
|
|
||||||
|
engineConfiguration->throttlePedalPositionAdcChannel = H144_IN_PPS;
|
||||||
|
engineConfiguration->throttlePedalPositionSecondAdcChannel = H144_IN_AUX1;
|
||||||
|
|
||||||
engineConfiguration->mafAdcChannel = H144_IN_MAP1;
|
engineConfiguration->mafAdcChannel = H144_IN_MAP1;
|
||||||
engineConfiguration->map.sensor.hwChannel = H144_IN_MAP2;
|
engineConfiguration->map.sensor.hwChannel = H144_IN_MAP2;
|
||||||
engineConfiguration->baroSensor.type = MT_MPXH6400;
|
engineConfiguration->baroSensor.type = MT_MPXH6400;
|
||||||
|
@ -170,8 +176,8 @@ void setBoardDefaultConfiguration() {
|
||||||
// "required" hardware is done - set some reasonable defaults
|
// "required" hardware is done - set some reasonable defaults
|
||||||
setupDefaultSensorInputs();
|
setupDefaultSensorInputs();
|
||||||
|
|
||||||
engineConfiguration->specs.cylindersCount = 4;
|
engineConfiguration->specs.cylindersCount = 2;
|
||||||
engineConfiguration->specs.firingOrder = FO_1_3_4_2;
|
engineConfiguration->specs.firingOrder = FO_1_2;
|
||||||
|
|
||||||
engineConfiguration->ignitionMode = IM_INDIVIDUAL_COILS; // IM_WASTED_SPARK
|
engineConfiguration->ignitionMode = IM_INDIVIDUAL_COILS; // IM_WASTED_SPARK
|
||||||
engineConfiguration->crankingInjectionMode = IM_SIMULTANEOUS;
|
engineConfiguration->crankingInjectionMode = IM_SIMULTANEOUS;
|
||||||
|
|
Loading…
Reference in New Issue