mirror of https://github.com/rusefi/rusefi-1.git
auto-sync
This commit is contained in:
parent
003217c98f
commit
1bfda63efe
|
@ -11,5 +11,7 @@
|
||||||
EXTERN_ENGINE;
|
EXTERN_ENGINE;
|
||||||
|
|
||||||
void setDaihatsu(DECLARE_ENGINE_PARAMETER_F) {
|
void setDaihatsu(DECLARE_ENGINE_PARAMETER_F) {
|
||||||
|
engineConfiguration->specs.cylindersCount = 3;
|
||||||
|
engineConfiguration->specs.firingOrder = FO_1_THEN_2_THEN_3_THEN_4_THEN_5_THEN_6;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -311,6 +311,8 @@ case FO_1_THEN_2_THEN_3_THEN_4_THEN_5_THEN_6:
|
||||||
return "FO_1_THEN_2_THEN_3_THEN_4_THEN_5_THEN_6";
|
return "FO_1_THEN_2_THEN_3_THEN_4_THEN_5_THEN_6";
|
||||||
case FO_ONE_CYLINDER:
|
case FO_ONE_CYLINDER:
|
||||||
return "FO_ONE_CYLINDER";
|
return "FO_ONE_CYLINDER";
|
||||||
|
case FO_1_2_3:
|
||||||
|
return "FO_1_2_3";
|
||||||
case Force_4b_firing_order:
|
case Force_4b_firing_order:
|
||||||
return "Force_4b_firing_order";
|
return "Force_4b_firing_order";
|
||||||
}
|
}
|
||||||
|
|
|
@ -276,6 +276,9 @@ typedef enum {
|
||||||
// 2 cylinder
|
// 2 cylinder
|
||||||
FO_1_THEN_2 = 8,
|
FO_1_THEN_2 = 8,
|
||||||
|
|
||||||
|
// 3 cylinder
|
||||||
|
FO_1_2_3 = 10,
|
||||||
|
|
||||||
// 4 cylinder
|
// 4 cylinder
|
||||||
FO_1_THEN_3_THEN_4_THEN2 = 1,
|
FO_1_THEN_3_THEN_4_THEN2 = 1,
|
||||||
FO_1_THEN_2_THEN_4_THEN3 = 2,
|
FO_1_THEN_2_THEN_4_THEN3 = 2,
|
||||||
|
|
|
@ -297,6 +297,8 @@ static int order_1_8_4_3_6_5_7_2[] = { 1, 8, 4, 3, 6, 5, 7, 2 };
|
||||||
|
|
||||||
static int order_1_2[] = {1, 2};
|
static int order_1_2[] = {1, 2};
|
||||||
|
|
||||||
|
static int order_1_2_3[] = {1, 2, 3};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param index from zero to cylindersCount - 1
|
* @param index from zero to cylindersCount - 1
|
||||||
* @return cylinderId from one to cylindersCount
|
* @return cylinderId from one to cylindersCount
|
||||||
|
@ -306,9 +308,12 @@ int getCylinderId(firing_order_e firingOrder, int index) {
|
||||||
switch (firingOrder) {
|
switch (firingOrder) {
|
||||||
case FO_ONE_CYLINDER:
|
case FO_ONE_CYLINDER:
|
||||||
return 1;
|
return 1;
|
||||||
|
// 2 cylinder
|
||||||
case FO_1_THEN_2:
|
case FO_1_THEN_2:
|
||||||
return order_1_2[index];
|
return order_1_2[index];
|
||||||
|
// 3 cylinder
|
||||||
|
case FO_1_2_3:
|
||||||
|
return order_1_2_3[index];
|
||||||
// 4 cylinder
|
// 4 cylinder
|
||||||
case FO_1_THEN_3_THEN_4_THEN2:
|
case FO_1_THEN_3_THEN_4_THEN2:
|
||||||
return order_1_THEN_3_THEN_4_THEN2[index];
|
return order_1_THEN_3_THEN_4_THEN2[index];
|
||||||
|
|
|
@ -273,5 +273,5 @@ int getRusEfiVersion(void) {
|
||||||
return 123; // this is here to make the compiler happy about the unused array
|
return 123; // this is here to make the compiler happy about the unused array
|
||||||
if (UNUSED_CCM_SIZE[0] * 0 != 0)
|
if (UNUSED_CCM_SIZE[0] * 0 != 0)
|
||||||
return 3211; // this is here to make the compiler happy about the unused array
|
return 3211; // this is here to make the compiler happy about the unused array
|
||||||
return 20150908;
|
return 20150910;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue