dead test code
This commit is contained in:
parent
92d28ffe0b
commit
a7bce6aea5
|
@ -37,39 +37,6 @@ static_assert(libHELLEN_4CHAN_STIM_QC == (int)engine_type_e::HELLEN_4CHAN_STIM_Q
|
||||||
#include "scheduler.h"
|
#include "scheduler.h"
|
||||||
#endif /* EFI_PROD_CODE */
|
#endif /* EFI_PROD_CODE */
|
||||||
|
|
||||||
#if EFI_PROD_CODE
|
|
||||||
static int periodIndex = 0;
|
|
||||||
|
|
||||||
static OutputPin testPin;
|
|
||||||
static scheduling_s testScheduling;
|
|
||||||
|
|
||||||
static int test557[] = {5, 5, 10, 10, 20, 20, 50, 50, 100, 100, 200, 200, 500, 500, 500, 500};
|
|
||||||
#define TEST_LEN 16
|
|
||||||
|
|
||||||
efitimeus_t testTime;
|
|
||||||
|
|
||||||
static void toggleTestAndScheduleNext(void *) {
|
|
||||||
testPin.toggle();
|
|
||||||
periodIndex = (periodIndex + 1) % TEST_LEN;
|
|
||||||
testTime += test557[periodIndex];
|
|
||||||
engine->executor.scheduleByTimestamp("test", &testScheduling, testTime, &toggleTestAndScheduleNext);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* https://github.com/rusefi/rusefi/issues/557 common rail / direct injection scheduling control test
|
|
||||||
*/
|
|
||||||
void runSchedulingPrecisionTestIfNeeded(void) {
|
|
||||||
if (!isBrainPinValid(engineConfiguration->test557pin)) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
testPin.initPin("test", engineConfiguration->test557pin);
|
|
||||||
testPin.setValue(0);
|
|
||||||
testTime = getTimeNowUs();
|
|
||||||
toggleTestAndScheduleNext(/*unused*/ nullptr);
|
|
||||||
}
|
|
||||||
#endif /* EFI_PROD_CODE */
|
|
||||||
|
|
||||||
void setDiscoveryPdm() {
|
void setDiscoveryPdm() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,6 @@
|
||||||
|
|
||||||
#include "engine_configuration.h"
|
#include "engine_configuration.h"
|
||||||
void setFrankensoConfiguration();
|
void setFrankensoConfiguration();
|
||||||
void runSchedulingPrecisionTestIfNeeded(void);
|
|
||||||
void setDiscoveryPdm();
|
void setDiscoveryPdm();
|
||||||
void setFrankensoBoardTestConfiguration();
|
void setFrankensoBoardTestConfiguration();
|
||||||
void setDiscovery33810Test();
|
void setDiscovery33810Test();
|
||||||
|
|
|
@ -854,7 +854,7 @@ pin_output_mode_e hip9011IntHoldPinMode;
|
||||||
|
|
||||||
Gpio[EGT_CHANNEL_COUNT iterate] max31855_cs;
|
Gpio[EGT_CHANNEL_COUNT iterate] max31855_cs;
|
||||||
brain_input_pin_e flexSensorPin;Continental/GM flex fuel sensor, 50-150hz type;
|
brain_input_pin_e flexSensorPin;Continental/GM flex fuel sensor, 50-150hz type;
|
||||||
Gpio test557pin
|
uint16_t unused720
|
||||||
pin_output_mode_e stepperDirectionPinMode;
|
pin_output_mode_e stepperDirectionPinMode;
|
||||||
|
|
||||||
spi_device_e mc33972spiDevice;
|
spi_device_e mc33972spiDevice;
|
||||||
|
|
|
@ -278,7 +278,6 @@ void runRusEfiWithConfig() {
|
||||||
initTimePerfActions();
|
initTimePerfActions();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
runSchedulingPrecisionTestIfNeeded();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -3197,7 +3197,6 @@ cmd_set_engine_type_default = "@@TS_IO_TEST_COMMAND_char@@@@ts_command_e_TS_
|
||||||
field = "ETB#2 Disable", etbIo2_disablePin @@if_ts_show_etb_pins
|
field = "ETB#2 Disable", etbIo2_disablePin @@if_ts_show_etb_pins
|
||||||
field = "SD CS Pin", sdCardCsPin @@if_ts_show_sd_card
|
field = "SD CS Pin", sdCardCsPin @@if_ts_show_sd_card
|
||||||
field = "MIL/Check Engine output", malfunctionIndicatorPin
|
field = "MIL/Check Engine output", malfunctionIndicatorPin
|
||||||
field = "test557pin", test557pin
|
|
||||||
field = "Fan Pin", fanPin
|
field = "Fan Pin", fanPin
|
||||||
field = "A/C Relay", acRelayPin
|
field = "A/C Relay", acRelayPin
|
||||||
field = "Main Relay Pin", mainRelayPin
|
field = "Main Relay Pin", mainRelayPin
|
||||||
|
|
Loading…
Reference in New Issue