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

Detailed Description

set engine_type 26 VVT set engine_type 45

See also custom_engine.cpp

Date
Nov 14, 2014
Author
Andrey Belomutskiy, (c) 2012-2020

Definition in file test_engine.cpp.

Functions

void setTestEngineBoschQuickStart ()
 
void setTestEngineWithBoschQuickStartCam ()
 
void setTestCamEngineConfiguration ()
 
void setTestCrankEngineConfiguration ()
 
void setTestDcWastegateConfiguration ()
 
void setTestVVTEngineConfiguration ()
 
void setTestEngineIssue366both ()
 
void setTestEngineIssue366rise ()
 
void setProteusAnalogPwmTest ()
 

Function Documentation

◆ setProteusAnalogPwmTest()

void setProteusAnalogPwmTest ( )

Definition at line 116 of file test_engine.cpp.

116 {
117 engineConfiguration->camInputs[0] = Gpio::E0; // a random unused pin needed for happy HW CI. Huh, why do we have cam stimulation?!
118
119 // lowest cpu trigger possible
121
122 // Disable trigger stim
125
126 // The idle control pin is connected to the default TPS input, analog volt 2
127 engineConfiguration->idle.solenoidPin = Gpio::PROTEUS_IGN_10;
128
129 // 5893hz is coprime with the analog sample rate, 500hz, so hopefully we get less aliasing
131
132 // Test range is 20% to 80%
135}
@ Unassigned
static constexpr engine_configuration_s * engineConfiguration

Referenced by applyEngineType().

Here is the caller graph for this function:

◆ setTestCamEngineConfiguration()

void setTestCamEngineConfiguration ( )

Definition at line 28 of file test_engine.cpp.

28 {
31
35
37
38 // Many tests were written when the default target AFR was 14.0, so use that for tests by default.
40
41 engineConfiguration->ignitionMode = IM_ONE_COIL;
42 setConstantDwell(3); // 50% duty cycle @ 5000 rpm
43
45
52}
void setConstantDwell(floatms_t dwellMs)
Sets the same dwell time across the whole getRpm() range set dwell X.
void setCamOperationMode()
void setWholeIatCorrTimingTable(float value)

Referenced by applyEngineType(), setTestCrankEngineConfiguration(), and setTestEngineIssue366both().

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

◆ setTestCrankEngineConfiguration()

void setTestCrankEngineConfiguration ( )

Definition at line 54 of file test_engine.cpp.

54 {
56
58
60 // this is related to 'setDefaultBaseEngine' having 'skippedWheelOnCam = true' which is a weird fact by itself
62}
void setCrankOperationMode()
void setTestCamEngineConfiguration()

Referenced by applyEngineType().

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

◆ setTestDcWastegateConfiguration()

void setTestDcWastegateConfiguration ( )

Definition at line 64 of file test_engine.cpp.

64 {
66 engineConfiguration->etbFunctions[0] = DC_Wastegate;
68 engineConfiguration->tps1_1AdcChannel = EFI_ADC_1; // PA1
69
70 // PWM pin
72 // DIR pin
74 // Disable pin
76 // we only have pwm/dir, no dira/dirb
78}
static constexpr persistent_config_s * config
scaled_channel< uint8_t, 2, 1 > boostTableOpenLoop[BOOST_LOAD_COUNT][BOOST_RPM_COUNT]
constexpr void setTable(TElement(&dest)[N][M], const VElement value)

Referenced by applyEngineType().

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

◆ setTestEngineBoschQuickStart()

void setTestEngineBoschQuickStart ( )

Definition at line 18 of file test_engine.cpp.

Referenced by applyEngineType().

Here is the caller graph for this function:

◆ setTestEngineIssue366both()

void setTestEngineIssue366both ( )

◆ setTestEngineIssue366rise()

void setTestEngineIssue366rise ( )

Definition at line 109 of file test_engine.cpp.

109 {
111}
void setTestEngineIssue366both()

Referenced by applyEngineType().

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

◆ setTestEngineWithBoschQuickStartCam()

void setTestEngineWithBoschQuickStartCam ( )

Definition at line 22 of file test_engine.cpp.

Referenced by applyEngineType().

Here is the caller graph for this function:

◆ setTestVVTEngineConfiguration()

void setTestVVTEngineConfiguration ( )

Definition at line 80 of file test_engine.cpp.

80 {
82
86
87 // set algorithm 3
88 setAlgorithm(engine_load_mode_e::LM_SPEED_DENSITY);
89
92
93 // set global_trigger_offset_angle 0
95
96 engineConfiguration->vvtMode[0] = VVT_SINGLE_TOOTH;
97}
void setAlgorithm(engine_load_mode_e algo)
brain_input_pin_e triggerInputPins[TRIGGER_INPUT_PIN_COUNT]

Referenced by applyEngineType().

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

Go to the source code of this file.