rusEFI
The most advanced open source ECU
Loading...
Searching...
No Matches
Functions
trigger_honda.cpp File Reference

Functions

void configureHondaCbr600 (TriggerWaveform *s)
 
void configureHondaK_12_1 (TriggerWaveform *s)
 
void configureHondaK_4_1 (TriggerWaveform *s)
 
void initialize_one_of_24_2_2 (TriggerWaveform *s, int firstCount, int secondCount)
 
void configureHondaJ30A2_24_1_1 (TriggerWaveform *s)
 

Function Documentation

◆ configureHondaCbr600()

void configureHondaCbr600 ( TriggerWaveform s)

Definition at line 13 of file trigger_honda.cpp.

13 {
15
16 s->tdcPosition = 0; // todo: hard-code TDC position once we know it
17 s->setTriggerSynchronizationGap2(/*from*/3.9, /*to*/8);
18
21
24
27}
void initialize(operation_mode_e operationMode, SyncEdge syncEdge)
void addEvent720(angle_t angle, TriggerValue const state, TriggerWheel const channelIndex=TriggerWheel::T_PRIMARY)
void setTriggerSynchronizationGap2(float syncRatioFrom, float syncRatioTo)
@ FOUR_STROKE_CAM_SENSOR

Referenced by TriggerWaveform::initializeTriggerWaveform().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ configureHondaJ30A2_24_1_1()

void configureHondaJ30A2_24_1_1 ( TriggerWaveform s)

Definition at line 96 of file trigger_honda.cpp.

96 {
98
99 size_t count = 6;
100
101 s->tdcPosition = 0;
102
103 s->setTriggerSynchronizationGap3(/*gapIndex*/0, 1.6, 4);
104 for (size_t i = 1 ; i < count ; i++) {
105 s->setTriggerSynchronizationGap3(/*gapIndex*/i, 0.65, 1.4);
106 }
107 s->setTriggerSynchronizationGap3(/*gapIndex*/count, 0.2, 0.55);
108 }
void setTriggerSynchronizationGap3(int index, float syncRatioFrom, float syncRatioTo)
void initialize_one_of_24_2_2(TriggerWaveform *s, int firstCount, int secondCount)
uint16_t count
Definition tunerstudio.h:1

Referenced by TriggerWaveform::initializeTriggerWaveform().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ configureHondaK_12_1()

void configureHondaK_12_1 ( TriggerWaveform s)

Definition at line 30 of file trigger_honda.cpp.

30 {
32
33 // nominal gap 0.33
35 // nominal gap 2.0
36 s->setTriggerSynchronizationGap2(1.1f, 2.4f);
37
38 int count = 12;
39 float tooth = 360 / count; // hint: tooth = 30
40
41 // for VR we only handle rises so width does not matter much
42 int width = 4;
43
44 // Extra "+1" tooth happens 1/3 of the way between first two teeth
45 s->addToothRiseFall(tooth / 3, width);
46
47 for (int i = 1; i <= count; i++) {
48 s->addToothRiseFall(tooth * i, width);
49 }
50}
void addToothRiseFall(angle_t angle, angle_t width=10, TriggerWheel const channelIndex=TriggerWheel::T_PRIMARY)
void setSecondTriggerSynchronizationGap2(float syncRatioFrom, float syncRatioTo)
@ FOUR_STROKE_CRANK_SENSOR

Referenced by TriggerWaveform::initializeTriggerWaveform().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ configureHondaK_4_1()

void configureHondaK_4_1 ( TriggerWaveform s)

Exhaust cam shaft, not variable on Honda K 2003 Honda Element

Definition at line 56 of file trigger_honda.cpp.

56 {
58
59 s->setTriggerSynchronizationGap3(/*gapIndex*/0, 1.5, 4.5); // nominal 2.27
60 s->setTriggerSynchronizationGap3(/*gapIndex*/1, 0.1, 0.5); // nominal 0.28
61
62 angle_t end = 70.5;
63 int w = 15;
64 s->addToothRiseFall(end + 90 * 0, w);
65 s->addToothRiseFall(end + 90 * 1, w);
66 s->addToothRiseFall(end + 90 * 2, w);
67 s->addToothRiseFall(end + 90 * 3, w);
68
69 s->addToothRiseFall(360, 7);
70}
float angle_t

Referenced by TriggerWaveform::initializeTriggerWaveform().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ initialize_one_of_24_2_2()

void initialize_one_of_24_2_2 ( TriggerWaveform s,
int  firstCount,
int  secondCount 
)

Definition at line 72 of file trigger_honda.cpp.

72 {
74
75 float narrow = 360 / 24;
76 float wide = narrow * 2;
77
78 float base = 0;
79
80 for (int i = 0; i < firstCount; i++) {
81 s->addToothFallRise(base + narrow, narrow / 2);
82 base += narrow;
83 }
84
85 s->addToothFallRise(base + wide, wide / 2);
86 base += wide;
87
88 for (int i = 0; i < secondCount; i++) {
89 s->addToothFallRise(base + narrow, narrow / 2);
90 base += narrow;
91 }
92
93 s->addToothFallRise(360, narrow/2);
94}
void addToothFallRise(angle_t angle, angle_t width=10, TriggerWheel const channelIndex=TriggerWheel::T_PRIMARY)

Referenced by configureHondaJ30A2_24_1_1().

Here is the call graph for this function:
Here is the caller graph for this function:

Go to the source code of this file.