After start enrichment Engine Cycles is now represented with U16 data type

https://rusefi.com/forum/viewtopic.php?f=16&t=2846
This commit is contained in:
rusefillc 2024-12-01 07:54:07 -05:00
parent 242cdae359
commit 53bf3da0e4
3 changed files with 6 additions and 5 deletions

View File

@ -38,6 +38,7 @@ Release template (copy/paste this for new release):
### Breaking Changes
- Lua: onCanRx parameter value to be use Lua-indexing #7110
- After start enrichment Engine Cycles is now represented with U16 data type
## November 2024 "Day 998"

View File

@ -27,11 +27,11 @@ void setDefaultCranking() {
static const int16_t defaultPostCrankingCLTBins[] = {
-20, 0, 20, 40, 60, 80
};
static const uint16_t defaultPostCrankinDurationBins[] = {
static const uint16_t defaultPostCrankingDurationBins[] = {
0, 15, 35, 65, 100, 150
};
copyArray(config->postCrankingCLTBins, defaultPostCrankingCLTBins);
copyArray(config->postCrankingDurationBins, defaultPostCrankinDurationBins);
copyArray(config->postCrankingDurationBins, defaultPostCrankingDurationBins);
setTable(config->postCrankingFactor, 1.2f);
#endif

View File

@ -97,13 +97,13 @@
! this is used to confirm that firmware and TunerStudio are using the same rusefi.ini version
! todo: this not needed in light of TS_SIGNATURE but rusEFI console still uses it. Need to migrate
! rusEFI console from TS_FILE_VERSION to TS_SIGNATURE :(
#define TS_FILE_VERSION 20241104
#define TS_FILE_VERSION 20241201
! This is the version of the data stored in flash configuration
! Any time an incompatible change is made to the configuration format stored in flash,
! update this string to the current date! It is required to also update TS_SIGNATURE above
! when this happens.
#define FLASH_DATA_VERSION 20024
#define FLASH_DATA_VERSION 20025
! this offset is part of console compatibility mechanism, please DO NOT change this offset
#define TS_FILE_VERSION_OFFSET 124
@ -1799,7 +1799,7 @@ end_struct
engine_configuration_s engineConfiguration;
float[CRANKING_ENRICH_COUNT x CRANKING_ENRICH_COUNT] postCrankingFactor;;"mult", 1, 0, 1, 3, 2
float[CRANKING_ENRICH_COUNT] postCrankingDurationBins;;"count", 1, 0, 0, 1000, 0
uint16_t[CRANKING_ENRICH_COUNT] postCrankingDurationBins;;"count", 1, 0, 0, 64000, 0
int16_t[CRANKING_ENRICH_COUNT] postCrankingCLTBins;;"C", 1, 0, -100, @@CLT_UPPER_LIMIT@@, 0