Advertisement
LAV1000

Ducati ST2 20170314

Mar 14th, 2017
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 18.52 KB | None | 0 0
  1. /* LibreEMS - the community driven open source engine management system
  2.  *
  3.  * Copyright 2014 Sean Keys
  4.  *
  5.  * This file is part of the LibreEMS project.
  6.  *
  7.  * LibreEMS 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.
  11.  *
  12.  * LibreEMS 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.
  16.  *
  17.  * You should have received a copy of the GNU General Public License
  18.  * along with any LibreEMS software.  If not, see http://www.gnu.org/licenses/
  19.  *
  20.  * Thank you for choosing LibreEMS to run your engine!
  21.  */
  22.  
  23.  
  24. /** @file
  25.  *
  26.  * @ingroup Configuration
  27.  *
  28.  */
  29.  
  30. #ifndef FILE_ENGINE_CONFIGURATION_H_SEEN
  31. #define FILE_ENGINE_CONFIGURATION_H_SEEN
  32.  
  33. //Ducati ST2
  34. /* Engine Config */
  35. #define ENGINE_CYLINDER_COUNT        2
  36. #define CRANKSHAFT_REVS_PER_CYCLE    2    /* Four stroke/Camsignal 48-2 */
  37. #define NUM_OF_PRECISON_OUTPUTS     12    /* Total number of fuel and ignition channels */
  38. #define INJECTOR_FLOW_RATE         270    /* Flow rate in cc/min */
  39. #define SECONDARY_INJ_FLOW_RATE      0    /* secondary injector flow rate */
  40. #define ANTICIPATED_STOICH_AFR      14.7  /* Normal Gass */
  41. #define MAX_INJ_DUTY_CYCLE          85.0  /* Percent */
  42. #define MAX_INJ_DC_SECONDARY        85.0  /* Percent */
  43. #define INJECTION_STRATEGY          SEQUENTIAL
  44. #define PRIMARY_FUELING_ALGORITHM   ALPHA_N
  45.  
  46. #define MAX_RPM_CRANKING                  800     /* Max RPM at which the ECU will consider it to be in cranking mode */
  47. #define PRIMARY_SKIP_EDGES                  0
  48. #define PRIMARY_INPUT_TOLLERANCE           80.0   /* Difference allowed in percentage */
  49. #define PRIMARY_INPUT_TOLLERANCE_CRANKING  20.0   /* Difference allowed in percentage */
  50. #define FILTER_ENABLE_RPM                2000.0   /* RPM to start filtering tach signal */
  51.  
  52. #define MAP_MAXIMUM                   00
  53. #define MAP_MINIMUM                   00
  54.  
  55. #define FUEL_PUMP_RUNTIME             2     /* Minimum fuel pump run time, in seconds */
  56.  
  57. /* Fuel Algorithm settings */
  58. #define FLEX_FUEL                   DISABLED
  59. #define MASS_AIR                    DISABLED
  60. #define SPEED_DENSITY               DISABLED
  61. #define ALPHA_N                     ENABLED
  62. #define ALPHA_SD_BLEND              DISABLED
  63. #define DELTA_AE                    ENABLED
  64.  
  65. /* Advanced Scheduling Settings */
  66. #define VIRTUAL_ANGLES              DISABLED
  67. #define MAX_HARD_ANGLE_SPREAD       10.0       /* Max angle between input teeth, before virtual angles are created */
  68.  
  69. #define IDLE_TYPE                   NO_IDLE
  70. #define IDLE_IAC_STEPS              0
  71. #define IDLE_IAC_PW                 0
  72. #define IDLE_IAC_CHA                0
  73. #define IDLE_IAC_CHB                0
  74. #define PWM_CHANNEL                 0
  75.  
  76. /* Chassis Config */
  77. #define VSS                         DISABLED  /* Vehicle speed sensor input */
  78. #define VSS_DIVISOR                 30
  79.  
  80. #define ECT0_CAPTURE_RISING         TRUE
  81. #define ECT0_CAPTURE_FALLING        FALSE
  82. #define ECT1_CAPTURE_RISING         FALSE
  83. #define ECT1_CAPTURE_FALLING        TRUE
  84. #define ECT2_CAPTURE_RISING         TRUE
  85. #define ECT2_CAPTURE_FALLING        TRUE
  86. #define ECT3_CAPTURE_RISING         TRUE
  87. #define ECT3_CAPTURE_FALLING        TRUE
  88. #define ECT4_CAPTURE_RISING         TRUE  /* No effect reserved by XGate */
  89. #define ECT4_CAPTURE_FALLING        TRUE  /* No effect reserved by XGate */
  90. #define ECT5_CAPTURE_RISING         TRUE
  91. #define ECT5_CAPTURE_FALLING        TRUE
  92. #define ECT6_CAPTURE_RISING         TRUE
  93. #define ECT6_CAPTURE_FALLING        TRUE
  94. #define ECT7_CAPTURE_RISING         TRUE
  95. #define ECT7_CAPTURE_FALLING        TRUE
  96.  
  97. /* Ultimate Limits */
  98. #define RPM_FUEL_DISABLE            9500  /* Max RPM allowed before fuel is cut */
  99. #define RPM_FUEL_REENABLE           9350  /* RPM to re-enable fueling */
  100. #define RPM_IGNITION_DISABLE        9550  /* Max RPM allowed before igntion is cut */
  101. #define RPM_IGNTTION_REENABLE       9400  /* RPM at which to re-enable ignition */
  102. #define MAP_MAX_FUEL_DISABLE           0  /* Max KPA allowed before fuel is cut */
  103. #define MAP_FUEL_RENABLE               0  /* KPA at which to re-enable fueling */
  104. #define MAP_MAX_IGNITION_DISABLE       0  /* Max KPA before igntion is cut */
  105. #define MAP_IGNITION_REENABLE          0  /* KPA to re-enable igntion */
  106.  
  107. /* First De-rate Limits */
  108. #define DERATE_L1_RPM_FUEL_DISABLE            4500
  109. #define DERATE_L1_RPM_FUEL_REENABLE           4200
  110. #define DERATE_L1_RPM_IGNITION_DISABLE        4600
  111. #define DERATE_L1_RPM_IGNTTION_REENABLE       4300
  112. #define DERATE_L1_MAP_MAX_FUEL_DISABLE        105
  113. #define DERATE_L1_MAP_FUEL_RENABLE            100
  114. #define DERATE_L1_MAP_MAX_IGNITION_DISABLE    110
  115. #define DERATE_L1_MAP_IGNITION_REENABLE       101
  116.  
  117. #define INPUT_OFFSET                      ENGINE_ANGLE_S(10.0)
  118. #define ENGINE_CYL_VOLUME               CC_VOLUME_S(472)
  119. #define SPECIFIED_OPERATING_LEVELS  3
  120.  
  121. /*
  122.  *
  123.  * Engine angle specific settings
  124.  *
  125.  */
  126.  
  127. #define CYL_1_TDC_ANGLE             270         /* TDC angle */
  128. #define CYL_1_INJ_ANGLE             240         /* Angle to inject Fuel */
  129. #define CYL_1_READ_ANGLE            45          /* Angle to sample sensors */
  130. #define CYL_1_IGN_CH                1           /* XGate ignition channel  */
  131. #define CYL_1_PRIMARY_INJ_CH        8           /* XGate primary fuel channel */
  132. #define CYL_1_SECONDARY_INJ_CH      0           /* XGate secondary fuel channel */
  133.  
  134. #define CYL_2_TDC_ANGLE             360         /* TDC angle */
  135. #define CYL_2_INJ_ANGLE             330         /* Angle to inject Fuel */
  136. #define CYL_2_READ_ANGLE            225         /* Angle to sample sensors */
  137. #define CYL_2_IGN_CH                2           /* XGate ignition channel */
  138. #define CYL_2_PRIMARY_INJ_CH        9           /* XGate primary fuel channel */
  139. #define CYL_2_SECONDARY_INJ_CH      0           /* XGate secondary fuel channel */
  140.  
  141. #define CYL_3_TDC_ANGLE             0           /* TDC angle */
  142. #define CYL_3_INJ_ANGLE             0           /* Angle to inject Fuel */
  143. #define CYL_3_READ_ANGLE            0           /* Angle to sample sensors */
  144. #define CYL_3_IGN_CH                0           /* XGate ignition channel */
  145. #define CYL_3_PRIMARY_INJ_CH        0           /* XGate primary fuel channel */
  146. #define CYL_3_SECONDARY_INJ_CH      0           /* XGate secondary fuel channel */
  147.  
  148. #define CYL_4_TDC_ANGLE             0           /* TDC angle */
  149. #define CYL_4_INJ_ANGLE             0           /* Angle to inject Fuel */
  150. #define CYL_4_READ_ANGLE            0           /* Angle to sample sensors */
  151. #define CYL_4_IGN_CH                0           /* XGate ignition channel */
  152. #define CYL_4_PRIMARY_INJ_CH        0           /* XGate primary fuel channel */
  153. #define CYL_4_SECONDARY_INJ_CH      0           /* XGate secondary fuel channel */
  154.  
  155. /* We just zero the rest of the cyl parameters, the ENGINE_CYLINDER_COUNT macro controls what gets processed */
  156.  
  157. #define CYL_5_TDC_ANGLE              0         /* TDC angle */
  158. #define CYL_5_INJ_ANGLE              0         /* Angle to inject Fuel */
  159. #define CYL_5_READ_ANGLE             0         /* Angle to sample sensors */
  160. #define CYL_5_IGN_CH                 0         /* XGate ignition channel */
  161. #define CYL_5_PRIMARY_INJ_CH         0         /* XGate primary fuel channel */
  162. #define CYL_5_SECONDARY_INJ_CH       0         /* XGate secondary fuel channel */
  163.  
  164. #define CYL_6_TDC_ANGLE              0         /* TDC angle */
  165. #define CYL_6_INJ_ANGLE              0         /* Angle to inject Fuel */
  166. #define CYL_6_READ_ANGLE             0         /* Angle to sample sensors */
  167. #define CYL_6_IGN_CH                 0         /* XGate ignition channel */
  168. #define CYL_6_PRIMARY_INJ_CH         0         /* XGate primary fuel channel */
  169. #define CYL_6_SECONDARY_INJ_CH       0         /* XGate secondary fuel channel */
  170.  
  171. #define CYL_7_TDC_ANGLE              0         /* TDC angle */
  172. #define CYL_7_INJ_ANGLE              0         /* Angle to inject Fuel */
  173. #define CYL_7_READ_ANGLE             0         /* Angle to sample sensors */
  174. #define CYL_7_IGN_CH                 0         /* XGate ignition channel */
  175. #define CYL_7_PRIMARY_INJ_CH         0         /* XGate primary fuel channel */
  176. #define CYL_7_SECONDARY_INJ_CH       0         /* XGate secondary fuel channel */
  177.  
  178. #define CYL_8_TDC_ANGLE              0         /* TDC angle */
  179. #define CYL_8_INJ_ANGLE              0         /* Angle to inject Fuel */
  180. #define CYL_8_READ_ANGLE             0         /* Angle to sample sensors */
  181. #define CYL_8_IGN_CH                 0         /* XGate ignition channel */
  182. #define CYL_8_PRIMARY_INJ_CH         0         /* XGate primary fuel channel */
  183. #define CYL_8_SECONDARY_INJ_CH       0         /* XGate secondary fuel channel */
  184.  
  185. #define CYL_9_TDC_ANGLE              0         /* TDC angle */
  186. #define CYL_9_INJ_ANGLE              0         /* Angle to inject Fuel */
  187. #define CYL_9_READ_ANGLE             0         /* Angle to sample sensors */
  188. #define CYL_9_IGN_CH                 0         /* XGate ignition channel */
  189. #define CYL_9_PRIMARY_INJ_CH         0         /* XGate primary fuel channel */
  190. #define CYL_9_SECONDARY_INJ_CH       0         /* XGate secondary fuel channel */
  191.  
  192. #define CYL_10_TDC_ANGLE             0         /* TDC angle */
  193. #define CYL_10_INJ_ANGLE             0         /* Angle to inject Fuel */
  194. #define CYL_10_READ_ANGLE            0         /* Angle to sample sensors */
  195. #define CYL_10_IGN_CH                0         /* XGate ignition channel */
  196. #define CYL_10_PRIMARY_INJ_CH        0         /* XGate primary fuel channel */
  197. #define CYL_10_SECONDARY_INJ_CH      0         /* XGate secondary fuel channel */
  198.  
  199. #define CYL_11_TDC_ANGLE             0         /* TDC angle */
  200. #define CYL_11_INJ_ANGLE             0         /* Angle to inject Fuel */
  201. #define CYL_11_READ_ANGLE            0         /* Angle to sample sensors */
  202. #define CYL_11_IGN_CH                0         /* XGate ignition channel */
  203. #define CYL_11_PRIMARY_INJ_CH        0         /* XGate primary fuel channel */
  204. #define CYL_11_SECONDARY_INJ_CH      0         /* XGate secondary fuel channel */
  205.  
  206. #define CYL_12_TDC_ANGLE             0         /* TDC angle */
  207. #define CYL_12_INJ_ANGLE             0         /* Angle to inject Fuel */
  208. #define CYL_12_READ_ANGLE            0         /* Angle to sample sensors */
  209. #define CYL_12_IGN_CH                0         /* XGate ignition channel */
  210. #define CYL_12_PRIMARY_INJ_CH        0         /* XGate primary fuel channel */
  211. #define CYL_12_SECONDARY_INJ_CH      0         /* XGate secondary fuel channel */
  212.  
  213.  
  214. /* Primary Fan */
  215. #define GPIO_0_ENABLED               TRUE
  216. #define GPIO_0_VARIABLE              &CoreVars_g.CHT
  217. #define GPIO_0_UPPER_BOUNDARY        DEGREES_C(95)
  218. #define GPIO_0_LOWER_BOUNDARY        DEGREES_C(80)
  219. #define GPIO_0_REGISTER              (uint8_t*)&PORTK
  220. #define GPIO_0_BIT_MASK              BIT4
  221. #define GPIO_0_TRIGGER_HIGH          TRUE
  222. #define GPIO_0_OUTPUT_POLARITY       GPO_POLARITY_ENABLED_HIGH
  223. #define GPIO_0_IS_PARENT             TRUE
  224. #define GPIO_0_DERATE                FALSE
  225. #define GPIO_0_DERATE_LEVEL          0                          /* Ignored since derate is false */
  226. #define GPIO_0_CHILD_ID              3                          /* GPIO CH3 condition must also be true */
  227. #define GPIO_0_IS_OUTPUT             TRUE
  228. #define GPIO_0_HAS_CHILD             TRUE
  229.  
  230. /* Secondary Fan */
  231. #define GPIO_1_ENABLED               FALSE
  232. #define GPIO_1_VARIABLE              &CoreVars_g.CHT
  233. #define GPIO_1_UPPER_BOUNDARY        DEGREES_C(100)
  234. #define GPIO_1_LOWER_BOUNDARY        DEGREES_C(90)
  235. #define GPIO_1_REGISTER              (uint8_t*)&PORTK
  236. #define GPIO_1_BIT_MASK              BIT5
  237. #define GPIO_1_TRIGGER_HIGH          TRUE
  238. #define GPIO_1_OUTPUT_POLARITY       GPO_POLARITY_ENABLED_HIGH
  239. #define GPIO_1_IS_PARENT             TRUE
  240. #define GPIO_1_DERATE                FALSE
  241. #define GPIO_1_DERATE_LEVEL          0                          /* Ignored since derate is false */
  242. #define GPIO_1_CHILD_ID              3
  243. #define GPIO_1_IS_OUTPUT             TRUE
  244. #define GPIO_1_HAS_CHILD             TRUE
  245.  
  246. /* Over temperature derate */
  247. #define GPIO_2_ENABLED               TRUE
  248. #define GPIO_2_VARIABLE              &CoreVars_g.CHT
  249. #define GPIO_2_UPPER_BOUNDARY        DEGREES_C(105)
  250. #define GPIO_2_LOWER_BOUNDARY        DEGREES_C(101)
  251. #define GPIO_2_REGISTER              (uint8_t*)&PORTK
  252. #define GPIO_2_BIT_MASK              BIT5
  253. #define GPIO_2_TRIGGER_HIGH          TRUE
  254. #define GPIO_2_OUTPUT_POLARITY       GPO_POLARITY_ENABLED_HIGH
  255. #define GPIO_2_IS_PARENT             TRUE
  256. #define GPIO_2_DERATE                TRUE
  257. #define GPIO_2_DERATE_LEVEL          DERATE_LEVEL_ONE_LIMITS_INDEX                          /* Ignored since derate is false */
  258. #define GPIO_2_CHILD_ID              0
  259. #define GPIO_2_IS_OUTPUT             TRUE
  260. #define GPIO_2_HAS_CHILD             FALSE
  261.  
  262. /* Secondary RPM condition for the Fans */
  263. #define GPIO_3_ENABLED               TRUE
  264. #define GPIO_3_VARIABLE              &CoreVars_g.RPM
  265. #define GPIO_3_UPPER_BOUNDARY        RPM(700)
  266. #define GPIO_3_LOWER_BOUNDARY        RPM(600)
  267. #define GPIO_3_REGISTER              GPO_NULL_REGISTER_ADDRESS
  268. #define GPIO_3_BIT_MASK              0
  269. #define GPIO_3_TRIGGER_HIGH          TRUE
  270. #define GPIO_3_OUTPUT_POLARITY       GPO_POLARITY_ENABLED_HIGH
  271. #define GPIO_3_IS_PARENT             FALSE                       /* The chain stops here */
  272. #define GPIO_3_DERATE                FALSE
  273. #define GPIO_3_DERATE_LEVEL          0                           /* Ignored since derate is false */
  274. #define GPIO_3_CHILD_ID              3                           /* Ignored by setting this value to the same as ourselves */
  275. #define GPIO_3_IS_OUTPUT             TRUE
  276. #define GPIO_3_HAS_CHILD             FALSE
  277.  
  278. /* Under temperature de-rate */
  279. #define GPIO_4_ENABLED               TRUE
  280. #define GPIO_4_VARIABLE              &CoreVars_g.CHT
  281. #define GPIO_4_UPPER_BOUNDARY        DEGREES_C(65)
  282. #define GPIO_4_LOWER_BOUNDARY        DEGREES_C(60)
  283. #define GPIO_4_REGISTER              GPO_NULL_REGISTER_ADDRESS
  284. #define GPIO_4_BIT_MASK              BIT5
  285. #define GPIO_4_TRIGGER_HIGH          FALSE
  286. #define GPIO_4_OUTPUT_POLARITY       GPO_POLARITY_ENABLED_HIGH
  287. #define GPIO_4_IS_PARENT             TRUE
  288. #define GPIO_4_DERATE                TRUE
  289. #define GPIO_4_DERATE_LEVEL          DERATE_LEVEL_ONE_LIMITS_INDEX                          /* Ignored since derate is false */
  290. #define GPIO_4_CHILD_ID              0
  291. #define GPIO_4_IS_OUTPUT             TRUE
  292. #define GPIO_4_HAS_CHILD             FALSE
  293.  
  294. /* Sensor Ranges */
  295. #define TPS_MINIMUM (0)
  296. #define TPS_MAXIMUM (1024 - 1)
  297.  
  298. /* 2D LUTs */
  299. #define FUEL_DELTA_PERCENTS        { FD(110.0), FD(150.0), FD(175.0), FD(200.0), FD(250.0), FD(300), FD(400), FD(500)}
  300. #define FUEL_DELTA_ADDER           { FA(100.0), FA(120.0), FA(125.0), FA(150.0), FA(175.0), FA(200), FA(250), FA(300)}
  301.  
  302. #define ARRAY_OF_16_IGN_IAT        { IT(0),  IT(0),  IT(.5),   IT(1),  IT(3),  IT(4),   IT(5),   IT(5.5),  IT(6),  IT(6.5),    IT(7),  IT(7.5),   IT(8),  IT(9),   IT(10),  IT(11)}
  303. #define ARRAY_OF_16_IGN_IAT_TEMPS  { C(70),  C(75),  C(80),    C(85),  C(90),  C(95),  C(100),  C(105),   C(110),   C(115),   C(120),   C(125),  C(130),  C(135),  C(140),  C(145)}
  304.  
  305. #define ARRAY_OF_16_IGN_CLT_TEMPS  { C(-30),  C(-20),  C(-10),    C(0),    C(10),   C(20),   C(30),   C(40),   C(50),  C(60), C(70),  C(80), C(90),  C(100),  C(110), C(120)}
  306. #define ARRAY_OF_16_IGN_CLT        {  IT(6),  IT(5.5),  IT(5), IT(4.5), IT(4.25), IT(4.0),  IT(3.5),  IT(3),   IT(2),  IT(1), IT(0),  IT(0), IT(0),   IT(0),   IT(0),  IT(0)}
  307.  
  308. #define ARRAY_OF_16_ETHPERCENTS    { EP(0),  EP(5),  EP(10),  EP(15),  EP(20),    EP(30), EP(35),  EP(40),   EP(45),  EP(55),  EP(65),  EP(75),  EP(85),  EP(90),  EP(95),  EP(100)}
  309. #define ARRAY_OF_16_IGN_ETH        { IT(0),  IT(0),   IT(0),  IT(0.5), IT(1.0), IT(1.25), IT(1.5), IT(2.0),  IT(2.5),  IT(3.0), IT(3.5), IT(4.0), IT(4.5), IT(5.0), IT(5.5), IT(6.0)}
  310.  
  311. #define MAIN_DWELL_LOOKUP          {  AV(6.1), AV(7.3), AV(8.5), AV(9.1), AV(9.7), AV(10.3), AV(10.9), AV(11.4), AV(12.1), AV(12.7), AV(13.3), AV(13.9), AV(14.5), AV(17.9), AV(21.1), AV(24.5)}
  312. #define MAIN_DWELL_VALUES          {  MS(5.5), MS(5.5), MS(5.5), MS(5.5), MS(5.5),  MS(5.5),  MS(5.5),  MS(5.5),  MS(5.5),  MS(5.5),  MS(5.5),  MS(5.5),  MS(5.5),  MS(5.5),  MS(5.5),  MS(5.5)}
  313.  
  314. /* TODO move deadtimes to a lib file since they are constant across the same part numbers */
  315. #define DEAD_TIME_LOOKUP           {  AV(6.1),   AV(7.3),   AV(8.5),   AV(9.1),   AV(9.7),  AV(10.3),  AV(10.9),  AV(11.4),  AV(12.1),  AV(12.7),  AV(13.3),  AV(13.9),  AV(14.5),  AV(17.9),  AV(21.1),  AV(24.5)}
  316. #define DEAD_TIME_VALUES           { MS(2.91),  MS(2.30),  MS(1.86),  MS(1.70),  MS(1.58),  MS(1.47),  MS(1.39),  MS(1.30),  MS(1.23),  MS(1.15),  MS(1.10),  MS(1.04),  MS(0.99),  MS(0.76),  MS(0.57),  MS(0.40)}
  317.  
  318. // For Stepper Motor Idle Air Control
  319. #define ARRAY_OF_8_RPMS          { RPM(500), RPM(700), RPM(900), RPM(1000), RPM(1200), RPM(1400), RPM(1600), RPM(1800) }
  320. #define ARRAY_OF_8_TEMPS         { C(-30), C(-10), C(0), C(20), C(40), C(60), C(80), C(90) }
  321. #define ARRAY_OF_8_STEPS         { 160, 120, 90, 70, 50, 40, 30, 10 }
  322.  
  323. /* MAF table, likely always custom */
  324. #define MAF_LOOKUP  {AV( 1.3),  AV(1.403),  AV(1.506),  AV(1.609),   AV(1.712),  AV(1.816),  AV(1.919),  AV(2.022),  AV(2.125),  AV(2.22),  AV(2.332),  AV(2.435),   AV(2.538),   AV(2.641),   AV(2.745),   AV(2.848),   AV(2.951),   AV(3.054),   AV(3.158),   AV(3.261),  AV( 3.364),   AV(3.467),   AV(3.570),   AV(3.674),   AV(3.777),    AV(3.880),    AV(3.983),    AV(4.087),    AV(4.190),    AV(4.293),    AV(4.396),   AV(4.500)}
  325. #define MAF_GS      {GS( 0  ), GS(0.207), GS(0.563), GS(0.832), GS(1.110),  GS(1.300),  GS(2.445), GS(3.040), GS(3.641), GS(4.08), GS(6.256), GS(9.614), GS(11.882), GS(15.216), GS(17.805), GS(24.467), GS(34.042), GS(36.973), GS(52.511), GS(60.216), GS(66.248), GS(70.653), GS(75.139), GS(84.066), GS(96.694), GS(120.055), GS(132.184), GS(156.114), GS(163.880), GS(170.516), GS(180.055), GS(199.532)}
  326.  
  327. /* Pressure Sensors */
  328. #include "../data/tables/sensorLUTs/pressure.h"
  329. #define KPA_MAP       KPA_MPX4250A
  330. #define LOOKUP_MAP  AV_MPX4350A
  331.  
  332. #define KPA_AAP     KPA_DENSOR1
  333. #define LOOKUP_AAP  AV_DENSOR1
  334.  
  335.  
  336. /* Primary EGO table LC2 */
  337. #define EGO_LAMBDA   { LR(0.0), LR(0.50), LR(0.704), LR(0.908), LR(1.112), LR(1.316), LR(1.520), LR(1.99)}
  338. #define EGO_LOOKUP   { AV(0.0), AV(0.50), AV(1.300), AV(2.100), AV(2.900), AV(3.700), AV(4.500), AV(5.00)}
  339.  
  340. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement