rusEFI
The most advanced open source ECU
|
Utility methods related to bench testing.
This file is part of rusEfi - see http://rusefi.com
rusEfi is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.
rusEfi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
Definition in file bench_test.cpp.
Functions | |
bool | isRunningBenchTest () |
const OutputPin * | getOutputOnTheBenchTest () |
static void | benchOn (OutputPin *output) |
static void | benchOff (OutputPin *output) |
static void | runBench (OutputPin *output, float onTimeMs, float offTimeMs, int count, bool swapOnOff) |
static chibios_rt::CounterSemaphore | benchSemaphore (0) |
static void | pinbench (float ontimeMs, float offtimeMs, int iterations, OutputPin *pinParam, bool p_swapOnOff=false) |
static void | cancelBenchTest () |
static void | doRunFuelInjBench (size_t humanIndex, float onTimeMs, float offTimeMs, int count) |
static void | doRunSparkBench (size_t humanIndex, float onTime, float offTime, int count) |
static void | doRunSolenoidBench (size_t humanIndex, float onTime, float offTime, int count) |
static void | doRunBenchTestLuaOutput (size_t humanIndex, float onTimeMs, float offTimeMs, int count) |
static void | fuelInjBenchExt (float humanIndex, float onTimeMs, float offTimeMs, float count) |
static void | fuelInjBench (float onTimeMs, float offTimeMs, float count) |
static void | sparkBenchExt (float humanIndex, float onTime, float offTimeMs, float count) |
static void | sparkBench (float onTime, float offTimeMs, float count) |
static void | tcuSolenoidBench (float humanIndex, float onTime, float offTimeMs, float count) |
static void | luaOutBench2 (float humanIndex, float onTime, float offTimeMs, float count) |
static void | fanBenchExt (float onTimeMs) |
void | fanBench () |
void | fan2Bench () |
void | milBench () |
void | starterRelayBench () |
static void | fuelPumpBenchExt (float durationMs) |
void | acRelayBench () |
static void | mainRelayBench () |
static void | hpfpValveBench () |
void | fuelPumpBench () |
static void | vvtValveBench (int vvtIndex) |
static void | auxOutBench (int index) |
static void | hdAcrBench (int index) |
void | handleBenchCategory (uint16_t index) |
int | getSavedBenchTestPinStates (uint32_t durationsInStateMs[2]) |
static void | handleCommandX14 (uint16_t index) |
static void | fatalErrorForPresetApply () |
void | executeTSCommand (uint16_t subsystem, uint16_t index) |
void | onConfigurationChangeBenchTest () |
void | initBenchTest () |
Variables | |
static bool | isRunningBench = false |
static OutputPin * | outputOnTheBenchTest = nullptr |
static scheduling_s | benchSchedStart |
static scheduling_s | benchSchedEnd |
static int | savedPinToggleCounter = 0 |
static uint32_t | savedDurationsInStateMs [2] = { 0, 0 } |
static volatile bool | isBenchTestPending = false |
static bool | widebandUpdatePending = false |
static float | globalOnTimeMs |
static float | globalOffTimeMs |
static int | globalCount |
static OutputPin * | pinX |
static bool | swapOnOff = false |
static BenchController | instance |
bool | rebootForPresetPending |
void acRelayBench | ( | ) |
Definition at line 277 of file bench_test.cpp.
Referenced by handleBenchCategory(), and initBenchTest().
|
static |
Definition at line 327 of file bench_test.cpp.
Referenced by handleBenchCategory().
|
static |
Definition at line 77 of file bench_test.cpp.
Referenced by runBench().
|
static |
Definition at line 73 of file bench_test.cpp.
Referenced by runBench().
|
static |
|
static |
Definition at line 164 of file bench_test.cpp.
Referenced by handleBenchCategory().
|
static |
Definition at line 195 of file bench_test.cpp.
Referenced by executeTSCommand(), and luaOutBench2().
|
static |
Definition at line 170 of file bench_test.cpp.
Referenced by executeTSCommand(), and fuelInjBenchExt().
|
static |
Definition at line 187 of file bench_test.cpp.
Referenced by executeTSCommand(), and tcuSolenoidBench().
|
static |
Definition at line 179 of file bench_test.cpp.
Referenced by executeTSCommand(), and sparkBenchExt().
void executeTSCommand | ( | uint16_t | subsystem, |
uint16_t | index | ||
) |
Definition at line 539 of file bench_test.cpp.
Referenced by TunerStudio::handleCrcCommand().
void fan2Bench | ( | ) |
Definition at line 257 of file bench_test.cpp.
Referenced by handleBenchCategory(), and initBenchTest().
void fanBench | ( | ) |
Definition at line 253 of file bench_test.cpp.
Referenced by handleBenchCategory(), and initBenchTest().
|
static |
Definition at line 249 of file bench_test.cpp.
Referenced by fanBench(), and initBenchTest().
|
static |
Definition at line 530 of file bench_test.cpp.
Referenced by executeTSCommand().
|
static |
fuelbench 5 1000 2
Definition at line 215 of file bench_test.cpp.
Referenced by initBenchTest().
|
static |
cylinder #2, 5ms ON, 1000ms OFF, repeat 3 times fuelInjBenchExt 2 5 1000 3
Definition at line 208 of file bench_test.cpp.
Referenced by fuelInjBench(), and initBenchTest().
void fuelPumpBench | ( | ) |
Definition at line 290 of file bench_test.cpp.
Referenced by handleBenchCategory(), and initBenchTest().
|
static |
Definition at line 272 of file bench_test.cpp.
Referenced by fuelPumpBench(), and initBenchTest().
const OutputPin* getOutputOnTheBenchTest | ( | ) |
Definition at line 32 of file bench_test.cpp.
Referenced by applyVvtPinState(), and OutputPin::setValue().
int getSavedBenchTestPinStates | ( | uint32_t | durationsInStateMs[2] | ) |
Definition at line 424 of file bench_test.cpp.
Referenced by sendSavedBenchStatePackets().
void handleBenchCategory | ( | uint16_t | index | ) |
Definition at line 338 of file bench_test.cpp.
Referenced by executeTSCommand(), and processCanQcBenchTest().
|
static |
Definition at line 435 of file bench_test.cpp.
Referenced by executeTSCommand().
|
static |
Definition at line 332 of file bench_test.cpp.
Referenced by handleBenchCategory().
|
static |
Definition at line 285 of file bench_test.cpp.
Referenced by handleBenchCategory(), and initBenchTest().
void initBenchTest | ( | ) |
Definition at line 646 of file bench_test.cpp.
Referenced by commonInitEngineController().
bool isRunningBenchTest | ( | ) |
Definition at line 28 of file bench_test.cpp.
Referenced by Engine::efiWatchdog(), FanController::onSlowCallback(), and FuelPumpController::onSlowCallback().
|
static |
channel #1, 5ms ON, 1000ms OFF, repeat 3 times
Definition at line 245 of file bench_test.cpp.
Referenced by initBenchTest().
|
static |
Definition at line 281 of file bench_test.cpp.
Referenced by handleBenchCategory(), and initBenchTest().
void milBench | ( | ) |
we are blinking for 16 seconds so that one can click the button and walk around to see the light blinking
Definition at line 264 of file bench_test.cpp.
Referenced by handleBenchCategory(), and initBenchTest().
void onConfigurationChangeBenchTest | ( | ) |
Definition at line 631 of file bench_test.cpp.
Referenced by incrementGlobalConfigurationVersion(), and initBenchTest().
|
static |
Definition at line 147 of file bench_test.cpp.
Referenced by acRelayBench(), doRunBenchTestLuaOutput(), doRunFuelInjBench(), doRunSolenoidBench(), doRunSparkBench(), fan2Bench(), fanBenchExt(), fuelPumpBenchExt(), hdAcrBench(), hpfpValveBench(), mainRelayBench(), milBench(), starterRelayBench(), and vvtValveBench().
|
static |
Definition at line 92 of file bench_test.cpp.
|
static |
sparkbench 5 400 2 5 ms ON, 400 ms OFF, two times
Definition at line 230 of file bench_test.cpp.
Referenced by initBenchTest().
|
static |
sparkbench2 1 5 1000 2
Definition at line 222 of file bench_test.cpp.
Referenced by initBenchTest(), and sparkBench().
void starterRelayBench | ( | ) |
Definition at line 268 of file bench_test.cpp.
Referenced by handleBenchCategory(), and initBenchTest().
|
static |
solenoid #2, 1000ms ON, 1000ms OFF, repeat 3 times tcusolbench 2 1000 1000 3
Definition at line 238 of file bench_test.cpp.
Referenced by initBenchTest().
|
static |
Definition at line 294 of file bench_test.cpp.
Referenced by handleBenchCategory().
|
static |
Definition at line 63 of file bench_test.cpp.
Referenced by runBench().
|
static |
Definition at line 62 of file bench_test.cpp.
Referenced by runBench().
|
static |
Definition at line 141 of file bench_test.cpp.
Referenced by pinbench().
|
static |
Definition at line 140 of file bench_test.cpp.
Referenced by pinbench().
|
static |
Definition at line 139 of file bench_test.cpp.
Referenced by pinbench().
|
static |
Definition at line 325 of file bench_test.cpp.
Referenced by initBenchTest().
|
static |
Definition at line 137 of file bench_test.cpp.
Referenced by pinbench().
|
static |
Definition at line 25 of file bench_test.cpp.
Referenced by cancelBenchTest(), isRunningBenchTest(), and runBench().
|
static |
Definition at line 26 of file bench_test.cpp.
Referenced by getOutputOnTheBenchTest(), and runBench().
|
static |
Definition at line 142 of file bench_test.cpp.
Referenced by pinbench().
|
extern |
Definition at line 34 of file tunerstudio_commands.cpp.
Referenced by fatalErrorForPresetApply().
|
static |
Definition at line 67 of file bench_test.cpp.
Referenced by getSavedBenchTestPinStates(), runBench(), and sendSavedBenchStatePackets().
|
static |
Definition at line 66 of file bench_test.cpp.
Referenced by getSavedBenchTestPinStates(), runBench(), and sendSavedBenchStatePackets().
|
static |
Definition at line 143 of file bench_test.cpp.
Referenced by pinbench(), and runBench().
|
static |
Definition at line 138 of file bench_test.cpp.
Referenced by handleCommandX14(), and initBenchTest().