TS injector bench test pulse is too short #4192

This commit is contained in:
rusefillc 2022-05-22 11:08:34 -04:00
parent 7831243c17
commit 5f94fd330a
2 changed files with 5 additions and 3 deletions

View File

@ -535,6 +535,8 @@ void executeTSCommand(uint16_t subsystem, uint16_t index) {
}
void onConfigurationChangeBenchTest() {
if (engineConfiguration->benchTestOnTime == 0)
engineConfiguration->benchTestOnTime = 4; // default value if configuration was not specified
if (engineConfiguration->benchTestOffTime < 5)
engineConfiguration->benchTestOffTime = 500; // default value if configuration was not specified
if (engineConfiguration->benchTestCount < 1)

View File

@ -1212,9 +1212,9 @@ int16_t tps2Max;Full throttle#2. tpsMax value as 10 bit ADC value. Not Voltage!\
bit unused1128
bit unused1129
bit unused1130
uint8_t autoscale benchTestOffTime;;"ms", 5, 0, 0, 2000, 1
uint8_t benchTestCount;;"count", 1, 0, 0, 250, 1
uint8_t autoscale benchTestOnTime;;"ms", 5, 0, 0, 2000, 1
uint8_t autoscale benchTestOffTime;Time between bench test pulses;"ms", 5, 0, 0, 2000, 1
uint8_t benchTestCount;How many test bench pulses do you want;"count", 1, 0, 0, 250, 1
uint8_t autoscale benchTestOnTime;Length of each of the test pulses;"ms", 5, 0, 0, 2000, 1
pin_input_mode_e launchActivatePinMode;
Gpio can2TxPin;set_can2_tx_pin X
Gpio can2RxPin;set_can2_rx_pin X