auto-sync

This commit is contained in:
rusEfi 2015-08-30 16:02:00 -04:00
parent 400185ffa3
commit 9fd777d902
6 changed files with 29 additions and 9 deletions

View File

@ -554,6 +554,9 @@ void setDefaultConfiguration(DECLARE_ENGINE_PARAMETER_F) {
boardConfiguration->logicAnalyzerMode[0] = false;
boardConfiguration->logicAnalyzerMode[1] = false;
engineConfiguration->mapErrorLowValue = 5;
engineConfiguration->mapErrorHighValue = 250;
boardConfiguration->idleThreadPeriod = 100;
boardConfiguration->consoleLoopPeriod = 200;
boardConfiguration->lcdThreadPeriod = 300;

View File

@ -1,4 +1,4 @@
// this section was generated by config_definition.jar on Fri Aug 21 15:51:56 EDT 2015
// this section was generated by config_definition.jar on Sun Aug 30 15:14:39 EDT 2015
// begin
#include "rusefi_types.h"
typedef struct {
@ -1273,9 +1273,19 @@ typedef struct {
*/
float unused72[7];
/**
* kPa value which is too low to be true
* offset 1896
*/
int unused3[65];
float mapErrorLowValue;
/**
* kPa value which is too high to be true
* offset 1900
*/
float mapErrorHighValue;
/**
* offset 1904
*/
int unused3[63];
/**
* offset 2156
*/
@ -1486,4 +1496,4 @@ typedef struct {
} persistent_config_s;
// end
// this section was generated by config_definition.jar on Fri Aug 21 15:51:56 EDT 2015
// this section was generated by config_definition.jar on Sun Aug 30 15:14:39 EDT 2015

View File

@ -661,8 +661,11 @@
#define addedToWallCoef_offset 1864
#define addedToWallCoef_offset_hex 748
#define unused72_offset 1868
#define unused3_offset 1896
#define unused3_offset_hex 768
#define mapErrorLowValue_offset 1896
#define mapErrorLowValue_offset_hex 768
#define mapErrorHighValue_offset 1900
#define unused3_offset 1904
#define unused3_offset_hex 770
#define targetVBatt_offset 2156
#define alternatorOffAboveTps_offset 2160
#define alternatorOffAboveTps_offset_hex 870

View File

@ -11,7 +11,7 @@
#include "engine.h"
#define FLASH_DATA_VERSION 8500
#define FLASH_DATA_VERSION 8700
void readFromFlash(void);
void initFlash(Logging *sharedLogger);

View File

@ -577,7 +577,9 @@ baro_corr_table_t baroCorrTable;
float[7] unused71;
float addedToWallCoef;;"%", 1, 0, 0.0, 300.0, 2
float[7] unused72;
int[65] unused3;
float mapErrorLowValue;kPa value which is too low to be true;"kPa", 1, 0, -100.0, 100.0, 2
float mapErrorHighValue;kPa value which is too high to be true;"kPa", 1, 0, -100.0, 800.0, 2
int[63] unused3;
float targetVBatt;;"Volts", 1, 0, 0,30, 1
float alternatorOffAboveTps;Turn off alternator output above specified TPS;"%", 1, 0, 0, 200, 2

View File

@ -40,7 +40,7 @@ enable2ndByteCanID = false
; see PAGE_0_SIZE in C source code
; CONFIG_DEFINITION_START
; this section was generated by ConfigDefinition.jar on Fri Aug 21 15:51:57 EDT 2015
; this section was generated by ConfigDefinition.jar on Sun Aug 30 15:14:44 EDT 2015
pageSize = 15288
page = 1
@ -471,7 +471,9 @@ page = 1
;skipping unused71 offset 1836
addedToWallCoef = scalar, F32, 1864, "%", 1, 0, 0.0, 300.0, 2
;skipping unused72 offset 1868
;skipping unused3 offset 1896
mapErrorLowValue = scalar, F32, 1896, "kPa", 1, 0, -100.0, 100.0, 2
mapErrorHighValue = scalar, F32, 1900, "kPa", 1, 0, -100.0, 800.0, 2
;skipping unused3 offset 1904
targetVBatt = scalar, F32, 2156, "Volts", 1, 0, 0,30, 1
alternatorOffAboveTps = scalar, F32, 2160, "%", 1, 0, 0, 200, 2
alternatorDT = scalar, S32, 2164, "ms", 1, 0, 0, 3000, 0