auto-sync
This commit is contained in:
parent
25feb2f775
commit
6fbc81bd3d
|
@ -1,4 +1,4 @@
|
|||
// this section was generated automatically by ConfigDefinition.jar based on rusefi_config.txt Sat Feb 27 22:02:38 EST 2016
|
||||
// this section was generated automatically by ConfigDefinition.jar based on rusefi_config.txt Sun Feb 28 00:51:58 EST 2016
|
||||
// begin
|
||||
#ifndef ENGINE_CONFIGURATION_GENERATED_H_
|
||||
#define ENGINE_CONFIGURATION_GENERATED_H_
|
||||
|
@ -586,6 +586,9 @@ typedef struct {
|
|||
/**
|
||||
offset 376 bit 14 */
|
||||
bool useWarmupPidAfr : 1;
|
||||
/**
|
||||
offset 376 bit 15 */
|
||||
bool onOffAlternatorLogic : 1;
|
||||
/**
|
||||
* offset 380
|
||||
*/
|
||||
|
@ -1640,4 +1643,4 @@ typedef struct {
|
|||
|
||||
#endif
|
||||
// end
|
||||
// this section was generated automatically by ConfigDefinition.jar based on rusefi_config.txt Sat Feb 27 22:02:38 EST 2016
|
||||
// this section was generated automatically by ConfigDefinition.jar based on rusefi_config.txt Sun Feb 28 00:51:58 EST 2016
|
||||
|
|
|
@ -362,6 +362,7 @@
|
|||
#define useLcdScreen_offset 1000
|
||||
#define startConsoleInBinaryMode_offset 1000
|
||||
#define useWarmupPidAfr_offset 1000
|
||||
#define onOffAlternatorLogic_offset 1000
|
||||
#define logicAnalyzerPins1_offset 1004
|
||||
#define logicAnalyzerPins2_offset 1008
|
||||
#define logicAnalyzerPins3_offset 1012
|
||||
|
|
|
@ -43,7 +43,6 @@ static LocalVersionHolder parametersVersion;
|
|||
extern TunerStudioOutputChannels tsOutputChannels;
|
||||
#endif
|
||||
|
||||
static bool plainOnOffControlEnabled = false;
|
||||
static bool currentPlainOnOffState = false;
|
||||
|
||||
static msg_t AltCtrlThread(int param) {
|
||||
|
@ -71,7 +70,7 @@ static msg_t AltCtrlThread(int param) {
|
|||
float vBatt = getVBatt(PASS_ENGINE_PARAMETER_F);
|
||||
float targetVoltage = engineConfiguration->targetVBatt;
|
||||
|
||||
if (plainOnOffControlEnabled) {
|
||||
if (boardConfiguration->onOffAlternatorLogic) {
|
||||
float h = 0.1;
|
||||
bool newState = (vBatt < targetVoltage - h) || (currentPlainOnOffState && vBatt < targetVoltage);
|
||||
alternatorPin.setValue(newState);
|
||||
|
@ -150,7 +149,7 @@ void initAlternatorCtrl(Logging *sharedLogger) {
|
|||
if (boardConfiguration->alternatorControlPin == GPIO_UNASSIGNED)
|
||||
return;
|
||||
|
||||
if (plainOnOffControlEnabled) {
|
||||
if (boardConfiguration->onOffAlternatorLogic) {
|
||||
outputPinRegisterExt2("on/off alternator", &alternatorPin, boardConfiguration->alternatorControlPin,
|
||||
&DEFAULT_OUTPUT);
|
||||
|
||||
|
|
|
@ -422,6 +422,7 @@ bit is_enabled_spi_2
|
|||
bit useLcdScreen;
|
||||
bit startConsoleInBinaryMode;
|
||||
bit useWarmupPidAfr;
|
||||
bit onOffAlternatorLogic;
|
||||
|
||||
brain_input_pin_e[LOGIC_ANALYZER_CHANNEL_COUNT iterate] logicAnalyzerPins;
|
||||
uint8_t[LOGIC_ANALYZER_CHANNEL_COUNT] logicAnalyzerMode;default or inverted input
|
||||
|
|
|
@ -41,7 +41,7 @@ enable2ndByteCanID = false
|
|||
|
||||
; see PAGE_0_SIZE in C source code
|
||||
; CONFIG_DEFINITION_START
|
||||
; this section was generated automatically by ConfigDefinition.jar based on rusefi_config.txt Sat Feb 27 22:02:38 EST 2016
|
||||
; this section was generated automatically by ConfigDefinition.jar based on rusefi_config.txt Sun Feb 28 00:51:58 EST 2016
|
||||
|
||||
pageSize = 16088
|
||||
page = 1
|
||||
|
@ -260,6 +260,7 @@ page = 1
|
|||
useLcdScreen = bits, U32, 1000, [12:12], "false", "true"
|
||||
startConsoleInBinaryMode= bits, U32, 1000, [13:13], "false", "true"
|
||||
useWarmupPidAfr = bits, U32, 1000, [14:14], "false", "true"
|
||||
onOffAlternatorLogic = bits, U32, 1000, [15:15], "false", "true"
|
||||
logicAnalyzerPins1 = bits, U32, 1004, [0:6], "INVALID", "INVALID", "PA2", "PA3", "INVALID", "PA5", "INVALID", "INVALID", "PA8", "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", "PC6", "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", "PE5", "INVALID", "PE7", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "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"
|
||||
logicAnalyzerPins2 = bits, U32, 1008, [0:6], "INVALID", "INVALID", "PA2", "PA3", "INVALID", "PA5", "INVALID", "INVALID", "PA8", "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", "PC6", "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", "PE5", "INVALID", "PE7", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "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"
|
||||
logicAnalyzerPins3 = bits, U32, 1012, [0:6], "INVALID", "INVALID", "PA2", "PA3", "INVALID", "PA5", "INVALID", "INVALID", "PA8", "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", "PC6", "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", "PE5", "INVALID", "PE7", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "INVALID", "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"
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
package com.rusefi.config;
|
||||
|
||||
// this file was generated automatically by ConfigDefinition.jar based on rusefi_config.txt Wed Feb 10 12:21:21 EST 2016
|
||||
// this file was generated automatically by ConfigDefinition.jar based on rusefi_config.txt Sun Feb 28 00:51:58 EST 2016
|
||||
public class Fields {
|
||||
public static final int LE_COMMAND_LENGTH = 200;
|
||||
public static final int TS_FILE_VERSION = 20160122;
|
||||
|
@ -366,6 +366,7 @@ public class Fields {
|
|||
public static final int useLcdScreen_offset = 1000;
|
||||
public static final int startConsoleInBinaryMode_offset = 1000;
|
||||
public static final int useWarmupPidAfr_offset = 1000;
|
||||
public static final int onOffAlternatorLogic_offset = 1000;
|
||||
public static final int logicAnalyzerPins1_offset = 1004;
|
||||
public static final int logicAnalyzerPins2_offset = 1008;
|
||||
public static final int logicAnalyzerPins3_offset = 1012;
|
||||
|
@ -592,7 +593,7 @@ public class Fields {
|
|||
public static final int isPrintTriggerSynchDetails_offset = 1500;
|
||||
public static final int isManualSpinningMode_offset = 1500;
|
||||
public static final int twoWireBatchInjection_offset = 1500;
|
||||
public static final int useOnlyFrontForTrigger_offset = 1500;
|
||||
public static final int useOnlyRisingEdgeForTrigger_offset = 1500;
|
||||
public static final int twoWireBatchIgnition_offset = 1500;
|
||||
public static final int engineChartSize_offset = 1504;
|
||||
public static final int targetIdleRpm_offset = 1508;
|
||||
|
@ -913,7 +914,7 @@ public class Fields {
|
|||
public static final Field BAROSENSOR_HWCHANNEL = Field.create("BAROSENSOR_HWCHANNEL", 620, FieldType.INT, adc_channel_e);
|
||||
public static final String[] brain_pin_e = {"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"};
|
||||
public static final Field IDLE_SOLENOIDPIN = Field.create("IDLE_SOLENOIDPIN", 624, FieldType.INT, brain_pin_e);
|
||||
public static final String[] pin_output_mode_e = {"default", "default inverted", "open", "open inverted"};
|
||||
public static final String[] pin_output_mode_e = {"default", "default inverted", "open collector", "open collector inverted"};
|
||||
public static final Field IDLE_SOLENOIDPINMODE = Field.create("IDLE_SOLENOIDPINMODE", 628, FieldType.INT, pin_output_mode_e);
|
||||
public static final Field IDLE_SOLENOIDFREQUENCY = Field.create("IDLE_SOLENOIDFREQUENCY", 632, FieldType.INT);
|
||||
public static final Field IDLE_STEPPERDIRECTIONPIN = Field.create("IDLE_STEPPERDIRECTIONPIN", 636, FieldType.INT, brain_pin_e);
|
||||
|
@ -1024,6 +1025,7 @@ public class Fields {
|
|||
public static final Field USELCDSCREEN = Field.create("USELCDSCREEN", 1000, FieldType.BIT, 12);
|
||||
public static final Field STARTCONSOLEINBINARYMODE = Field.create("STARTCONSOLEINBINARYMODE", 1000, FieldType.BIT, 13);
|
||||
public static final Field USEWARMUPPIDAFR = Field.create("USEWARMUPPIDAFR", 1000, FieldType.BIT, 14);
|
||||
public static final Field ONOFFALTERNATORLOGIC = Field.create("ONOFFALTERNATORLOGIC", 1000, FieldType.BIT, 15);
|
||||
public static final Field LOGICANALYZERPINS1 = Field.create("LOGICANALYZERPINS1", 1004, FieldType.INT, brain_input_pin_e);
|
||||
public static final Field LOGICANALYZERPINS2 = Field.create("LOGICANALYZERPINS2", 1008, FieldType.INT, brain_input_pin_e);
|
||||
public static final Field LOGICANALYZERPINS3 = Field.create("LOGICANALYZERPINS3", 1012, FieldType.INT, brain_input_pin_e);
|
||||
|
@ -1190,7 +1192,7 @@ public class Fields {
|
|||
public static final Field ISPRINTTRIGGERSYNCHDETAILS = Field.create("ISPRINTTRIGGERSYNCHDETAILS", 1500, FieldType.BIT, 11);
|
||||
public static final Field ISMANUALSPINNINGMODE = Field.create("ISMANUALSPINNINGMODE", 1500, FieldType.BIT, 12);
|
||||
public static final Field TWOWIREBATCHINJECTION = Field.create("TWOWIREBATCHINJECTION", 1500, FieldType.BIT, 13);
|
||||
public static final Field USEONLYFRONTFORTRIGGER = Field.create("USEONLYFRONTFORTRIGGER", 1500, FieldType.BIT, 14);
|
||||
public static final Field USEONLYRISINGEDGEFORTRIGGER = Field.create("USEONLYRISINGEDGEFORTRIGGER", 1500, FieldType.BIT, 14);
|
||||
public static final Field TWOWIREBATCHIGNITION = Field.create("TWOWIREBATCHIGNITION", 1500, FieldType.BIT, 15);
|
||||
public static final Field ENGINECHARTSIZE = Field.create("ENGINECHARTSIZE", 1504, FieldType.INT);
|
||||
public static final Field TARGETIDLERPM = Field.create("TARGETIDLERPM", 1508, FieldType.INT);
|
||||
|
|
|
@ -117,7 +117,7 @@
|
|||
</table>
|
||||
</table>
|
||||
|
||||
<table type="2D" name="Intake air temperature-based extra idle air" storageaddress="1b98"
|
||||
<table type="2D" name="Coolant temperature-based extra idle air" storageaddress="1b98"
|
||||
sizex="16" storagetype="float" endian="big">
|
||||
<scaling units="Compensation (%)" expression="x" to_byte="x" format="0.00"
|
||||
fineincrement=".01" coarseincrement="0.1"/>
|
||||
|
|
Loading…
Reference in New Issue