rusEFI
The most advanced open source ECU
Loading...
Searching...
No Matches
test_engine.cpp
Go to the documentation of this file.
1/**
2 * @file test_engine.cpp
3 *
4 * set engine_type 26
5 * VVT
6 * set engine_type 45
7 *
8 * See also custom_engine.cpp
9 *
10 * @date Nov 14, 2014
11 * @author Andrey Belomutskiy, (c) 2012-2020
12 */
13
14#include "pch.h"
15#include "test_engine.h"
16#include "proteus_meta.h"
17
21
26
27// TEST_ENGINE
53
56
58
60 // this is related to 'setDefaultBaseEngine' having 'skippedWheelOnCam = true' which is a weird fact by itself
62}
63
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}
79
98
99#if EFI_UNIT_TEST
108
112#endif /* EFI_UNIT_TEST */
113
114#ifdef HARDWARE_CI
115// set engine_type 30
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}
136#endif // HARDWARE_CI
@ Unassigned
void setConstantDwell(floatms_t dwellMs)
Sets the same dwell time across the whole getRpm() range set dwell X.
void setCamOperationMode()
void setCrankOperationMode()
void setWholeIatCorrTimingTable(float value)
static constexpr persistent_config_s * config
static constexpr engine_configuration_s * engineConfiguration
void setAlgorithm(engine_load_mode_e algo)
brain_input_pin_e triggerInputPins[TRIGGER_INPUT_PIN_COUNT]
scaled_channel< uint8_t, 2, 1 > boostTableOpenLoop[BOOST_LOAD_COUNT][BOOST_RPM_COUNT]
constexpr void setTable(TElement(&dest)[N][M], const VElement value)
void setProteusAnalogPwmTest()
void setTestCamEngineConfiguration()
void setTestVVTEngineConfiguration()
void setTestEngineIssue366both()
void setTestCrankEngineConfiguration()
void setTestEngineIssue366rise()
void setTestEngineBoschQuickStart()
void setTestDcWastegateConfiguration()
void setTestEngineWithBoschQuickStartCam()