This commit is contained in:
jharvey 2020-06-01 12:28:11 -04:00
commit 6138d0598e
18 changed files with 72 additions and 15 deletions

View File

@ -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 // by class com.rusefi.output.CHeaderConsumer
// begin // begin
#ifndef CONFIG_BOARDS_KINETIS_CONFIG_CONTROLLERS_ALGO_ENGINE_CONFIGURATION_GENERATED_STRUCTURES_H #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 #endif
// end // 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

View File

@ -9,6 +9,7 @@
* *
* todo: make this more universal if/when we get other hardware options * 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 * 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 * 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 * Apr 2019 two-wire TLE7209 support added

View File

@ -481,6 +481,13 @@ operation_mode_e Engine::getOperationMode(DECLARE_ENGINE_PARAMETER_SIGNATURE) {
return doesTriggerImplyOperationMode(engineConfiguration->trigger.type) ? triggerCentral.triggerShape.getOperationMode() : engineConfiguration->ambiguousOperationMode; 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, * 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. * so that trigger event handler/IO scheduler tasks are faster.

View File

@ -241,6 +241,7 @@ public:
bool isRunningPwmTest = false; bool isRunningPwmTest = false;
int getRpmHardLimit(DECLARE_ENGINE_PARAMETER_SIGNATURE);
FsioState fsioState; FsioState fsioState;

View File

@ -87,6 +87,8 @@ public:
float fsioIdleOffset = 0; float fsioIdleOffset = 0;
float fsioIdleMinValue = 0; float fsioIdleMinValue = 0;
float fsioRpmHardLimit;
#if EFI_UNIT_TEST #if EFI_UNIT_TEST
float mockFan = 0; float mockFan = 0;
float mockRpm = 0; float mockRpm = 0;

View File

@ -516,6 +516,10 @@ void runFsio(DECLARE_ENGINE_PARAMETER_SIGNATURE) {
updateValueOrWarning(MAGIC_OFFSET_FOR_TIMING_FSIO, "timing", &ENGINE(fsioState.fsioTimingAdjustment) PASS_ENGINE_PARAMETER_SUFFIX); 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) { if (engineConfiguration->useFSIO8ForServo1) {
useFsioForServo(0 PASS_ENGINE_PARAMETER_SUFFIX); useFsioForServo(0 PASS_ENGINE_PARAMETER_SUFFIX);
} }

View File

@ -717,6 +717,6 @@ int getRusEfiVersion(void) {
if (initBootloader() != 0) if (initBootloader() != 0)
return 123; return 123;
#endif /* EFI_BOOTLOADER_INCLUDE_CODE */ #endif /* EFI_BOOTLOADER_INCLUDE_CODE */
return 20200531; return 20200601;
} }
#endif /* EFI_UNIT_TEST */ #endif /* EFI_UNIT_TEST */

View File

