auto-sync

This commit is contained in:
rusEfi 2015-09-26 09:01:32 -04:00
parent aa28dfbdc8
commit 600c8c505d
6 changed files with 25 additions and 10 deletions

View File

@ -224,8 +224,14 @@ void prepareVoidConfiguration(engine_configuration_s *activeConfiguration) {
/**
* @brief Global default engine configuration
* This method sets the default global engine configuration. These values are later overridden by engine-specific defaults
* and the settings saves in flash memory.
* This method sets the global engine configuration defaults. These default values are then
* overridden by engine-specific defaults and the settings are saved in flash memory.
*
* This method is invoked only when new configuration is needed:
* * recently re-flashed chip
* * flash version of configuration failed CRC check or appears to be older then FLASH_DATA_VERSION
* * 'rewriteconfig' command
* * 'set_engine_type X' command
*/
void setDefaultConfiguration(DECLARE_ENGINE_PARAMETER_F) {
#if (! EFI_UNIT_TEST) || defined(__DOXYGEN__)

View File

@ -1,4 +1,4 @@
// this section was generated by config_definition.jar on Tue Sep 15 20:29:10 EDT 2015
// this section was generated by config_definition.jar on Sat Sep 26 08:19:22 EDT 2015
// begin
#include "rusefi_types.h"
typedef struct {
@ -1155,6 +1155,7 @@ typedef struct {
*/
adc_channel_e acSwitchAdc;
/**
* At what trigger index should some ignition-related math be executed? This is a performance trick to reduce load on synchronization trigger callback.
* offset 1524
*/
int ignMathCalculateAtIndex;
@ -1219,6 +1220,7 @@ typedef struct {
*/
float noAccelAfterHardLimitPeriodSecs;
/**
* At what trigger index should some MAP-related math be executed? This is a performance trick to reduce load on synchronization trigger callback.
* offset 1648
*/
int mapAveragingSchedulingAtIndex;
@ -1503,4 +1505,4 @@ typedef struct {
} persistent_config_s;
// end
// this section was generated by config_definition.jar on Tue Sep 15 20:29:10 EDT 2015
// this section was generated by config_definition.jar on Sat Sep 26 08:19:22 EDT 2015

View File

@ -430,7 +430,14 @@ void mainTriggerCallback(trigger_event_e ckpSignalType, uint32_t eventIndex DECL
// triggerEventsQueue.executeAll(getCrankEventCounter());
/**
* For fuel we schedule start of injection based on trigger angle, and then inject for
* specified duration of time
*/
handleFuel(eventIndex, rpm PASS_ENGINE_PARAMETER);
/**
* For spark we schedule both start of coil charge and actual spark based on trigger angle
*/
handleSpark(eventIndex, rpm, &engine->engineConfiguration2->ignitionEvents[revolutionIndex] PASS_ENGINE_PARAMETER);
#if (EFI_HISTOGRAMS && EFI_PROD_CODE) || defined(__DOXYGEN__)
int diff = hal_lld_get_counter_value() - beforeCallback;

View File

@ -532,7 +532,7 @@ custom idle_mode_e 4 bits, U32, @OFFSET@, [0:0], "false", "true"
adc_channel_e acSwitchAdc;A/C button input handled as analog input
int ignMathCalculateAtIndex;
int ignMathCalculateAtIndex;At what trigger index should some ignition-related math be executed? This is a performance trick to reduce load on synchronization trigger callback.;"index", 1, 0, 0, 7000, 0
int16_t acCutoffLowRpm;
int16_t acCutoffHighRpm;
@ -559,7 +559,7 @@ custom pin_input_mode_e 4 scalar, F32, @OFFSET@, "ms", 1, 0, 0, 200, 1
float noAccelAfterHardLimitPeriodSecs;;"sec", 1, 0, 0, 60, 0
int mapAveragingSchedulingAtIndex;
int mapAveragingSchedulingAtIndex;At what trigger index should some MAP-related math be executed? This is a performance trick to reduce load on synchronization trigger callback.;"index", 1, 0, 0, 7000, 0
float[BARO_CORR_SIZE] baroCorrPressureBins;;"kPa", 1, 0, 0.0, 200, 2
float[BARO_CORR_SIZE] baroCorrRpmBins;;"RPM", 1, 0, 0.0, 18000, 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 Tue Sep 15 20:29:15 EDT 2015
; this section was generated by ConfigDefinition.jar on Sat Sep 26 08:19:27 EDT 2015
pageSize = 15288
page = 1
@ -427,7 +427,7 @@ page = 1
engineChartSize = scalar, U32, 1512, "count", 1, 0, 0, 300, 0
targetIdleRpm = scalar, S32, 1516, "RPM", 1, 0, 0, 7000, 0
acSwitchAdc = bits, U32, 1520, [0:4] "PA0", "PA1", "PA2", "PA3", "PA4", "PA5", "PA6", "PA7", "PB0", "PB1", "PC0", "PC1", "PC2", "PC3", "PC4", "PC5", "Disabled", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID"
;skipping ignMathCalculateAtIndex offset 1524
ignMathCalculateAtIndex = scalar, S32, 1524, "index", 1, 0, 0, 7000, 0
;skipping acCutoffLowRpm offset 1528
;skipping acCutoffHighRpm offset 1530
;skipping acIdleRpmBump offset 1532
@ -458,7 +458,7 @@ page = 1
idleStepperTotalSteps = scalar, S32, 1636, "count", 1, 0, 5, 3000, 0
stepperEnablePin = bits, U32, 1640, [0:6], "PA0", "PA1", "PA2", "PA3", "PA4", "PA5", "PA6", "PA7", "PA8", "PA9", "PA10", "PA11", "PA12", "PA13", "PA14", "PA15", "PB0", "PB1", "PB2", "PB3", "PB4", "PB5", "PB6", "PB7", "PB8", "PB9", "PB10", "PB11", "PB12", "PB13", "PB14", "PB15", "PC0", "PC1", "PC2", "PC3", "PC4", "PC5", "PC6", "PC7", "PC8", "PC9", "PC10", "PC11", "PC12", "PC13", "PC14", "PC15", "PD0", "PD1", "PD2", "PD3", "PD4", "PD5", "PD6", "PD7", "PD8", "PD9", "PD10", "PD11", "PD12", "PD13", "PD14", "PD15", "PE0", "PE1", "PE2", "PE3", "PE4", "PE5", "PE6", "PE7", "PE8", "PE9", "PE10", "PE11", "PE12", "PE13", "PE14", "PE15", "NONE", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID"
noAccelAfterHardLimitPeriodSecs = scalar, F32, 1644, "sec", 1, 0, 0, 60, 0
;skipping mapAveragingSchedulingAtIndex offset 1648
mapAveragingSchedulingAtIndex = scalar, S32, 1648, "index", 1, 0, 0, 7000, 0
baroCorrPressureBins = array, F32, 1652, [4], "kPa", 1, 0, 0.0, 200, 2
baroCorrRpmBins = array, F32, 1668, [4], "RPM", 1, 0, 0.0, 18000, 2
baroCorrTable = array, F32, 1684, [4x4],"%", 1, 0, 0, 999.0, 2

View File

@ -1,6 +1,6 @@
package com.rusefi.config;
// this file was generated automatically by ConfigDefinition.jar Tue Sep 15 20:29:15 EDT 2015
// this file was generated automatically by ConfigDefinition.jar Sat Sep 26 08:19:27 EDT 2015
public class Fields {
public static final Field ENGINETYPE = new Field("ENGINETYPE", 0, FieldType.INT);
public static final Field HEADERMAGICVALUE = new Field("HEADERMAGICVALUE", 4, FieldType.INT);