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 | applyPreset (int index) |
PUBLIC_API_WEAK void | boardTsAction (uint16_t index) |
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 278 of file bench_test.cpp.
Referenced by handleBenchCategory(), and initBenchTest().
|
static |
Definition at line 534 of file bench_test.cpp.
Referenced by executeTSCommand().
|
static |
Definition at line 328 of file bench_test.cpp.
Referenced by handleBenchCategory().
|
static |
Definition at line 78 of file bench_test.cpp.
Referenced by runBench().
|
static |
Definition at line 74 of file bench_test.cpp.
Referenced by runBench().
|
static |
PUBLIC_API_WEAK void boardTsAction | ( | uint16_t | index | ) |
Definition at line 541 of file bench_test.cpp.
Referenced by executeTSCommand().
|
static |
Definition at line 165 of file bench_test.cpp.
Referenced by handleBenchCategory().
|
static |
Definition at line 196 of file bench_test.cpp.
Referenced by executeTSCommand(), and luaOutBench2().
|
static |
Definition at line 171 of file bench_test.cpp.
Referenced by executeTSCommand(), and fuelInjBenchExt().
Definition at line 188 of file bench_test.cpp.
Referenced by executeTSCommand(), and tcuSolenoidBench().
Definition at line 180 of file bench_test.cpp.
Referenced by executeTSCommand(), and sparkBenchExt().
void executeTSCommand | ( | uint16_t | subsystem, |
uint16_t | index | ||
) |
Definition at line 543 of file bench_test.cpp.
Referenced by TunerStudio::handleCrcCommand().
void fan2Bench | ( | ) |
Definition at line 258 of file bench_test.cpp.
Referenced by handleBenchCategory(), and initBenchTest().
void fanBench | ( | ) |
Definition at line 254 of file bench_test.cpp.
Referenced by handleBenchCategory(), and initBenchTest().
|
static |
Definition at line 250 of file bench_test.cpp.
Referenced by fanBench(), and initBenchTest().
fuelbench 5 1000 2
Definition at line 216 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 209 of file bench_test.cpp.
Referenced by fuelInjBench(), and initBenchTest().
void fuelPumpBench | ( | ) |
Definition at line 291 of file bench_test.cpp.
Referenced by handleBenchCategory(), and initBenchTest().
|
static |
Definition at line 273 of file bench_test.cpp.
Referenced by fuelPumpBench(), and initBenchTest().
const OutputPin * getOutputOnTheBenchTest | ( | ) |
Definition at line 33 of file bench_test.cpp.
Referenced by applyVvtPinState(), and OutputPin::setValue().
int getSavedBenchTestPinStates | ( | uint32_t | durationsInStateMs[2] | ) |
Definition at line 425 of file bench_test.cpp.
Referenced by sendSavedBenchStatePackets().
void handleBenchCategory | ( | uint16_t | index | ) |
Definition at line 339 of file bench_test.cpp.
Referenced by executeTSCommand(), and processCanQcBenchTest().
|
static |
Definition at line 436 of file bench_test.cpp.
Referenced by executeTSCommand().
|
static |
Definition at line 333 of file bench_test.cpp.
Referenced by handleBenchCategory().
|
static |
Definition at line 286 of file bench_test.cpp.
Referenced by handleBenchCategory(), and initBenchTest().
void initBenchTest | ( | ) |
Definition at line 652 of file bench_test.cpp.
Referenced by commonInitEngineController().
bool isRunningBenchTest | ( | ) |
Definition at line 29 of file bench_test.cpp.
Referenced by Engine::efiWatchdog(), FanController::onSlowCallback(), and FuelPumpController::onSlowCallback().
channel #1, 5ms ON, 1000ms OFF, repeat 3 times
Definition at line 246 of file bench_test.cpp.
Referenced by initBenchTest().
|
static |
Definition at line 282 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 265 of file bench_test.cpp.
Referenced by handleBenchCategory(), and initBenchTest().
void onConfigurationChangeBenchTest | ( | ) |
Definition at line 637 of file bench_test.cpp.
Referenced by incrementGlobalConfigurationVersion(), and initBenchTest().
|
static |
Definition at line 148 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 93 of file bench_test.cpp.
sparkbench 5 400 2 5 ms ON, 400 ms OFF, two times
Definition at line 231 of file bench_test.cpp.
Referenced by initBenchTest().
sparkbench2 1 5 1000 2
Definition at line 223 of file bench_test.cpp.
Referenced by initBenchTest(), and sparkBench().
void starterRelayBench | ( | ) |
Definition at line 269 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 239 of file bench_test.cpp.
Referenced by initBenchTest().
|
static |
Definition at line 295 of file bench_test.cpp.
Referenced by handleBenchCategory().
|
static |
Definition at line 64 of file bench_test.cpp.
Referenced by runBench().
|
static |
Definition at line 63 of file bench_test.cpp.
Referenced by runBench().
|
static |
Definition at line 142 of file bench_test.cpp.
Referenced by pinbench().
|
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 326 of file bench_test.cpp.
Referenced by initBenchTest().
|
static |
Definition at line 138 of file bench_test.cpp.
Referenced by pinbench().
|
static |
Definition at line 26 of file bench_test.cpp.
Referenced by cancelBenchTest(), isRunningBenchTest(), and runBench().
|
static |
Definition at line 27 of file bench_test.cpp.
Referenced by getOutputOnTheBenchTest(), and runBench().
|
static |
Definition at line 143 of file bench_test.cpp.
Referenced by pinbench().
|
extern |
|
static |
Definition at line 68 of file bench_test.cpp.
Referenced by getSavedBenchTestPinStates(), runBench(), and sendSavedBenchStatePackets().
|
static |
Definition at line 67 of file bench_test.cpp.
Referenced by getSavedBenchTestPinStates(), runBench(), and sendSavedBenchStatePackets().
|
static |
Definition at line 144 of file bench_test.cpp.
Referenced by pinbench(), and runBench().
|
static |
Definition at line 139 of file bench_test.cpp.
Referenced by handleCommandX14(), and initBenchTest().