@ -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! // TODO: add 'pin shutdown' invocation somewhere - coils might be still open here!
return; return;
} }
bool limitedSpark = rpm > CONFIG(rpmHardLimit); bool limitedSpark = rpm > engine->getRpmHardLimit(PASS_ENGINE_PARAMETER_SIGNATURE);
bool limitedFuel = rpm > CONFIG(rpmHardLimit); bool limitedFuel = rpm > engine->getRpmHardLimit(PASS_ENGINE_PARAMETER_SIGNATURE);
if (CONFIG(boostCutPressure) != 0) { if (CONFIG(boostCutPressure) != 0) {
if (getMap(PASS_ENGINE_PARAMETER_SIGNATURE) > CONFIG(boostCutPressure)) { if (getMap(PASS_ENGINE_PARAMETER_SIGNATURE) > CONFIG(boostCutPressure)) {

View File

@ -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 // by class com.rusefi.output.CHeaderConsumer
// begin // begin
#ifndef CONTROLLERS_GENERATED_ENGINE_CONFIGURATION_GENERATED_STRUCTURES_H #ifndef CONTROLLERS_GENERATED_ENGINE_CONFIGURATION_GENERATED_STRUCTURES_H
@ -3509,4 +3509,4 @@ typedef struct persistent_config_s persistent_config_s;
#endif #endif
// end // 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

View File

@ -89,7 +89,7 @@ enable2ndByteCanID = false
; see PAGE_0_SIZE in C source code ; see PAGE_0_SIZE in C source code
; CONFIG_DEFINITION_START ; 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 pageSize = 20000
page = 1 page = 1
@ -4077,12 +4077,18 @@ cmd_set_engine_type_default = "w\x00\x31\x00\x00"
field = "#1", fsioFormulas1 field = "#1", fsioFormulas1
field = "#2", fsioFormulas2 field = "#2", fsioFormulas2
field = "#3", fsioFormulas3 field = "#3", fsioFormulas3
field = "use FSIO #4 for serious engine warning",useFSIO4ForSeriousEngineWarning field = "use FSIO #4 for serious engine warning",useFSIO4ForSeriousEngineWarning
field = "#4", fsioFormulas4 field = "#4", fsioFormulas4
field = "use FSIO #5 for critical engine stop", useFSIO5ForCriticalIssueEngineStop field = "use FSIO #5 for critical engine stop", useFSIO5ForCriticalIssueEngineStop
field = "#5", fsioFormulas5 field = "#5", fsioFormulas5
field = "use FSIO #6 for rev limiter", useFSIO6ForRevLimiter
field = "#6", fsioFormulas6 field = "#6", fsioFormulas6
field = "#7", fsioFormulas7 field = "#7", fsioFormulas7
field = "use FSIO #8 for servo #1", useFSIO8ForServo1 field = "use FSIO #8 for servo #1", useFSIO8ForServo1
field = "#8", fsioFormulas8 field = "#8", fsioFormulas8
field = "use FSIO #9 for servo #2", useFSIO9ForServo2 field = "use FSIO #9 for servo #2", useFSIO9ForServo2

View File

@ -2796,12 +2796,18 @@ cmd_set_engine_type_default = "w\x00\x31\x00\x00"
field = "#1", fsioFormulas1 field = "#1", fsioFormulas1
field = "#2", fsioFormulas2 field = "#2", fsioFormulas2
field = "#3", fsioFormulas3 field = "#3", fsioFormulas3
field = "use FSIO #4 for serious engine warning",useFSIO4ForSeriousEngineWarning field = "use FSIO #4 for serious engine warning",useFSIO4ForSeriousEngineWarning
field = "#4", fsioFormulas4 field = "#4", fsioFormulas4
field = "use FSIO #5 for critical engine stop", useFSIO5ForCriticalIssueEngineStop field = "use FSIO #5 for critical engine stop", useFSIO5ForCriticalIssueEngineStop
field = "#5", fsioFormulas5 field = "#5", fsioFormulas5
field = "use FSIO #6 for rev limiter", useFSIO6ForRevLimiter
field = "#6", fsioFormulas6 field = "#6", fsioFormulas6
field = "#7", fsioFormulas7 field = "#7", fsioFormulas7
field = "use FSIO #8 for servo #1", useFSIO8ForServo1 field = "use FSIO #8 for servo #1", useFSIO8ForServo1
field = "#8", fsioFormulas8 field = "#8", fsioFormulas8
field = "use FSIO #9 for servo #2", useFSIO9ForServo2 field = "use FSIO #9 for servo #2", useFSIO9ForServo2

View File

@ -89,7 +89,7 @@ enable2ndByteCanID = false
; see PAGE_0_SIZE in C source code ; see PAGE_0_SIZE in C source code
; CONFIG_DEFINITION_START ; 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 pageSize = 20000
page = 1 page = 1
@ -4077,12 +4077,18 @@ cmd_set_engine_type_default = "w\x00\x31\x00\x00"
field = "#1", fsioFormulas1 field = "#1", fsioFormulas1
field = "#2", fsioFormulas2 field = "#2", fsioFormulas2
field = "#3", fsioFormulas3 field = "#3", fsioFormulas3
field = "use FSIO #4 for serious engine warning",useFSIO4ForSeriousEngineWarning field = "use FSIO #4 for serious engine warning",useFSIO4ForSeriousEngineWarning
field = "#4", fsioFormulas4 field = "#4", fsioFormulas4
field = "use FSIO #5 for critical engine stop", useFSIO5ForCriticalIssueEngineStop field = "use FSIO #5 for critical engine stop", useFSIO5ForCriticalIssueEngineStop
field = "#5", fsioFormulas5 field = "#5", fsioFormulas5
field = "use FSIO #6 for rev limiter", useFSIO6ForRevLimiter
field = "#6", fsioFormulas6 field = "#6", fsioFormulas6
field = "#7", fsioFormulas7 field = "#7", fsioFormulas7
field = "use FSIO #8 for servo #1", useFSIO8ForServo1 field = "use FSIO #8 for servo #1", useFSIO8ForServo1
field = "#8", fsioFormulas8 field = "#8", fsioFormulas8
field = "use FSIO #9 for servo #2", useFSIO9ForServo2 field = "use FSIO #9 for servo #2", useFSIO9ForServo2

View File

@ -89,7 +89,7 @@ enable2ndByteCanID = false
; see PAGE_0_SIZE in C source code ; see PAGE_0_SIZE in C source code
; CONFIG_DEFINITION_START ; 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 pageSize = 20000
page = 1 page = 1
@ -4078,12 +4078,18 @@ cmd_set_engine_type_default = "w\x00\x31\x00\x00"
field = "#1", fsioFormulas1 field = "#1", fsioFormulas1
field = "#2", fsioFormulas2 field = "#2", fsioFormulas2
field = "#3", fsioFormulas3 field = "#3", fsioFormulas3
field = "use FSIO #4 for serious engine warning",useFSIO4ForSeriousEngineWarning field = "use FSIO #4 for serious engine warning",useFSIO4ForSeriousEngineWarning
field = "#4", fsioFormulas4 field = "#4", fsioFormulas4
field = "use FSIO #5 for critical engine stop", useFSIO5ForCriticalIssueEngineStop field = "use FSIO #5 for critical engine stop", useFSIO5ForCriticalIssueEngineStop
field = "#5", fsioFormulas5 field = "#5", fsioFormulas5
field = "use FSIO #6 for rev limiter", useFSIO6ForRevLimiter
field = "#6", fsioFormulas6 field = "#6", fsioFormulas6
field = "#7", fsioFormulas7 field = "#7", fsioFormulas7
field = "use FSIO #8 for servo #1", useFSIO8ForServo1 field = "use FSIO #8 for servo #1", useFSIO8ForServo1
field = "#8", fsioFormulas8 field = "#8", fsioFormulas8
field = "use FSIO #9 for servo #2", useFSIO9ForServo2 field = "use FSIO #9 for servo #2", useFSIO9ForServo2

View File

@ -89,7 +89,7 @@ enable2ndByteCanID = false
; see PAGE_0_SIZE in C source code ; see PAGE_0_SIZE in C source code
; CONFIG_DEFINITION_START ; 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 pageSize = 20000
page = 1 page = 1
@ -4051,12 +4051,18 @@ cmd_set_engine_type_default = "w\x00\x31\x00\x00"
field = "#1", fsioFormulas1 field = "#1", fsioFormulas1
field = "#2", fsioFormulas2 field = "#2", fsioFormulas2
field = "#3", fsioFormulas3 field = "#3", fsioFormulas3
field = "use FSIO #4 for serious engine warning",useFSIO4ForSeriousEngineWarning field = "use FSIO #4 for serious engine warning",useFSIO4ForSeriousEngineWarning
field = "#4", fsioFormulas4 field = "#4", fsioFormulas4
field = "use FSIO #5 for critical engine stop", useFSIO5ForCriticalIssueEngineStop field = "use FSIO #5 for critical engine stop", useFSIO5ForCriticalIssueEngineStop
field = "#5", fsioFormulas5 field = "#5", fsioFormulas5
field = "use FSIO #6 for rev limiter", useFSIO6ForRevLimiter
field = "#6", fsioFormulas6 field = "#6", fsioFormulas6
field = "#7", fsioFormulas7 field = "#7", fsioFormulas7
field = "use FSIO #8 for servo #1", useFSIO8ForServo1 field = "use FSIO #8 for servo #1", useFSIO8ForServo1
field = "#8", fsioFormulas8 field = "#8", fsioFormulas8
field = "use FSIO #9 for servo #2", useFSIO9ForServo2 field = "use FSIO #9 for servo #2", useFSIO9ForServo2

View File

@ -89,7 +89,7 @@ enable2ndByteCanID = false
; see PAGE_0_SIZE in C source code ; see PAGE_0_SIZE in C source code
; CONFIG_DEFINITION_START ; 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 pageSize = 20000
page = 1 page = 1
@ -4073,12 +4073,18 @@ cmd_set_engine_type_default = "w\x00\x31\x00\x00"
field = "#1", fsioFormulas1 field = "#1", fsioFormulas1
field = "#2", fsioFormulas2 field = "#2", fsioFormulas2
field = "#3", fsioFormulas3 field = "#3", fsioFormulas3
field = "use FSIO #4 for serious engine warning",useFSIO4ForSeriousEngineWarning field = "use FSIO #4 for serious engine warning",useFSIO4ForSeriousEngineWarning
field = "#4", fsioFormulas4 field = "#4", fsioFormulas4
field = "use FSIO #5 for critical engine stop", useFSIO5ForCriticalIssueEngineStop field = "use FSIO #5 for critical engine stop", useFSIO5ForCriticalIssueEngineStop
field = "#5", fsioFormulas5 field = "#5", fsioFormulas5
field = "use FSIO #6 for rev limiter", useFSIO6ForRevLimiter
field = "#6", fsioFormulas6 field = "#6", fsioFormulas6
field = "#7", fsioFormulas7 field = "#7", fsioFormulas7
field = "use FSIO #8 for servo #1", useFSIO8ForServo1 field = "use FSIO #8 for servo #1", useFSIO8ForServo1
field = "#8", fsioFormulas8 field = "#8", fsioFormulas8
field = "use FSIO #9 for servo #2", useFSIO9ForServo2 field = "use FSIO #9 for servo #2", useFSIO9ForServo2

View File

@ -89,7 +89,7 @@ enable2ndByteCanID = false
; see PAGE_0_SIZE in C source code ; see PAGE_0_SIZE in C source code
; CONFIG_DEFINITION_START ; 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 pageSize = 20000
page = 1 page = 1
@ -4044,12 +4044,18 @@ cmd_set_engine_type_default = "w\x00\x31\x00\x00"
field = "#1", fsioFormulas1 field = "#1", fsioFormulas1
field = "#2", fsioFormulas2 field = "#2", fsioFormulas2
field = "#3", fsioFormulas3 field = "#3", fsioFormulas3
field = "use FSIO #4 for serious engine warning",useFSIO4ForSeriousEngineWarning field = "use FSIO #4 for serious engine warning",useFSIO4ForSeriousEngineWarning
field = "#4", fsioFormulas4 field = "#4", fsioFormulas4
field = "use FSIO #5 for critical engine stop", useFSIO5ForCriticalIssueEngineStop field = "use FSIO #5 for critical engine stop", useFSIO5ForCriticalIssueEngineStop
field = "#5", fsioFormulas5 field = "#5", fsioFormulas5
field = "use FSIO #6 for rev limiter", useFSIO6ForRevLimiter
field = "#6", fsioFormulas6 field = "#6", fsioFormulas6
field = "#7", fsioFormulas7 field = "#7", fsioFormulas7
field = "use FSIO #8 for servo #1", useFSIO8ForServo1 field = "use FSIO #8 for servo #1", useFSIO8ForServo1
field = "#8", fsioFormulas8 field = "#8", fsioFormulas8
field = "use FSIO #9 for servo #2", useFSIO9ForServo2 field = "use FSIO #9 for servo #2", useFSIO9ForServo2

View File

@ -85,7 +85,7 @@ public class AutoTest {
changeRpm(900); changeRpm(900);
// TODO: we shall get this RPM higher! // TODO: we shall get this RPM higher!
// first let's get to expected RPM // first let's get to expected RPM
assertRpmDoesNotJump(3000, 15, 30, FAIL); //assertRpmDoesNotJump(3000, 15, 30, FAIL);
} }
private static void testV12() { private static void testV12() {

View File

@ -1,6 +1,6 @@
package com.rusefi.config.generated; 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 // by class com.rusefi.output.FileJavaFieldsConsumer
import com.rusefi.config.*; import com.rusefi.config.*;