Merge branch 'master' of https://github.com/rusefi/rusefi
This commit is contained in:
commit
6138d0598e
|
@ -1,4 +1,4 @@
|
|||
// this section was generated automatically by rusEfi tool ConfigDefinition.jar based on kineris_gen_config.bat integration/rusefi_config.txt Mon Jun 01 07:18:46 EDT 2020
|
||||
// this section was generated automatically by rusEfi tool ConfigDefinition.jar based on kineris_gen_config.bat integration/rusefi_config.txt Mon Jun 01 08:12:05 EDT 2020
|
||||
// by class com.rusefi.output.CHeaderConsumer
|
||||
// begin
|
||||
#ifndef CONFIG_BOARDS_KINETIS_CONFIG_CONTROLLERS_ALGO_ENGINE_CONFIGURATION_GENERATED_STRUCTURES_H
|
||||
|
@ -3509,4 +3509,4 @@ typedef struct persistent_config_s persistent_config_s;
|
|||
|
||||
#endif
|
||||
// end
|
||||
// this section was generated automatically by rusEfi tool ConfigDefinition.jar based on kineris_gen_config.bat integration/rusefi_config.txt Mon Jun 01 07:18:46 EDT 2020
|
||||
// this section was generated automatically by rusEfi tool ConfigDefinition.jar based on kineris_gen_config.bat integration/rusefi_config.txt Mon Jun 01 08:12:05 EDT 2020
|
||||
|
|
|
@ -9,6 +9,7 @@
|
|||
*
|
||||
* todo: make this more universal if/when we get other hardware options
|
||||
*
|
||||
* May 2020 two vehicles have driver 500 miles each
|
||||
* Sep 2019 two-wire TLE9201 official driving around the block! https://www.youtube.com/watch?v=1vCeICQnbzI
|
||||
* May 2019 two-wire TLE7209 now behaves same as three-wire VNH2SP30 "eBay red board" on BOSCH 0280750009
|
||||
* Apr 2019 two-wire TLE7209 support added
|
||||
|
|
|
@ -481,6 +481,13 @@ operation_mode_e Engine::getOperationMode(DECLARE_ENGINE_PARAMETER_SIGNATURE) {
|
|||
return doesTriggerImplyOperationMode(engineConfiguration->trigger.type) ? triggerCentral.triggerShape.getOperationMode() : engineConfiguration->ambiguousOperationMode;
|
||||
}
|
||||
|
||||
int Engine::getRpmHardLimit(DECLARE_ENGINE_PARAMETER_SIGNATURE) {
|
||||
if (engineConfiguration->useFSIO6ForRevLimiter) {
|
||||
return fsioState.fsioRpmHardLimit;
|
||||
}
|
||||
return CONFIG(rpmHardLimit);
|
||||
}
|
||||
|
||||
/**
|
||||
* The idea of this method is to execute all heavy calculations in a lower-priority thread,
|
||||
* so that trigger event handler/IO scheduler tasks are faster.
|
||||
|
|
|
@ -241,6 +241,7 @@ public:
|
|||
|
||||
bool isRunningPwmTest = false;
|
||||
|
||||
int getRpmHardLimit(DECLARE_ENGINE_PARAMETER_SIGNATURE);
|
||||
|
||||
FsioState fsioState;
|
||||
|
||||
|
|
|
@ -87,6 +87,8 @@ public:
|
|||
float fsioIdleOffset = 0;
|
||||
float fsioIdleMinValue = 0;
|
||||
|
||||
float fsioRpmHardLimit;
|
||||
|
||||
#if EFI_UNIT_TEST
|
||||
float mockFan = 0;
|
||||
float mockRpm = 0;
|
||||
|
|
|
@ -516,6 +516,10 @@ void runFsio(DECLARE_ENGINE_PARAMETER_SIGNATURE) {
|
|||
updateValueOrWarning(MAGIC_OFFSET_FOR_TIMING_FSIO, "timing", &ENGINE(fsioState.fsioTimingAdjustment) PASS_ENGINE_PARAMETER_SUFFIX);
|
||||
}
|
||||
|
||||
if (engineConfiguration->useFSIO6ForRevLimiter) {
|
||||
updateValueOrWarning(6 - 1, "rpm limit", &ENGINE(fsioState.fsioRpmHardLimit) PASS_ENGINE_PARAMETER_SUFFIX);
|
||||
}
|
||||
|
||||
if (engineConfiguration->useFSIO8ForServo1) {
|
||||
useFsioForServo(0 PASS_ENGINE_PARAMETER_SUFFIX);
|
||||
}
|
||||
|
|
|
@ -717,6 +717,6 @@ int getRusEfiVersion(void) {
|
|||
if (initBootloader() != 0)
|
||||
return 123;
|
||||
#endif /* EFI_BOOTLOADER_INCLUDE_CODE */
|
||||
return 20200531;
|
||||
return 20200601;
|
||||
}
|
||||
#endif /* EFI_UNIT_TEST */
|
||||
|
|
|
@ -391,8 +391,8 @@ static void mainTriggerCallback(trigger_event_e ckpSignalType, uint32_t trgEvent
|
|||
// TODO: add 'pin shutdown' invocation somewhere - coils might be still open here!
|
||||
return;
|
||||
}
|
||||
bool limitedSpark = rpm > CONFIG(rpmHardLimit);
|
||||
bool limitedFuel = rpm > CONFIG(rpmHardLimit);
|
||||
bool limitedSpark = rpm > engine->getRpmHardLimit(PASS_ENGINE_PARAMETER_SIGNATURE);
|
||||
bool limitedFuel = rpm > engine->getRpmHardLimit(PASS_ENGINE_PARAMETER_SIGNATURE);
|
||||
|
||||
if (CONFIG(boostCutPressure) != 0) {
|
||||
if (getMap(PASS_ENGINE_PARAMETER_SIGNATURE) > CONFIG(boostCutPressure)) {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// this section was generated automatically by rusEfi tool ConfigDefinition.jar based on gen_config.bat integration\rusefi_config.txt Mon Jun 01 07:18:30 EDT 2020
|
||||
// this section was generated automatically by rusEfi tool ConfigDefinition.jar based on gen_config.bat integration\rusefi_config.txt Mon Jun 01 08:11:57 EDT 2020
|
||||
// by class com.rusefi.output.CHeaderConsumer
|
||||
// begin
|
||||
#ifndef CONTROLLERS_GENERATED_ENGINE_CONFIGURATION_GENERATED_STRUCTURES_H
|
||||
|
@ -3509,4 +3509,4 @@ typedef struct persistent_config_s persistent_config_s;
|
|||
|
||||
#endif
|
||||
// end
|
||||
// this section was generated automatically by rusEfi tool ConfigDefinition.jar based on gen_config.bat integration\rusefi_config.txt Mon Jun 01 07:18:30 EDT 2020
|
||||
// this section was generated automatically by rusEfi tool ConfigDefinition.jar based on gen_config.bat integration\rusefi_config.txt Mon Jun 01 08:11:57 EDT 2020
|
||||
|
|
|
@ -89,7 +89,7 @@ enable2ndByteCanID = false
|
|||
|
||||
; see PAGE_0_SIZE in C source code
|
||||
; CONFIG_DEFINITION_START
|
||||
; this section was generated automatically by rusEfi tool ConfigDefinition.jar based on gen_config.bat integration\rusefi_config.txt Mon Jun 01 07:18:30 EDT 2020
|
||||
; this section was generated automatically by rusEfi tool ConfigDefinition.jar based on gen_config.bat integration\rusefi_config.txt Mon Jun 01 08:11:57 EDT 2020
|
||||
|
||||
pageSize = 20000
|
||||
page = 1
|
||||
|
@ -4077,12 +4077,18 @@ cmd_set_engine_type_default = "w\x00\x31\x00\x00"
|
|||
field = "#1", fsioFormulas1
|
||||
field = "#2", fsioFormulas2
|
||||
field = "#3", fsioFormulas3
|
||||
|
||||
field = "use FSIO #4 for serious engine warning",useFSIO4ForSeriousEngineWarning
|
||||
field = "#4", fsioFormulas4
|
||||
|
||||
field = "use FSIO #5 for critical engine stop", useFSIO5ForCriticalIssueEngineStop
|
||||
field = "#5", fsioFormulas5
|
||||
|
||||
field = "use FSIO #6 for rev limiter", useFSIO6ForRevLimiter
|
||||
field = "#6", fsioFormulas6
|
||||
|
||||
field = "#7", fsioFormulas7
|
||||
|
||||
field = "use FSIO #8 for servo #1", useFSIO8ForServo1
|
||||
field = "#8", fsioFormulas8
|
||||
field = "use FSIO #9 for servo #2", useFSIO9ForServo2
|
||||
|
|
|
@ -2796,12 +2796,18 @@ cmd_set_engine_type_default = "w\x00\x31\x00\x00"
|
|||
field = "#1", fsioFormulas1
|
||||
field = "#2", fsioFormulas2
|
||||
field = "#3", fsioFormulas3
|
||||
|
||||
field = "use FSIO #4 for serious engine warning",useFSIO4ForSeriousEngineWarning
|
||||
field = "#4", fsioFormulas4
|
||||
|
||||
field = "use FSIO #5 for critical engine stop", useFSIO5ForCriticalIssueEngineStop
|
||||
field = "#5", fsioFormulas5
|
||||
|
||||
field = "use FSIO #6 for rev limiter", useFSIO6ForRevLimiter
|
||||
field = "#6", fsioFormulas6
|
||||
|
||||
field = "#7", fsioFormulas7
|
||||
|
||||
field = "use FSIO #8 for servo #1", useFSIO8ForServo1
|
||||
field = "#8", fsioFormulas8
|
||||
field = "use FSIO #9 for servo #2", useFSIO9ForServo2
|
||||
|
|
|
@ -89,7 +89,7 @@ enable2ndByteCanID = false
|
|||
|
||||
; see PAGE_0_SIZE in C source code
|
||||
; CONFIG_DEFINITION_START
|
||||
; this section was generated automatically by rusEfi tool ConfigDefinition.jar based on gen_config.bat integration\rusefi_config.txt Mon Jun 01 07:18:39 EDT 2020
|
||||
; this section was generated automatically by rusEfi tool ConfigDefinition.jar based on gen_config.bat integration\rusefi_config.txt Mon Jun 01 08:12:01 EDT 2020
|
||||
|
||||
pageSize = 20000
|
||||
page = 1
|
||||
|
@ -4077,12 +4077,18 @@ cmd_set_engine_type_default = "w\x00\x31\x00\x00"
|
|||
field = "#1", fsioFormulas1
|
||||
field = "#2", fsioFormulas2
|
||||
field = "#3", fsioFormulas3
|
||||
|
||||
field = "use FSIO #4 for serious engine warning",useFSIO4ForSeriousEngineWarning
|
||||
field = "#4", fsioFormulas4
|
||||
|
||||
field = "use FSIO #5 for critical engine stop", useFSIO5ForCriticalIssueEngineStop
|
||||
field = "#5", fsioFormulas5
|
||||
|
||||
field = "use FSIO #6 for rev limiter", useFSIO6ForRevLimiter
|
||||
field = "#6", fsioFormulas6
|
||||
|
||||
field = "#7", fsioFormulas7
|
||||
|
||||
field = "use FSIO #8 for servo #1", useFSIO8ForServo1
|
||||
field = "#8", fsioFormulas8
|
||||
field = "use FSIO #9 for servo #2", useFSIO9ForServo2
|
||||
|
|
|
@ -89,7 +89,7 @@ enable2ndByteCanID = false
|
|||
|
||||
; see PAGE_0_SIZE in C source code
|
||||
; CONFIG_DEFINITION_START
|
||||
; this section was generated automatically by rusEfi tool ConfigDefinition.jar based on kineris_gen_config.bat integration/rusefi_config.txt Mon Jun 01 07:18:46 EDT 2020
|
||||
; this section was generated automatically by rusEfi tool ConfigDefinition.jar based on kineris_gen_config.bat integration/rusefi_config.txt Mon Jun 01 08:12:05 EDT 2020
|
||||
|
||||
pageSize = 20000
|
||||
page = 1
|
||||
|
@ -4078,12 +4078,18 @@ cmd_set_engine_type_default = "w\x00\x31\x00\x00"
|
|||
field = "#1", fsioFormulas1
|
||||
field = "#2", fsioFormulas2
|
||||
field = "#3", fsioFormulas3
|
||||
|
||||
field = "use FSIO #4 for serious engine warning",useFSIO4ForSeriousEngineWarning
|
||||
field = "#4", fsioFormulas4
|
||||
|
||||
field = "use FSIO #5 for critical engine stop", useFSIO5ForCriticalIssueEngineStop
|
||||
field = "#5", fsioFormulas5
|
||||
|
||||
field = "use FSIO #6 for rev limiter", useFSIO6ForRevLimiter
|
||||
field = "#6", fsioFormulas6
|
||||
|
||||
field = "#7", fsioFormulas7
|
||||
|
||||
field = "use FSIO #8 for servo #1", useFSIO8ForServo1
|
||||
field = "#8", fsioFormulas8
|
||||
field = "use FSIO #9 for servo #2", useFSIO9ForServo2
|
||||
|
|
|
@ -89,7 +89,7 @@ enable2ndByteCanID = false
|
|||
|
||||
; see PAGE_0_SIZE in C source code
|
||||
; CONFIG_DEFINITION_START
|
||||
; this section was generated automatically by rusEfi tool ConfigDefinition.jar based on gen_config.bat integration\rusefi_config.txt Mon Jun 01 07:18:37 EDT 2020
|
||||
; this section was generated automatically by rusEfi tool ConfigDefinition.jar based on gen_config.bat integration\rusefi_config.txt Mon Jun 01 08:11:59 EDT 2020
|
||||
|
||||
pageSize = 20000
|
||||
page = 1
|
||||
|
@ -4051,12 +4051,18 @@ cmd_set_engine_type_default = "w\x00\x31\x00\x00"
|
|||
field = "#1", fsioFormulas1
|
||||
field = "#2", fsioFormulas2
|
||||
field = "#3", fsioFormulas3
|
||||
|
||||
field = "use FSIO #4 for serious engine warning",useFSIO4ForSeriousEngineWarning
|
||||
field = "#4", fsioFormulas4
|
||||
|
||||
field = "use FSIO #5 for critical engine stop", useFSIO5ForCriticalIssueEngineStop
|
||||
field = "#5", fsioFormulas5
|
||||
|
||||
field = "use FSIO #6 for rev limiter", useFSIO6ForRevLimiter
|
||||
field = "#6", fsioFormulas6
|
||||
|
||||
field = "#7", fsioFormulas7
|
||||
|
||||
field = "use FSIO #8 for servo #1", useFSIO8ForServo1
|
||||
field = "#8", fsioFormulas8
|
||||
field = "use FSIO #9 for servo #2", useFSIO9ForServo2
|
||||
|
|
|
@ -89,7 +89,7 @@ enable2ndByteCanID = false
|
|||
|
||||
; see PAGE_0_SIZE in C source code
|
||||
; CONFIG_DEFINITION_START
|
||||
; this section was generated automatically by rusEfi tool ConfigDefinition.jar based on gen_config.bat integration\rusefi_config.txt Mon Jun 01 07:18:41 EDT 2020
|
||||
; this section was generated automatically by rusEfi tool ConfigDefinition.jar based on gen_config.bat integration\rusefi_config.txt Mon Jun 01 08:12:03 EDT 2020
|
||||
|
||||
pageSize = 20000
|
||||
page = 1
|
||||
|
@ -4073,12 +4073,18 @@ cmd_set_engine_type_default = "w\x00\x31\x00\x00"
|
|||
field = "#1", fsioFormulas1
|
||||
field = "#2", fsioFormulas2
|
||||
field = "#3", fsioFormulas3
|
||||
|
||||
field = "use FSIO #4 for serious engine warning",useFSIO4ForSeriousEngineWarning
|
||||
field = "#4", fsioFormulas4
|
||||
|
||||
field = "use FSIO #5 for critical engine stop", useFSIO5ForCriticalIssueEngineStop
|
||||
field = "#5", fsioFormulas5
|
||||
|
||||
field = "use FSIO #6 for rev limiter", useFSIO6ForRevLimiter
|
||||
field = "#6", fsioFormulas6
|
||||
|
||||
field = "#7", fsioFormulas7
|
||||
|
||||
field = "use FSIO #8 for servo #1", useFSIO8ForServo1
|
||||
field = "#8", fsioFormulas8
|
||||
field = "use FSIO #9 for servo #2", useFSIO9ForServo2
|
||||
|
|
|
@ -89,7 +89,7 @@ enable2ndByteCanID = false
|
|||
|
||||
; see PAGE_0_SIZE in C source code
|
||||
; CONFIG_DEFINITION_START
|
||||
; this section was generated automatically by rusEfi tool ConfigDefinition.jar based on gen_config.bat integration\rusefi_config.txt Mon Jun 01 07:18:44 EDT 2020
|
||||
; this section was generated automatically by rusEfi tool ConfigDefinition.jar based on gen_config.bat integration\rusefi_config.txt Mon Jun 01 08:12:04 EDT 2020
|
||||
|
||||
pageSize = 20000
|
||||
page = 1
|
||||
|
@ -4044,12 +4044,18 @@ cmd_set_engine_type_default = "w\x00\x31\x00\x00"
|
|||
field = "#1", fsioFormulas1
|
||||
field = "#2", fsioFormulas2
|
||||
field = "#3", fsioFormulas3
|
||||
|
||||
field = "use FSIO #4 for serious engine warning",useFSIO4ForSeriousEngineWarning
|
||||
field = "#4", fsioFormulas4
|
||||
|
||||
field = "use FSIO #5 for critical engine stop", useFSIO5ForCriticalIssueEngineStop
|
||||
field = "#5", fsioFormulas5
|
||||
|
||||
field = "use FSIO #6 for rev limiter", useFSIO6ForRevLimiter
|
||||
field = "#6", fsioFormulas6
|
||||
|
||||
field = "#7", fsioFormulas7
|
||||
|
||||
field = "use FSIO #8 for servo #1", useFSIO8ForServo1
|
||||
field = "#8", fsioFormulas8
|
||||
field = "use FSIO #9 for servo #2", useFSIO9ForServo2
|
||||
|
|
|
@ -85,7 +85,7 @@ public class AutoTest {
|
|||
changeRpm(900);
|
||||
// TODO: we shall get this RPM higher!
|
||||
// first let's get to expected RPM
|
||||
assertRpmDoesNotJump(3000, 15, 30, FAIL);
|
||||
//assertRpmDoesNotJump(3000, 15, 30, FAIL);
|
||||
}
|
||||
|
||||
private static void testV12() {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
package com.rusefi.config.generated;
|
||||
|
||||
// this file was generated automatically by rusEfi tool ConfigDefinition.jar based on gen_config.bat integration\rusefi_config.txt Mon Jun 01 07:18:30 EDT 2020
|
||||
// this file was generated automatically by rusEfi tool ConfigDefinition.jar based on gen_config.bat integration\rusefi_config.txt Mon Jun 01 08:11:57 EDT 2020
|
||||
|
||||
// by class com.rusefi.output.FileJavaFieldsConsumer
|
||||
import com.rusefi.config.*;
|
||||
|
|
Loading…
Reference in New Issue