1 /* FreeEMS - the open source engine management system
3 * Copyright 2008-2012 Fred Cooke
5 * This file is part of the FreeEMS project.
7 * FreeEMS software is free software: you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation, either version 3 of the License, or
10 * (at your option) any later version.
12 * FreeEMS software is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with any FreeEMS software. If not, see http://www.gnu.org/licenses/
20 * We ask that if you make any changes to this file you email them upstream to
21 * us at admin(at)diyefi(dot)org or, even better, fork the code on github.com!
23 * Thank you for choosing FreeEMS to run your engine!
29 * @ingroup dataInitialisers
31 * @brief Second fixed config block
33 * This file contains the definition of the second fixed configuration block.
34 * The declaration can be found in the global constants header file.
36 * Please ensure that all variables added here have good default values.
40 #include "../inc/freeEMS.h"
43 /** @copydoc fixedConfig1 */
44 const volatile fixedConfig2 fixedConfigs2 FIXEDCONF2
= {
46 presetIAT
: DEGREES_C(20), // Room temperature
47 presetCHT
: DEGREES_C(85), // Running temperature
48 presetTPS
: PERCENT(50), // TODO YAGNI
49 presetEGO
: LAMBDA(1.0), // Stoichiometric
50 presetBRV
: VOLTS(14.4), // Standard alternator charging level for wet cell lead acid
51 presetMAP
: KPA(30), // Idle manifold pressure
52 presetAAP
: KPA(100), // Sea-level
53 presetMAT
: DEGREES_C(20), // Room temperature
54 presetEGO2
: LAMBDA(1.0), // Stoichiometric
55 presetIAP
: KPA(250), // TODO YAGNI
56 presetBPW
: PW_MS(1.6), // TODO YAGNI
57 presetAF
: 1500 // TODO YAGNI remove? Number is random...
60 TPSClosedMAP
: KPA(30), // Just above where MAP would be with closed throttle at idle
61 TPSOpenMAP
: KPA(95), // Just below where MAP would be at WOT
62 // MAP Sensor Configuration
64 MAPMinimum
: HondaDenso183kPaMin
,
65 MAPRange
: HondaDenso183kPaRange
,
67 MAPMinimum
: HondaDenso183kPaMin
,
68 MAPRange
: HondaDenso183kPaRange
,
70 MAPMinimum
: HondaDenso183kPaMin
,
71 MAPRange
: HondaDenso183kPaRange
,
73 MAPMinimum
: GM2BarMin
,
74 MAPRange
: GM2BarRange
,
76 MAPMinimum
: HondaDenso183kPaMin
,
77 MAPRange
: HondaDenso183kPaRange
,
79 // MAPMinimum: MPXH6400AMin,
80 // MAPRange: MPXH6400ARange,
82 MAPMinimum
: MPX4100AMin
,
83 MAPRange
: MPX4100ARange
,
85 MAPMinimum
: MPX4250AMin
,
86 MAPRange
: MPX4250ARange
,
88 // AAP Sensor Configuration
90 AAPMinimum
: HondaDenso183kPaMin
,
91 AAPRange
: HondaDenso183kPaRange
,
93 AAPMinimum
: MPX4100AMin
,
94 AAPRange
: MPX4100ARange
,
97 EGOMinimum
: AFR1020LambdaMin
,
98 EGORange
: AFR1020LambdaRange
,
100 EGOMinimum
: LC1LambdaMin
,
101 EGORange
: LC1LambdaRange
,
104 BRVMinimum
: VOLTS(0),
105 BRVRange
: VOLTS(25.082),
107 BRVMinimum
: VOLTS(0),
108 BRVRange
: VOLTS(24.777),
110 BRVMinimum
: VOLTS(0),
111 BRVRange
: VOLTS(24.5), // Standard 3.9k and 1k values.
114 TPSMaximumADC
: ADC_MAX_VALUE
116 sensorSettings
:{ // Warning, until the following mods are made to ADC use, setting this lower than your cranking rpm will result in a pulsing fuel pump.
117 readingTimeout
: 500, /** Default to 0.5 of a second 120rpm for a 4 cylinder @todo TODO new method of ADC sampling, Always sample ADC async, If no sync, use async ADC readings, otherwise use synced. Do this with pointer to array set at beginning of math */
121 accelerationInputEventTimeTolerance
: ACCEL_TIME_TOL(100), // once started this needs a lot less... fix
122 decelerationInputEventTimeTolerance
: DECEL_TIME_TOL(100)
124 accelerationInputEventTimeTolerance
: ACCEL_TIME_TOL(100),
125 decelerationInputEventTimeTolerance
: DECEL_TIME_TOL(100)
127 accelerationInputEventTimeTolerance
: ACCEL_TIME_TOL(50),
128 decelerationInputEventTimeTolerance
: DECEL_TIME_TOL(50)
131 userTextField2
: "Place your personal notes about whatever you like in here! Don't hesitate to tell us a story about something interesting. Do keep in mind though that when you upload your settings file to the forum this message WILL be visible to all and sundry, so don't be putting too many personal details, bank account numbers, passwords, PIN numbers, license plates, national insurance numbers, IRD numbers, social security numbers, phone numbers, email addresses, love stories and other private information in this field. In fact it is probably best if you keep the information stored here purely related to the vehicle that this system is installed on and relevant to the state of tune and configuration of settings. Lastly, please remember that this field WILL be shrinking in length from it's currently large size to something more reasonable in future. I would like to attempt to keep it at least thirty two characters long though, so writing that much is a non issue, but not "