2016-06-10 22:02:20 -07:00
|
|
|
|
// this section was generated automatically by ConfigDefinition.jar based on rusefi_config.txt Fri Jun 10 18:45:59 EDT 2016
|
2015-07-10 06:01:56 -07:00
|
|
|
|
// begin
|
2016-01-20 20:03:03 -08:00
|
|
|
|
#ifndef ENGINE_CONFIGURATION_GENERATED_H_
|
|
|
|
|
#define ENGINE_CONFIGURATION_GENERATED_H_
|
2015-07-10 06:01:56 -07:00
|
|
|
|
#include "rusefi_types.h"
|
2015-11-11 19:01:46 -08:00
|
|
|
|
typedef struct {
|
|
|
|
|
/**
|
|
|
|
|
* offset 0
|
|
|
|
|
*/
|
|
|
|
|
float pFactor;
|
|
|
|
|
/**
|
|
|
|
|
* offset 4
|
|
|
|
|
*/
|
|
|
|
|
float iFactor;
|
|
|
|
|
/**
|
|
|
|
|
* offset 8
|
|
|
|
|
*/
|
|
|
|
|
float dFactor;
|
2016-02-05 12:02:36 -08:00
|
|
|
|
/**
|
|
|
|
|
* Linear addition to PID logic
|
|
|
|
|
* offset 12
|
|
|
|
|
*/
|
|
|
|
|
float offset;
|
|
|
|
|
/** total size 16*/
|
2015-11-11 19:01:46 -08:00
|
|
|
|
} pid_s;
|
|
|
|
|
|
2015-07-10 06:01:56 -07:00
|
|
|
|
typedef struct {
|
|
|
|
|
/**
|
2016-03-08 21:03:14 -08:00
|
|
|
|
* Fuel squirt duration while cranking
|
|
|
|
|
* A number of curves adjust this value according to CLT/IAT/TPS etc
|
2015-07-10 06:01:56 -07:00
|
|
|
|
* offset 0
|
|
|
|
|
*/
|
|
|
|
|
float baseFuel;
|
|
|
|
|
/**
|
2016-03-08 21:03:14 -08:00
|
|
|
|
* Cranking mode threshold. Special cranking logic controls fuel and spark while RPM is below this threshold
|
2015-07-10 06:01:56 -07:00
|
|
|
|
* offset 4
|
|
|
|
|
*/
|
|
|
|
|
int16_t rpm;
|
|
|
|
|
/**
|
|
|
|
|
* need 4 byte alignment
|
|
|
|
|
* offset 6
|
|
|
|
|
*/
|
|
|
|
|
uint8_t alignmentFill[2];
|
|
|
|
|
/** total size 8*/
|
|
|
|
|
} cranking_parameters_s;
|
|
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
|
/**
|
|
|
|
|
* kPa value at zero volts
|
|
|
|
|
* offset 0
|
|
|
|
|
*/
|
|
|
|
|
float valueAt0;
|
|
|
|
|
/**
|
|
|
|
|
* kPa value at 5 volts
|
|
|
|
|
* offset 4
|
|
|
|
|
*/
|
|
|
|
|
float valueAt5;
|
|
|
|
|
/**
|
|
|
|
|
* offset 8
|
|
|
|
|
*/
|
|
|
|
|
air_pressure_sensor_type_e type;
|
|
|
|
|
/**
|
|
|
|
|
* offset 12
|
|
|
|
|
*/
|
|
|
|
|
adc_channel_e hwChannel;
|
|
|
|
|
/** total size 16*/
|
|
|
|
|
} air_pressure_sensor_config_s;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief MAP averaging configuration
|
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
typedef struct {
|
|
|
|
|
/**
|
|
|
|
|
* offset 0
|
|
|
|
|
*/
|
|
|
|
|
float samplingAngleBins[MAP_ANGLE_SIZE];
|
|
|
|
|
/**
|
|
|
|
|
* @brief MAP averaging sampling start angle, by RPM
|
|
|
|
|
* offset 32
|
|
|
|
|
*/
|
|
|
|
|
float samplingAngle[MAP_ANGLE_SIZE];
|
|
|
|
|
/**
|
|
|
|
|
* offset 64
|
|
|
|
|
*/
|
|
|
|
|
float samplingWindowBins[MAP_WINDOW_SIZE];
|
|
|
|
|
/**
|
|
|
|
|
* @brief MAP averaging angle duration, by RPM
|
|
|
|
|
* offset 96
|
|
|
|
|
*/
|
|
|
|
|
float samplingWindow[MAP_WINDOW_SIZE];
|
|
|
|
|
/**
|
|
|
|
|
* offset 128
|
|
|
|
|
*/
|
|
|
|
|
air_pressure_sensor_config_s sensor;
|
|
|
|
|
/** total size 144*/
|
|
|
|
|
} MAP_sensor_config_s;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief Thermistor known values
|
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
typedef struct {
|
|
|
|
|
/**
|
|
|
|
|
* these values are in Celcuus
|
|
|
|
|
* offset 0
|
|
|
|
|
*/
|
|
|
|
|
float tempC_1;
|
|
|
|
|
/**
|
|
|
|
|
* offset 4
|
|
|
|
|
*/
|
|
|
|
|
float tempC_2;
|
|
|
|
|
/**
|
|
|
|
|
* offset 8
|
|
|
|
|
*/
|
|
|
|
|
float tempC_3;
|
|
|
|
|
/**
|
|
|
|
|
* offset 12
|
|
|
|
|
*/
|
|
|
|
|
float resistance_1;
|
|
|
|
|
/**
|
|
|
|
|
* offset 16
|
|
|
|
|
*/
|
|
|
|
|
float resistance_2;
|
|
|
|
|
/**
|
|
|
|
|
* offset 20
|
|
|
|
|
*/
|
|
|
|
|
float resistance_3;
|
|
|
|
|
/**
|
|
|
|
|
* offset 24
|
|
|
|
|
*/
|
|
|
|
|
float bias_resistor;
|
|
|
|
|
/** total size 28*/
|
|
|
|
|
} thermistor_conf_s;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief Thermistor curve parameters
|
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
typedef struct {
|
|
|
|
|
/**
|
|
|
|
|
* offset 0
|
|
|
|
|
*/
|
|
|
|
|
float s_h_a;
|
|
|
|
|
/**
|
|
|
|
|
* offset 4
|
|
|
|
|
*/
|
|
|
|
|
float s_h_b;
|
|
|
|
|
/**
|
|
|
|
|
* offset 8
|
|
|
|
|
*/
|
|
|
|
|
float s_h_c;
|
|
|
|
|
/** total size 12*/
|
|
|
|
|
} thermistor_curve_s;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief Thermistor curve parameters
|
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
typedef struct {
|
|
|
|
|
/**
|
|
|
|
|
* offset 0
|
|
|
|
|
*/
|
|
|
|
|
thermistor_conf_s config;
|
|
|
|
|
/**
|
|
|
|
|
* offset 28
|
|
|
|
|
*/
|
|
|
|
|
adc_channel_e adcChannel;
|
|
|
|
|
/** total size 32*/
|
|
|
|
|
} ThermistorConf;
|
|
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
|
/**
|
|
|
|
|
* cc/min, cubic centimeter per minute
|
|
|
|
|
* By the way, g/s = 0.125997881 * (lb/hr)
|
|
|
|
|
* g/s = 0.125997881 * (cc/min)/10.5
|
|
|
|
|
* g/s = 0.0119997981 * cc/min
|
|
|
|
|
* offset 0
|
|
|
|
|
*/
|
|
|
|
|
float flow;
|
|
|
|
|
/**
|
2016-03-08 21:03:14 -08:00
|
|
|
|
* Base injector lag
|
|
|
|
|
* See also vBatt correction curve
|
2015-07-10 06:01:56 -07:00
|
|
|
|
* offset 4
|
|
|
|
|
*/
|
|
|
|
|
float lag;
|
|
|
|
|
/**
|
|
|
|
|
* offset 8
|
|
|
|
|
*/
|
|
|
|
|
float battLagCorrBins[VBAT_INJECTOR_CURVE_SIZE];
|
|
|
|
|
/**
|
|
|
|
|
* offset 40
|
|
|
|
|
*/
|
|
|
|
|
float battLagCorr[VBAT_INJECTOR_CURVE_SIZE];
|
|
|
|
|
/** total size 72*/
|
|
|
|
|
} injector_s;
|
|
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
|
/**
|
|
|
|
|
* Engine displacement, in liters
|
|
|
|
|
* see also cylindersCount
|
|
|
|
|
* offset 0
|
|
|
|
|
*/
|
|
|
|
|
float displacement;
|
|
|
|
|
/**
|
|
|
|
|
* offset 4
|
|
|
|
|
*/
|
|
|
|
|
cylinders_count_t cylindersCount;
|
|
|
|
|
/**
|
|
|
|
|
* offset 8
|
|
|
|
|
*/
|
|
|
|
|
firing_order_e firingOrder;
|
|
|
|
|
/** total size 12*/
|
|
|
|
|
} specs_s;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief Trigger wheel(s) configuration
|
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
typedef struct {
|
|
|
|
|
/**
|
|
|
|
|
* offset 0
|
|
|
|
|
*/
|
|
|
|
|
trigger_type_e type;
|
|
|
|
|
/**
|
|
|
|
|
offset 4 bit 0 */
|
2016-01-11 14:01:33 -08:00
|
|
|
|
bool customIsSynchronizationNeeded : 1;
|
2015-07-10 06:01:56 -07:00
|
|
|
|
/**
|
|
|
|
|
offset 4 bit 1 */
|
2016-01-11 14:01:33 -08:00
|
|
|
|
bool customNeedSecondTriggerInput : 1;
|
2015-08-31 11:01:19 -07:00
|
|
|
|
/**
|
|
|
|
|
* This option could be used if your second trigger channel is broken
|
|
|
|
|
offset 4 bit 2 */
|
2016-01-11 14:01:33 -08:00
|
|
|
|
bool useOnlyFirstChannel : 1;
|
2015-07-10 06:01:56 -07:00
|
|
|
|
/**
|
|
|
|
|
* offset 8
|
|
|
|
|
*/
|
|
|
|
|
int customTotalToothCount;
|
|
|
|
|
/**
|
|
|
|
|
* offset 12
|
|
|
|
|
*/
|
|
|
|
|
int customSkippedToothCount;
|
|
|
|
|
/**
|
|
|
|
|
* offset 16
|
|
|
|
|
*/
|
|
|
|
|
float customSyncRatioFrom;
|
|
|
|
|
/**
|
|
|
|
|
* offset 20
|
|
|
|
|
*/
|
|
|
|
|
float customSyncRatioTo;
|
|
|
|
|
/**
|
|
|
|
|
* offset 24
|
|
|
|
|
*/
|
|
|
|
|
bool32_t customUseRiseEdge;
|
|
|
|
|
/** total size 28*/
|
|
|
|
|
} trigger_config_s;
|
|
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
|
/**
|
|
|
|
|
* offset 0
|
|
|
|
|
*/
|
|
|
|
|
adc_channel_e hwChannel;
|
|
|
|
|
/**
|
|
|
|
|
* offset 4
|
|
|
|
|
*/
|
|
|
|
|
float v1;
|
|
|
|
|
/**
|
|
|
|
|
* offset 8
|
|
|
|
|
*/
|
|
|
|
|
float value1;
|
|
|
|
|
/**
|
|
|
|
|
* offset 12
|
|
|
|
|
*/
|
|
|
|
|
float v2;
|
|
|
|
|
/**
|
|
|
|
|
* offset 16
|
|
|
|
|
*/
|
|
|
|
|
float value2;
|
|
|
|
|
/** total size 20*/
|
|
|
|
|
} afr_sensor_s;
|
|
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
|
/**
|
|
|
|
|
* offset 0
|
|
|
|
|
*/
|
|
|
|
|
brain_pin_e solenoidPin;
|
|
|
|
|
/**
|
|
|
|
|
* offset 4
|
|
|
|
|
*/
|
|
|
|
|
pin_output_mode_e solenoidPinMode;
|
|
|
|
|
/**
|
|
|
|
|
* offset 8
|
|
|
|
|
*/
|
|
|
|
|
int solenoidFrequency;
|
|
|
|
|
/**
|
|
|
|
|
* offset 12
|
|
|
|
|
*/
|
|
|
|
|
brain_pin_e stepperDirectionPin;
|
|
|
|
|
/**
|
|
|
|
|
* offset 16
|
|
|
|
|
*/
|
|
|
|
|
brain_pin_e stepperStepPin;
|
|
|
|
|
/** total size 20*/
|
|
|
|
|
} idle_hardware_s;
|
|
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
|
/**
|
|
|
|
|
* offset 0
|
|
|
|
|
*/
|
|
|
|
|
idle_hardware_s idle;
|
|
|
|
|
/**
|
|
|
|
|
* value between 0 and 100 used in Manual mode
|
|
|
|
|
* offset 20
|
|
|
|
|
*/
|
2015-10-18 11:01:37 -07:00
|
|
|
|
float manIdlePosition;
|
2015-07-10 06:01:56 -07:00
|
|
|
|
/**
|
|
|
|
|
* offset 24
|
|
|
|
|
*/
|
|
|
|
|
brain_pin_e fuelPumpPin;
|
|
|
|
|
/**
|
|
|
|
|
* offset 28
|
|
|
|
|
*/
|
|
|
|
|
pin_output_mode_e fuelPumpPinMode;
|
|
|
|
|
/**
|
|
|
|
|
* offset 32
|
|
|
|
|
*/
|
|
|
|
|
brain_pin_e injectionPins[INJECTION_PIN_COUNT];
|
|
|
|
|
/**
|
|
|
|
|
* offset 80
|
|
|
|
|
*/
|
|
|
|
|
pin_output_mode_e injectionPinMode;
|
|
|
|
|
/**
|
|
|
|
|
* offset 84
|
|
|
|
|
*/
|
|
|
|
|
brain_pin_e ignitionPins[IGNITION_PIN_COUNT];
|
|
|
|
|
/**
|
|
|
|
|
* offset 132
|
|
|
|
|
*/
|
|
|
|
|
pin_output_mode_e ignitionPinMode;
|
|
|
|
|
/**
|
|
|
|
|
* offset 136
|
|
|
|
|
*/
|
|
|
|
|
brain_pin_e malfunctionIndicatorPin;
|
|
|
|
|
/**
|
|
|
|
|
* offset 140
|
|
|
|
|
*/
|
|
|
|
|
pin_output_mode_e malfunctionIndicatorPinMode;
|
|
|
|
|
/**
|
|
|
|
|
* offset 144
|
|
|
|
|
*/
|
|
|
|
|
brain_pin_e fanPin;
|
|
|
|
|
/**
|
|
|
|
|
* offset 148
|
|
|
|
|
*/
|
|
|
|
|
pin_output_mode_e fanPinMode;
|
|
|
|
|
/**
|
|
|
|
|
* offset 152
|
|
|
|
|
*/
|
|
|
|
|
float mapFrequency0Kpa;
|
|
|
|
|
/**
|
|
|
|
|
* offset 156
|
|
|
|
|
*/
|
|
|
|
|
float mapFrequency100Kpa;
|
|
|
|
|
/**
|
|
|
|
|
* some cars have a switch to indicate that clutch pedal is all the way down
|
|
|
|
|
* offset 160
|
|
|
|
|
*/
|
|
|
|
|
brain_pin_e clutchDownPin;
|
|
|
|
|
/**
|
|
|
|
|
* offset 164
|
|
|
|
|
*/
|
|
|
|
|
pin_input_mode_e clutchDownPinMode;
|
|
|
|
|
/**
|
|
|
|
|
* offset 168
|
|
|
|
|
*/
|
|
|
|
|
brain_pin_e alternatorControlPin;
|
|
|
|
|
/**
|
|
|
|
|
* offset 172
|
|
|
|
|
*/
|
|
|
|
|
pin_output_mode_e alternatorControlPinMode;
|
|
|
|
|
/**
|
|
|
|
|
* offset 176
|
|
|
|
|
*/
|
|
|
|
|
brain_pin_e HD44780_rs;
|
|
|
|
|
/**
|
|
|
|
|
* offset 180
|
|
|
|
|
*/
|
|
|
|
|
brain_pin_e HD44780_e;
|
|
|
|
|
/**
|
|
|
|
|
* offset 184
|
|
|
|
|
*/
|
|
|
|
|
brain_pin_e HD44780_db4;
|
|
|
|
|
/**
|
|
|
|
|
* offset 188
|
|
|
|
|
*/
|
|
|
|
|
brain_pin_e HD44780_db5;
|
|
|
|
|
/**
|
|
|
|
|
* offset 192
|
|
|
|
|
*/
|
|
|
|
|
brain_pin_e HD44780_db6;
|
|
|
|
|
/**
|
|
|
|
|
* offset 196
|
|
|
|
|
*/
|
|
|
|
|
brain_pin_e HD44780_db7;
|
|
|
|
|
/**
|
|
|
|
|
* offset 200
|
|
|
|
|
*/
|
|
|
|
|
brain_pin_e gps_rx_pin;
|
|
|
|
|
/**
|
|
|
|
|
* offset 204
|
|
|
|
|
*/
|
|
|
|
|
brain_pin_e gps_tx_pin;
|
|
|
|
|
/**
|
|
|
|
|
* offset 208
|
|
|
|
|
*/
|
|
|
|
|
int triggerSimulatorFrequency;
|
|
|
|
|
/**
|
|
|
|
|
* Digital Potentiometer is used by stock ECU stimulation code
|
|
|
|
|
* offset 212
|
|
|
|
|
*/
|
|
|
|
|
spi_device_e digitalPotentiometerSpiDevice;
|
|
|
|
|
/**
|
|
|
|
|
* offset 216
|
|
|
|
|
*/
|
|
|
|
|
brain_pin_e digitalPotentiometerChipSelect[DIGIPOT_COUNT];
|
|
|
|
|
/**
|
|
|
|
|
* offset 232
|
|
|
|
|
*/
|
|
|
|
|
brain_pin_e etbDirectionPin1;
|
|
|
|
|
/**
|
|
|
|
|
* offset 236
|
|
|
|
|
*/
|
|
|
|
|
brain_pin_e etbDirectionPin2;
|
|
|
|
|
/**
|
|
|
|
|
* offset 240
|
|
|
|
|
*/
|
|
|
|
|
brain_pin_e etbControlPin1;
|
|
|
|
|
/**
|
|
|
|
|
* offset 244
|
|
|
|
|
*/
|
|
|
|
|
brain_pin_e etbControlPin2;
|
|
|
|
|
/**
|
|
|
|
|
* offset 248
|
|
|
|
|
*/
|
|
|
|
|
pin_output_mode_e electronicThrottlePin1Mode;
|
|
|
|
|
/**
|
|
|
|
|
* offset 252
|
|
|
|
|
*/
|
|
|
|
|
brain_pin_e wboHeaterPin;
|
|
|
|
|
/**
|
2016-02-05 12:02:36 -08:00
|
|
|
|
* offset 256
|
2015-07-10 06:01:56 -07:00
|
|
|
|
*/
|
|
|
|
|
brain_pin_e wboPumpPin;
|
|
|
|
|
/**
|
2016-02-05 12:02:36 -08:00
|
|
|
|
* offset 260
|
2015-07-10 06:01:56 -07:00
|
|
|
|
*/
|
|
|
|
|
float fuelLevelEmptyTankVoltage;
|
|
|
|
|
/**
|
2016-02-05 12:02:36 -08:00
|
|
|
|
* offset 264
|
2015-07-10 06:01:56 -07:00
|
|
|
|
*/
|
|
|
|
|
float fuelLevelFullTankVoltage;
|
|
|
|
|
/**
|
|
|
|
|
* AFR, WBO, EGO - whatever you like to call it
|
2016-02-05 12:02:36 -08:00
|
|
|
|
* offset 268
|
2015-07-10 06:01:56 -07:00
|
|
|
|
*/
|
|
|
|
|
ego_sensor_e afr_type;
|
|
|
|
|
/**
|
2016-02-05 12:02:36 -08:00
|
|
|
|
* offset 272
|
2015-07-10 06:01:56 -07:00
|
|
|
|
*/
|
|
|
|
|
int etbDT;
|
|
|
|
|
/**
|
2016-02-05 12:02:36 -08:00
|
|
|
|
* offset 276
|
2015-07-10 06:01:56 -07:00
|
|
|
|
*/
|
2015-07-13 16:02:40 -07:00
|
|
|
|
pin_output_mode_e hip9011CsPinMode;
|
|
|
|
|
/**
|
2016-02-05 12:02:36 -08:00
|
|
|
|
* offset 280
|
2015-07-13 16:02:40 -07:00
|
|
|
|
*/
|
2015-08-18 12:03:44 -07:00
|
|
|
|
brain_pin_e tachOutputPin;
|
|
|
|
|
/**
|
2016-02-05 12:02:36 -08:00
|
|
|
|
* offset 284
|
2015-08-18 12:03:44 -07:00
|
|
|
|
*/
|
|
|
|
|
pin_output_mode_e tachOutputPinMode;
|
2015-07-10 06:01:56 -07:00
|
|
|
|
/**
|
2016-02-05 12:02:36 -08:00
|
|
|
|
* offset 288
|
2015-07-10 06:01:56 -07:00
|
|
|
|
*/
|
|
|
|
|
brain_input_pin_e triggerInputPins[3];
|
|
|
|
|
/**
|
2016-02-05 12:02:36 -08:00
|
|
|
|
* offset 300
|
2015-07-10 06:01:56 -07:00
|
|
|
|
*/
|
|
|
|
|
brain_pin_e mainRelayPin;
|
|
|
|
|
/**
|
2016-02-05 12:02:36 -08:00
|
|
|
|
* offset 304
|
2015-07-10 06:01:56 -07:00
|
|
|
|
*/
|
|
|
|
|
int idleThreadPeriod;
|
|
|
|
|
/**
|
2016-02-05 12:02:36 -08:00
|
|
|
|
* offset 308
|
2015-07-10 06:01:56 -07:00
|
|
|
|
*/
|
|
|
|
|
int consoleLoopPeriod;
|
|
|
|
|
/**
|
2016-02-05 12:02:36 -08:00
|
|
|
|
* offset 312
|
2015-07-10 06:01:56 -07:00
|
|
|
|
*/
|
|
|
|
|
int lcdThreadPeriod;
|
|
|
|
|
/**
|
2016-02-05 12:02:36 -08:00
|
|
|
|
* offset 316
|
2015-07-10 06:01:56 -07:00
|
|
|
|
*/
|
|
|
|
|
brain_pin_e sdCardCsPin;
|
|
|
|
|
/**
|
2016-02-05 12:02:36 -08:00
|
|
|
|
* offset 320
|
2015-07-10 06:01:56 -07:00
|
|
|
|
*/
|
|
|
|
|
int generalPeriodicThreadPeriod;
|
|
|
|
|
/**
|
2016-02-05 12:02:36 -08:00
|
|
|
|
* offset 324
|
2015-07-10 06:01:56 -07:00
|
|
|
|
*/
|
|
|
|
|
uint32_t tunerStudioSerialSpeed;
|
|
|
|
|
/**
|
2016-02-05 12:02:36 -08:00
|
|
|
|
* offset 328
|
2015-07-10 06:01:56 -07:00
|
|
|
|
*/
|
|
|
|
|
brain_pin_e boardTestModeJumperPin;
|
|
|
|
|
/**
|
2016-02-05 12:02:36 -08:00
|
|
|
|
* offset 332
|
2015-07-10 06:01:56 -07:00
|
|
|
|
*/
|
|
|
|
|
can_device_mode_e canDeviceMode;
|
|
|
|
|
/**
|
2016-02-05 12:02:36 -08:00
|
|
|
|
* offset 336
|
2015-07-10 06:01:56 -07:00
|
|
|
|
*/
|
|
|
|
|
brain_pin_e canTxPin;
|
|
|
|
|
/**
|
2016-02-05 12:02:36 -08:00
|
|
|
|
* offset 340
|
2015-07-10 06:01:56 -07:00
|
|
|
|
*/
|
|
|
|
|
brain_pin_e canRxPin;
|
|
|
|
|
/**
|
2016-02-05 12:02:36 -08:00
|
|
|
|
* offset 344
|
2015-07-10 06:01:56 -07:00
|
|
|
|
*/
|
|
|
|
|
brain_pin_e triggerSimulatorPins[TRIGGER_SIMULATOR_PIN_COUNT];
|
|
|
|
|
/**
|
2016-02-05 12:02:36 -08:00
|
|
|
|
* offset 356
|
2015-07-10 06:01:56 -07:00
|
|
|
|
*/
|
|
|
|
|
pin_output_mode_e triggerSimulatorPinModes[TRIGGER_SIMULATOR_PIN_COUNT];
|
|
|
|
|
/**
|
2016-02-05 12:02:36 -08:00
|
|
|
|
* offset 368
|
2015-07-10 06:01:56 -07:00
|
|
|
|
*/
|
|
|
|
|
brain_pin_e o2heaterPin;
|
|
|
|
|
/**
|
2016-02-05 12:02:36 -08:00
|
|
|
|
* offset 372
|
2015-07-10 06:01:56 -07:00
|
|
|
|
*/
|
|
|
|
|
pin_output_mode_e o2heaterPinModeTodO;
|
|
|
|
|
/**
|
2016-02-05 12:02:36 -08:00
|
|
|
|
offset 376 bit 0 */
|
2016-01-11 14:01:33 -08:00
|
|
|
|
bool is_enabled_spi_1 : 1;
|
2015-07-10 06:01:56 -07:00
|
|
|
|
/**
|
2016-02-05 12:02:36 -08:00
|
|
|
|
offset 376 bit 1 */
|
2016-01-11 14:01:33 -08:00
|
|
|
|
bool is_enabled_spi_2 : 1;
|
2015-07-10 06:01:56 -07:00
|
|
|
|
/**
|
2016-02-05 12:02:36 -08:00
|
|
|
|
offset 376 bit 2 */
|
2016-01-11 14:01:33 -08:00
|
|
|
|
bool is_enabled_spi_3 : 1;
|
2015-07-10 06:01:56 -07:00
|
|
|
|
/**
|
2016-02-05 12:02:36 -08:00
|
|
|
|
offset 376 bit 3 */
|
2016-01-11 14:01:33 -08:00
|
|
|
|
bool isSdCardEnabled : 1;
|
2015-07-10 06:01:56 -07:00
|
|
|
|
/**
|
2016-02-05 12:02:36 -08:00
|
|
|
|
offset 376 bit 4 */
|
2016-01-11 14:01:33 -08:00
|
|
|
|
bool isFastAdcEnabled : 1;
|
2015-07-10 06:01:56 -07:00
|
|
|
|
/**
|
2016-02-05 12:02:36 -08:00
|
|
|
|
offset 376 bit 5 */
|
2016-01-11 14:01:33 -08:00
|
|
|
|
bool isEngineControlEnabled : 1;
|
2015-07-10 06:01:56 -07:00
|
|
|
|
/**
|
2016-02-05 12:02:36 -08:00
|
|
|
|
offset 376 bit 6 */
|
2016-01-11 14:01:33 -08:00
|
|
|
|
bool isHip9011Enabled : 1;
|
2015-07-10 06:01:56 -07:00
|
|
|
|
/**
|
2016-02-05 12:02:36 -08:00
|
|
|
|
offset 376 bit 7 */
|
2016-01-11 14:01:33 -08:00
|
|
|
|
bool isVerboseAlternator : 1;
|
2015-07-10 06:01:56 -07:00
|
|
|
|
/**
|
2016-02-05 12:02:36 -08:00
|
|
|
|
offset 376 bit 8 */
|
2016-01-11 14:01:33 -08:00
|
|
|
|
bool useSerialPort : 1;
|
2015-07-10 06:01:56 -07:00
|
|
|
|
/**
|
2016-02-05 12:02:36 -08:00
|
|
|
|
offset 376 bit 9 */
|
2016-01-11 14:01:33 -08:00
|
|
|
|
bool useStepperIdle : 1;
|
2015-07-10 06:01:56 -07:00
|
|
|
|
/**
|
2016-02-05 12:02:36 -08:00
|
|
|
|
offset 376 bit 10 */
|
2016-01-11 14:01:33 -08:00
|
|
|
|
bool enabledStep1Limiter : 1;
|
2015-07-10 06:01:56 -07:00
|
|
|
|
/**
|
2016-02-05 12:02:36 -08:00
|
|
|
|
offset 376 bit 11 */
|
2016-01-11 14:01:33 -08:00
|
|
|
|
bool useTpicAdvancedMode : 1;
|
2015-09-15 18:01:38 -07:00
|
|
|
|
/**
|
2016-02-05 12:02:36 -08:00
|
|
|
|
offset 376 bit 12 */
|
2016-01-11 14:01:33 -08:00
|
|
|
|
bool useLcdScreen : 1;
|
2016-02-04 20:02:52 -08:00
|
|
|
|
/**
|
2016-02-05 12:02:36 -08:00
|
|
|
|
offset 376 bit 13 */
|
2016-02-04 20:02:52 -08:00
|
|
|
|
bool startConsoleInBinaryMode : 1;
|
2016-02-06 07:01:34 -08:00
|
|
|
|
/**
|
|
|
|
|
offset 376 bit 14 */
|
|
|
|
|
bool useWarmupPidAfr : 1;
|
2016-02-27 22:03:22 -08:00
|
|
|
|
/**
|
|
|
|
|
offset 376 bit 15 */
|
|
|
|
|
bool onOffAlternatorLogic : 1;
|
2015-07-10 06:01:56 -07:00
|
|
|
|
/**
|
2016-02-05 12:02:36 -08:00
|
|
|
|
* offset 380
|
2015-07-10 06:01:56 -07:00
|
|
|
|
*/
|
|
|
|
|
brain_input_pin_e logicAnalyzerPins[LOGIC_ANALYZER_CHANNEL_COUNT];
|
|
|
|
|
/**
|
|
|
|
|
* default or inverted input
|
2016-02-05 12:02:36 -08:00
|
|
|
|
* offset 396
|
2015-07-10 06:01:56 -07:00
|
|
|
|
*/
|
|
|
|
|
uint8_t logicAnalyzerMode[LOGIC_ANALYZER_CHANNEL_COUNT];
|
|
|
|
|
/**
|
2016-02-05 12:02:36 -08:00
|
|
|
|
* offset 400
|
2015-07-10 06:01:56 -07:00
|
|
|
|
*/
|
|
|
|
|
int unrealisticRpmThreashold;
|
|
|
|
|
/**
|
2016-02-05 12:02:36 -08:00
|
|
|
|
* offset 404
|
2015-07-10 06:01:56 -07:00
|
|
|
|
*/
|
|
|
|
|
pin_output_mode_e mainRelayPinMode;
|
|
|
|
|
/**
|
2016-02-05 12:02:36 -08:00
|
|
|
|
* offset 408
|
2015-07-10 06:01:56 -07:00
|
|
|
|
*/
|
|
|
|
|
brain_pin_e max31855_cs[EGT_CHANNEL_COUNT];
|
|
|
|
|
/**
|
2016-02-05 12:02:36 -08:00
|
|
|
|
* offset 440
|
2015-07-10 06:01:56 -07:00
|
|
|
|
*/
|
|
|
|
|
spi_device_e max31855spiDevice;
|
|
|
|
|
/**
|
2016-02-05 12:02:36 -08:00
|
|
|
|
* offset 444
|
2015-07-10 06:01:56 -07:00
|
|
|
|
*/
|
|
|
|
|
brain_pin_e fsioPins[LE_COMMAND_COUNT];
|
|
|
|
|
/**
|
2016-02-05 12:02:36 -08:00
|
|
|
|
* offset 508
|
2015-07-10 06:01:56 -07:00
|
|
|
|
*/
|
|
|
|
|
pin_output_mode_e gpioPinModes[LE_COMMAND_COUNT];
|
|
|
|
|
/**
|
2016-02-05 12:02:36 -08:00
|
|
|
|
* offset 572
|
2015-07-10 06:01:56 -07:00
|
|
|
|
*/
|
|
|
|
|
brain_pin_e joystickPins[JOYSTICK_PIN_COUNT];
|
|
|
|
|
/**
|
|
|
|
|
* This pin is used for debugging - snap a logic analyzer on it and see if it's ever high
|
2016-02-05 12:02:36 -08:00
|
|
|
|
* offset 592
|
2015-07-10 06:01:56 -07:00
|
|
|
|
*/
|
|
|
|
|
brain_pin_e triggerErrorPin;
|
|
|
|
|
/**
|
2016-02-05 12:02:36 -08:00
|
|
|
|
* offset 596
|
2015-07-10 06:01:56 -07:00
|
|
|
|
*/
|
|
|
|
|
pin_output_mode_e triggerErrorPinMode;
|
|
|
|
|
/**
|
2016-02-05 12:02:36 -08:00
|
|
|
|
* offset 600
|
2015-07-10 06:01:56 -07:00
|
|
|
|
*/
|
|
|
|
|
brain_pin_e acRelayPin;
|
|
|
|
|
/**
|
2016-02-05 12:02:36 -08:00
|
|
|
|
* offset 604
|
2015-07-10 06:01:56 -07:00
|
|
|
|
*/
|
|
|
|
|
pin_output_mode_e acRelayPinMode;
|
|
|
|
|
/**
|
2016-02-05 12:02:36 -08:00
|
|
|
|
* offset 608
|
2015-07-10 06:01:56 -07:00
|
|
|
|
*/
|
|
|
|
|
fsio_pwm_freq_t fsioFrequency[LE_COMMAND_COUNT];
|
|
|
|
|
/**
|
2016-02-05 12:02:36 -08:00
|
|
|
|
* offset 640
|
2015-07-10 06:01:56 -07:00
|
|
|
|
*/
|
|
|
|
|
brain_pin_e hip9011CsPin;
|
|
|
|
|
/**
|
2016-02-05 12:02:36 -08:00
|
|
|
|
* offset 644
|
2015-07-10 06:01:56 -07:00
|
|
|
|
*/
|
|
|
|
|
brain_pin_e hip9011IntHoldPin;
|
|
|
|
|
/**
|
2016-02-05 12:02:36 -08:00
|
|
|
|
* offset 648
|
2015-07-10 06:01:56 -07:00
|
|
|
|
*/
|
|
|
|
|
pin_output_mode_e hip9011IntHoldPinMode;
|
|
|
|
|
/**
|
2016-02-05 12:02:36 -08:00
|
|
|
|
* offset 652
|
2015-07-10 06:01:56 -07:00
|
|
|
|
*/
|
|
|
|
|
fsio_setting_t fsio_setting[LE_COMMAND_COUNT];
|
|
|
|
|
/**
|
2016-02-05 12:02:36 -08:00
|
|
|
|
* offset 716
|
2015-07-10 06:01:56 -07:00
|
|
|
|
*/
|
|
|
|
|
brain_pin_e spi1mosiPin;
|
|
|
|
|
/**
|
2016-02-05 12:02:36 -08:00
|
|
|
|
* offset 720
|
2015-07-10 06:01:56 -07:00
|
|
|
|
*/
|
|
|
|
|
brain_pin_e spi1misoPin;
|
|
|
|
|
/**
|
2016-02-05 12:02:36 -08:00
|
|
|
|
* offset 724
|
2015-07-10 06:01:56 -07:00
|
|
|
|
*/
|
|
|
|
|
brain_pin_e spi1sckPin;
|
|
|
|
|
/**
|
2016-02-05 12:02:36 -08:00
|
|
|
|
* offset 728
|
2015-07-10 06:01:56 -07:00
|
|
|
|
*/
|
|
|
|
|
brain_pin_e spi2mosiPin;
|
|
|
|
|
/**
|
2016-02-05 12:02:36 -08:00
|
|
|
|
* offset 732
|
2015-07-10 06:01:56 -07:00
|
|
|
|
*/
|
|
|
|
|
brain_pin_e spi2misoPin;
|
|
|
|
|
/**
|
2016-02-05 12:02:36 -08:00
|
|
|
|
* offset 736
|
2015-07-10 06:01:56 -07:00
|
|
|
|
*/
|
|
|
|
|
brain_pin_e spi2sckPin;
|
|
|
|
|
/**
|
2016-02-05 12:02:36 -08:00
|
|
|
|
* offset 740
|
2015-07-10 06:01:56 -07:00
|
|
|
|
*/
|
|
|
|
|
brain_pin_e spi3mosiPin;
|
|
|
|
|
/**
|
2016-02-05 12:02:36 -08:00
|
|
|
|
* offset 744
|
2015-07-10 06:01:56 -07:00
|
|
|
|
*/
|
|
|
|
|
brain_pin_e spi3misoPin;
|
|
|
|
|
/**
|
2016-02-05 12:02:36 -08:00
|
|
|
|
* offset 748
|
2015-07-10 06:01:56 -07:00
|
|
|
|
*/
|
|
|
|
|
brain_pin_e spi3sckPin;
|
|
|
|
|
/**
|
2016-02-05 12:02:36 -08:00
|
|
|
|
* offset 752
|
2015-07-10 06:01:56 -07:00
|
|
|
|
*/
|
|
|
|
|
float hip9011Gain;
|
|
|
|
|
/**
|
2016-02-05 12:02:36 -08:00
|
|
|
|
* offset 756
|
2015-07-10 06:01:56 -07:00
|
|
|
|
*/
|
|
|
|
|
brain_pin_e joystickCenterPin;
|
|
|
|
|
/**
|
2016-02-05 12:02:36 -08:00
|
|
|
|
* offset 760
|
2015-07-10 06:01:56 -07:00
|
|
|
|
*/
|
|
|
|
|
brain_pin_e joystickAPin;
|
|
|
|
|
/**
|
2016-02-05 12:02:36 -08:00
|
|
|
|
* offset 764
|
2015-07-10 06:01:56 -07:00
|
|
|
|
*/
|
|
|
|
|
brain_pin_e joystickBPin;
|
|
|
|
|
/**
|
2016-02-05 12:02:36 -08:00
|
|
|
|
* offset 768
|
2015-07-10 06:01:56 -07:00
|
|
|
|
*/
|
|
|
|
|
brain_pin_e joystickCPin;
|
|
|
|
|
/**
|
2016-02-05 12:02:36 -08:00
|
|
|
|
* offset 772
|
2015-07-10 06:01:56 -07:00
|
|
|
|
*/
|
|
|
|
|
brain_pin_e joystickDPin;
|
|
|
|
|
/**
|
2016-03-21 13:01:49 -07:00
|
|
|
|
* rusEfi console Sensor Sniffer mode
|
2016-02-05 12:02:36 -08:00
|
|
|
|
* offset 776
|
2015-07-10 06:01:56 -07:00
|
|
|
|
*/
|
|
|
|
|
sensor_chart_e sensorChartMode;
|
|
|
|
|
/**
|
2016-02-05 12:02:36 -08:00
|
|
|
|
* offset 780
|
2015-07-10 06:01:56 -07:00
|
|
|
|
*/
|
|
|
|
|
maf_sensor_type_e mafSensorType;
|
|
|
|
|
/**
|
2016-02-05 12:02:36 -08:00
|
|
|
|
* offset 784
|
2015-07-10 06:01:56 -07:00
|
|
|
|
*/
|
|
|
|
|
brain_input_pin_e vehicleSpeedSensorInputPin;
|
|
|
|
|
/**
|
|
|
|
|
* Some vehicles have a switch to indicate that clutch pedal is all the way up
|
2016-02-05 12:02:36 -08:00
|
|
|
|
* offset 788
|
2015-07-10 06:01:56 -07:00
|
|
|
|
*/
|
|
|
|
|
brain_pin_e clutchUpPin;
|
|
|
|
|
/**
|
2016-02-05 12:02:36 -08:00
|
|
|
|
* offset 792
|
2015-07-10 06:01:56 -07:00
|
|
|
|
*/
|
|
|
|
|
pin_input_mode_e clutchUpPinMode;
|
|
|
|
|
/**
|
|
|
|
|
* These input pins allow us to pull toggle buttons state
|
2016-02-05 12:02:36 -08:00
|
|
|
|
* offset 796
|
2015-07-10 06:01:56 -07:00
|
|
|
|
*/
|
|
|
|
|
brain_pin_e fsioDigitalInputs[LE_COMMAND_COUNT];
|
|
|
|
|
/**
|
2016-02-05 12:02:36 -08:00
|
|
|
|
* offset 860
|
2015-07-10 06:01:56 -07:00
|
|
|
|
*/
|
|
|
|
|
brain_input_pin_e frequencyReportingMapInputPin;
|
2016-02-05 12:02:36 -08:00
|
|
|
|
/** total size 864*/
|
2015-07-10 06:01:56 -07:00
|
|
|
|
} board_configuration_s;
|
|
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
|
/**
|
|
|
|
|
* http://rusefi.com/wiki/index.php?title=Manual:Engine_Type
|
|
|
|
|
* offset 0
|
|
|
|
|
*/
|
|
|
|
|
engine_type_e engineType;
|
|
|
|
|
/**
|
2016-03-21 13:01:49 -07:00
|
|
|
|
* Engine sniffer would be disabled above this rpm
|
2015-07-10 06:01:56 -07:00
|
|
|
|
* offset 4
|
|
|
|
|
*/
|
2016-01-30 19:03:36 -08:00
|
|
|
|
int engineSnifferRpmThreshold;
|
2015-07-10 06:01:56 -07:00
|
|
|
|
/**
|
|
|
|
|
* offset 8
|
|
|
|
|
*/
|
|
|
|
|
injector_s injector;
|
|
|
|
|
/**
|
2016-03-09 13:01:51 -08:00
|
|
|
|
* Should trigger emulator push data right into trigger handling logic, eliminating the need for physical jumper wires?
|
2015-07-10 06:01:56 -07:00
|
|
|
|
* PS: Funny name, right? :)
|
|
|
|
|
offset 80 bit 0 */
|
2016-01-11 14:01:33 -08:00
|
|
|
|
bool directSelfStimulation : 1;
|
2015-07-10 06:01:56 -07:00
|
|
|
|
/**
|
|
|
|
|
* todo: extract these two fields into a structure
|
|
|
|
|
* todo: we need two sets of TPS parameters - modern ETBs have two sensors
|
|
|
|
|
* offset 84
|
|
|
|
|
*/
|
|
|
|
|
int16_t tpsMin;
|
|
|
|
|
/**
|
|
|
|
|
* tpsMax value as 10 bit ADC value. Not Voltage!
|
|
|
|
|
* offset 86
|
|
|
|
|
*/
|
|
|
|
|
int16_t tpsMax;
|
|
|
|
|
/**
|
2016-01-08 08:01:40 -08:00
|
|
|
|
* TPS error detection, what TPS % value is unrealistically low
|
2015-07-10 06:01:56 -07:00
|
|
|
|
* offset 88
|
|
|
|
|
*/
|
2016-01-08 08:01:40 -08:00
|
|
|
|
int16_t tpsErrorDetectionTooLow;
|
2015-07-10 06:01:56 -07:00
|
|
|
|
/**
|
|
|
|
|
* offset 90
|
|
|
|
|
*/
|
2016-01-08 08:01:40 -08:00
|
|
|
|
int16_t tpsErrorDetectionTooHigh;
|
2015-07-10 06:01:56 -07:00
|
|
|
|
/**
|
|
|
|
|
* offset 92
|
|
|
|
|
*/
|
|
|
|
|
cranking_parameters_s cranking;
|
|
|
|
|
/**
|
|
|
|
|
* offset 100
|
|
|
|
|
*/
|
|
|
|
|
float primingSquirtDurationMs;
|
|
|
|
|
/**
|
|
|
|
|
* offset 104
|
|
|
|
|
*/
|
|
|
|
|
float ignitionDwellForCrankingMs;
|
|
|
|
|
/**
|
|
|
|
|
* While cranking (which causes battery voltage to drop) we can calculate dwell time in shaft
|
|
|
|
|
* degrees, not in absolute time as in running mode.
|
|
|
|
|
* offset 108
|
|
|
|
|
*/
|
|
|
|
|
float crankingChargeAngle;
|
|
|
|
|
/**
|
|
|
|
|
* @see hasMapSensor
|
|
|
|
|
* @see isMapAveragingEnabled
|
|
|
|
|
* offset 112
|
|
|
|
|
*/
|
|
|
|
|
MAP_sensor_config_s map;
|
|
|
|
|
/**
|
|
|
|
|
* todo: merge with channel settings, use full-scale Thermistor here!
|
|
|
|
|
* offset 256
|
|
|
|
|
*/
|
|
|
|
|
ThermistorConf clt;
|
|
|
|
|
/**
|
|
|
|
|
* offset 288
|
|
|
|
|
*/
|
|
|
|
|
ThermistorConf iat;
|
|
|
|
|
/**
|
2015-10-05 17:01:54 -07:00
|
|
|
|
* A secondary Rev limit engaged by the driver to help launch the vehicle faster
|
2015-07-10 06:01:56 -07:00
|
|
|
|
* offset 320
|
|
|
|
|
*/
|
|
|
|
|
int step1rpm;
|
|
|
|
|
/**
|
|
|
|
|
* offset 324
|
|
|
|
|
*/
|
|
|
|
|
int step1timing;
|
|
|
|
|
/**
|
|
|
|
|
* offset 328
|
|
|
|
|
*/
|
|
|
|
|
int hip9011PrescalerAndSDO;
|
|
|
|
|
/**
|
|
|
|
|
* kHz knock band override
|
|
|
|
|
* offset 332
|
|
|
|
|
*/
|
|
|
|
|
float knockBandCustom;
|
|
|
|
|
/**
|
|
|
|
|
* offset 336
|
|
|
|
|
*/
|
|
|
|
|
float sparkDwellBins[DWELL_CURVE_SIZE];
|
|
|
|
|
/**
|
|
|
|
|
* offset 368
|
|
|
|
|
*/
|
|
|
|
|
float sparkDwell[DWELL_CURVE_SIZE];
|
|
|
|
|
/**
|
|
|
|
|
* offset 400
|
|
|
|
|
*/
|
|
|
|
|
specs_s specs;
|
|
|
|
|
/**
|
|
|
|
|
* Cylinder diameter, in mm.
|
|
|
|
|
* offset 412
|
|
|
|
|
*/
|
|
|
|
|
float cylinderBore;
|
|
|
|
|
/**
|
2016-01-30 19:03:36 -08:00
|
|
|
|
* Disable sensor sniffer above this rpm
|
2015-07-10 06:01:56 -07:00
|
|
|
|
* offset 416
|
|
|
|
|
*/
|
2016-01-30 19:03:36 -08:00
|
|
|
|
int sensorSnifferRpmThreshold;
|
2015-07-10 06:01:56 -07:00
|
|
|
|
/**
|
|
|
|
|
* offset 420
|
|
|
|
|
*/
|
|
|
|
|
int rpmHardLimit;
|
|
|
|
|
/**
|
|
|
|
|
* This setting controls which algorithm is used for ENGINE LOAD
|
|
|
|
|
* offset 424
|
|
|
|
|
*/
|
|
|
|
|
engine_load_mode_e algorithm;
|
|
|
|
|
/**
|
|
|
|
|
* offset 428
|
|
|
|
|
*/
|
|
|
|
|
injection_mode_e crankingInjectionMode;
|
|
|
|
|
/**
|
2016-06-10 22:02:20 -07:00
|
|
|
|
* 'batched' means two injectors are wired together
|
2015-07-10 06:01:56 -07:00
|
|
|
|
* offset 432
|
|
|
|
|
*/
|
|
|
|
|
injection_mode_e injectionMode;
|
|
|
|
|
/**
|
|
|
|
|
* this is about deciding when the injector starts it's squirt
|
|
|
|
|
* See also injectionPhase map
|
|
|
|
|
* offset 436
|
|
|
|
|
*/
|
|
|
|
|
angle_t injectionOffset;
|
|
|
|
|
/**
|
2016-03-09 13:01:51 -08:00
|
|
|
|
* Timing advance while engine cranking
|
2015-07-10 06:01:56 -07:00
|
|
|
|
* offset 440
|
|
|
|
|
*/
|
|
|
|
|
angle_t crankingTimingAngle;
|
|
|
|
|
/**
|
2016-06-10 22:02:20 -07:00
|
|
|
|
* 'wasted' means one coil is driving two spark plugs in two cylinders, with one of the aparks not doing anything since it's happening on the exhaust cycle
|
2015-07-10 06:01:56 -07:00
|
|
|
|
* offset 444
|
|
|
|
|
*/
|
|
|
|
|
ignition_mode_e ignitionMode;
|
|
|
|
|
/**
|
|
|
|
|
* this value could be used to offset the whole ignition timing table by a constant
|
|
|
|
|
* offset 448
|
|
|
|
|
*/
|
|
|
|
|
angle_t ignitionOffset;
|
|
|
|
|
/**
|
|
|
|
|
* offset 452
|
|
|
|
|
*/
|
|
|
|
|
timing_mode_e timingMode;
|
|
|
|
|
/**
|
|
|
|
|
* This value is used in 'fixed timing' mode, i.e. constant timing
|
|
|
|
|
* This mode is useful for instance while adjusting distributor location
|
|
|
|
|
* offset 456
|
|
|
|
|
*/
|
|
|
|
|
angle_t fixedModeTiming;
|
|
|
|
|
/**
|
2016-03-09 13:01:51 -08:00
|
|
|
|
* Angle between Top Dead Center (TDC) and the first trigger event.
|
2015-07-10 06:01:56 -07:00
|
|
|
|
* Knowing this angle allows us to control timing and other angles in reference to TDC.
|
|
|
|
|
* offset 460
|
|
|
|
|
*/
|
|
|
|
|
angle_t globalTriggerAngleOffset;
|
|
|
|
|
/**
|
2016-03-09 13:01:51 -08:00
|
|
|
|
* Coefficient of input voltage dividers on your PCB
|
2015-07-10 06:01:56 -07:00
|
|
|
|
* offset 464
|
|
|
|
|
*/
|
|
|
|
|
float analogInputDividerCoefficient;
|
|
|
|
|
/**
|
|
|
|
|
* Battery Voltage input resistor divider coefficient
|
|
|
|
|
* offset 468
|
|
|
|
|
*/
|
|
|
|
|
float vbattDividerCoeff;
|
|
|
|
|
/**
|
|
|
|
|
* offset 472
|
|
|
|
|
*/
|
|
|
|
|
adc_channel_e vbattAdcChannel;
|
|
|
|
|
/**
|
|
|
|
|
* Cooling fan turn-on temperature threshold, in Celsuis
|
|
|
|
|
* offset 476
|
|
|
|
|
*/
|
|
|
|
|
float fanOnTemperature;
|
|
|
|
|
/**
|
|
|
|
|
* Cooling fan turn-off temperature threshold, in Celsuis
|
|
|
|
|
* offset 480
|
|
|
|
|
*/
|
|
|
|
|
float fanOffTemperature;
|
|
|
|
|
/**
|
|
|
|
|
* offset 484
|
|
|
|
|
*/
|
|
|
|
|
adc_channel_e fuelLevelSensor;
|
|
|
|
|
/**
|
|
|
|
|
* This coefficient translates vehicle speed input frequency (in Hz) into vehicle speed, km/h
|
|
|
|
|
* offset 488
|
|
|
|
|
*/
|
|
|
|
|
float vehicleSpeedCoef;
|
|
|
|
|
/**
|
|
|
|
|
* offset 492
|
|
|
|
|
*/
|
|
|
|
|
can_nbc_e canNbcType;
|
|
|
|
|
/**
|
|
|
|
|
* CANbus thread period, ms
|
|
|
|
|
* offset 496
|
|
|
|
|
*/
|
|
|
|
|
int canSleepPeriod;
|
|
|
|
|
/**
|
|
|
|
|
* offset 500
|
|
|
|
|
*/
|
|
|
|
|
operation_mode_e operationMode;
|
|
|
|
|
/**
|
|
|
|
|
* offset 504
|
|
|
|
|
*/
|
|
|
|
|
display_mode_e displayMode;
|
|
|
|
|
/**
|
|
|
|
|
* offset 508
|
|
|
|
|
*/
|
|
|
|
|
log_format_e logFormat;
|
|
|
|
|
/**
|
|
|
|
|
* offset 512
|
|
|
|
|
*/
|
|
|
|
|
int firmwareVersion;
|
|
|
|
|
/**
|
|
|
|
|
* offset 516
|
|
|
|
|
*/
|
|
|
|
|
int HD44780width;
|
|
|
|
|
/**
|
|
|
|
|
* offset 520
|
|
|
|
|
*/
|
|
|
|
|
int HD44780height;
|
|
|
|
|
/**
|
|
|
|
|
* offset 524
|
|
|
|
|
*/
|
|
|
|
|
adc_channel_e tpsAdcChannel;
|
|
|
|
|
/**
|
|
|
|
|
* offset 528
|
|
|
|
|
*/
|
|
|
|
|
int overrideCrankingIgnition;
|
|
|
|
|
/**
|
|
|
|
|
* offset 532
|
|
|
|
|
*/
|
|
|
|
|
int sensorChartFrequency;
|
|
|
|
|
/**
|
|
|
|
|
* offset 536
|
|
|
|
|
*/
|
|
|
|
|
trigger_config_s trigger;
|
|
|
|
|
/**
|
|
|
|
|
* offset 564
|
|
|
|
|
*/
|
|
|
|
|
spi_device_e hip9011SpiDevice;
|
|
|
|
|
/**
|
|
|
|
|
* offset 568
|
|
|
|
|
*/
|
|
|
|
|
float globalFuelCorrection;
|
|
|
|
|
/**
|
|
|
|
|
* offset 572
|
|
|
|
|
*/
|
|
|
|
|
int16_t pedalPositionMin;
|
|
|
|
|
/**
|
|
|
|
|
* offset 574
|
|
|
|
|
*/
|
|
|
|
|
int16_t pedalPositionMax;
|
|
|
|
|
/**
|
|
|
|
|
* maximum total number of degrees to subtract from ignition advance
|
|
|
|
|
* when knocking
|
|
|
|
|
* offset 576
|
|
|
|
|
*/
|
|
|
|
|
float maxKnockSubDeg;
|
|
|
|
|
/**
|
|
|
|
|
* offset 580
|
|
|
|
|
*/
|
|
|
|
|
adc_channel_e mafAdcChannel;
|
|
|
|
|
/**
|
|
|
|
|
* @see hasAfrSensor
|
|
|
|
|
* offset 584
|
|
|
|
|
*/
|
|
|
|
|
afr_sensor_s afr;
|
|
|
|
|
/**
|
|
|
|
|
* offset 604
|
|
|
|
|
*/
|
|
|
|
|
adc_channel_e pedalPositionChannel;
|
|
|
|
|
/**
|
|
|
|
|
* @see hasBaroSensor
|
|
|
|
|
* offset 608
|
|
|
|
|
*/
|
|
|
|
|
air_pressure_sensor_config_s baroSensor;
|
|
|
|
|
/**
|
|
|
|
|
* offset 624
|
|
|
|
|
*/
|
|
|
|
|
board_configuration_s bc;
|
|
|
|
|
/**
|
|
|
|
|
* @see isMapAveragingEnabled
|
2016-02-05 12:02:36 -08:00
|
|
|
|
offset 1488 bit 0 */
|
2016-01-11 14:01:33 -08:00
|
|
|
|
bool hasMapSensor : 1;
|
2015-07-10 06:01:56 -07:00
|
|
|
|
/**
|
2016-02-05 12:02:36 -08:00
|
|
|
|
offset 1488 bit 1 */
|
2016-01-11 14:01:33 -08:00
|
|
|
|
bool hasIatSensor : 1;
|
2015-07-10 06:01:56 -07:00
|
|
|
|
/**
|
2016-02-05 12:02:36 -08:00
|
|
|
|
offset 1488 bit 2 */
|
2016-01-11 14:01:33 -08:00
|
|
|
|
bool hasBaroSensor : 1;
|
2015-07-10 06:01:56 -07:00
|
|
|
|
/**
|
2016-02-05 12:02:36 -08:00
|
|
|
|
offset 1488 bit 3 */
|
2016-01-11 14:01:33 -08:00
|
|
|
|
bool hasAfrSensor : 1;
|
2015-07-10 06:01:56 -07:00
|
|
|
|
/**
|
2016-02-05 12:02:36 -08:00
|
|
|
|
offset 1488 bit 4 */
|
2016-01-11 14:01:33 -08:00
|
|
|
|
bool useConstantDwellDuringCranking : 1;
|
2015-07-10 06:01:56 -07:00
|
|
|
|
/**
|
2015-10-18 17:01:25 -07:00
|
|
|
|
* This options enables data for 'engine sniffer' tab in console, which comes at some CPU price
|
2016-02-05 12:02:36 -08:00
|
|
|
|
offset 1488 bit 5 */
|
2016-01-11 14:01:33 -08:00
|
|
|
|
bool isEngineChartEnabled : 1;
|
2015-07-10 06:01:56 -07:00
|
|
|
|
/**
|
2016-02-05 12:02:36 -08:00
|
|
|
|
offset 1488 bit 6 */
|
2016-01-11 14:01:33 -08:00
|
|
|
|
bool isCanEnabled : 1;
|
2015-07-10 06:01:56 -07:00
|
|
|
|
/**
|
2016-02-05 12:02:36 -08:00
|
|
|
|
offset 1488 bit 7 */
|
2016-01-11 14:01:33 -08:00
|
|
|
|
bool hasCltSensor : 1;
|
2015-07-10 06:01:56 -07:00
|
|
|
|
/**
|
2016-02-05 12:02:36 -08:00
|
|
|
|
offset 1488 bit 8 */
|
2016-01-11 14:01:33 -08:00
|
|
|
|
bool canReadEnabled : 1;
|
2015-07-10 06:01:56 -07:00
|
|
|
|
/**
|
2016-02-05 12:02:36 -08:00
|
|
|
|
offset 1488 bit 9 */
|
2016-01-11 14:01:33 -08:00
|
|
|
|
bool canWriteEnabled : 1;
|
2015-07-10 06:01:56 -07:00
|
|
|
|
/**
|
2016-02-05 12:02:36 -08:00
|
|
|
|
offset 1488 bit 10 */
|
2016-01-11 14:01:33 -08:00
|
|
|
|
bool hasVehicleSpeedSensor : 1;
|
2015-07-10 06:01:56 -07:00
|
|
|
|
/**
|
2016-02-05 12:02:36 -08:00
|
|
|
|
offset 1488 bit 11 */
|
2016-01-11 14:01:33 -08:00
|
|
|
|
bool isJoystickEnabled : 1;
|
2015-07-10 06:01:56 -07:00
|
|
|
|
/**
|
2016-02-05 12:02:36 -08:00
|
|
|
|
offset 1488 bit 12 */
|
2016-01-11 14:01:33 -08:00
|
|
|
|
bool isGpsEnabled : 1;
|
2015-07-10 06:01:56 -07:00
|
|
|
|
/**
|
2016-02-05 12:02:36 -08:00
|
|
|
|
offset 1488 bit 13 */
|
2016-01-11 14:01:33 -08:00
|
|
|
|
bool isAlternatorControlEnabled : 1;
|
2015-07-10 06:01:56 -07:00
|
|
|
|
/**
|
2016-02-05 12:02:36 -08:00
|
|
|
|
offset 1488 bit 14 */
|
2016-01-11 14:01:33 -08:00
|
|
|
|
bool hasMafSensor : 1;
|
2015-07-10 06:01:56 -07:00
|
|
|
|
/**
|
2016-02-05 12:02:36 -08:00
|
|
|
|
offset 1488 bit 15 */
|
2016-01-11 14:01:33 -08:00
|
|
|
|
bool hasTpsSensor : 1;
|
2015-07-10 06:01:56 -07:00
|
|
|
|
/**
|
2016-02-05 12:02:36 -08:00
|
|
|
|
offset 1488 bit 16 */
|
2016-01-11 14:01:33 -08:00
|
|
|
|
bool cutFuelOnHardLimit : 1;
|
2015-07-10 06:01:56 -07:00
|
|
|
|
/**
|
2016-02-05 12:02:36 -08:00
|
|
|
|
offset 1488 bit 17 */
|
2016-01-11 14:01:33 -08:00
|
|
|
|
bool cutSparkOnHardLimit : 1;
|
2015-07-10 06:01:56 -07:00
|
|
|
|
/**
|
2016-02-05 12:02:36 -08:00
|
|
|
|
offset 1488 bit 18 */
|
2016-01-11 14:01:33 -08:00
|
|
|
|
bool step1fuelCutEnable : 1;
|
2015-09-29 19:03:03 -07:00
|
|
|
|
/**
|
2016-02-05 12:02:36 -08:00
|
|
|
|
offset 1488 bit 19 */
|
2016-01-11 14:01:33 -08:00
|
|
|
|
bool step1SparkCutEnable : 1;
|
2015-09-29 19:03:03 -07:00
|
|
|
|
/**
|
2016-02-05 12:02:36 -08:00
|
|
|
|
offset 1488 bit 20 */
|
2016-01-11 14:01:33 -08:00
|
|
|
|
bool hasFrequencyReportingMapSensor : 1;
|
2015-07-10 06:01:56 -07:00
|
|
|
|
/**
|
2016-02-05 12:02:36 -08:00
|
|
|
|
* offset 1492
|
2015-07-10 06:01:56 -07:00
|
|
|
|
*/
|
|
|
|
|
adc_channel_e hipOutputChannel;
|
|
|
|
|
/**
|
2016-02-05 12:02:36 -08:00
|
|
|
|
* offset 1496
|
2015-07-10 06:01:56 -07:00
|
|
|
|
*/
|
|
|
|
|
idle_mode_e idleMode;
|
|
|
|
|
/**
|
2016-02-05 12:02:36 -08:00
|
|
|
|
offset 1500 bit 0 */
|
2016-01-11 14:01:33 -08:00
|
|
|
|
bool isInjectionEnabled : 1;
|
2015-07-10 06:01:56 -07:00
|
|
|
|
/**
|
2016-02-05 12:02:36 -08:00
|
|
|
|
offset 1500 bit 1 */
|
2016-01-11 14:01:33 -08:00
|
|
|
|
bool isIgnitionEnabled : 1;
|
2015-07-10 06:01:56 -07:00
|
|
|
|
/**
|
2016-02-05 12:02:36 -08:00
|
|
|
|
offset 1500 bit 2 */
|
2016-01-11 14:01:33 -08:00
|
|
|
|
bool isCylinderCleanupEnabled : 1;
|
2015-07-10 06:01:56 -07:00
|
|
|
|
/**
|
2016-02-05 12:02:36 -08:00
|
|
|
|
offset 1500 bit 3 */
|
2016-01-11 14:01:33 -08:00
|
|
|
|
bool secondTriggerChannelEnabled : 1;
|
2015-07-10 06:01:56 -07:00
|
|
|
|
/**
|
2016-02-05 12:02:36 -08:00
|
|
|
|
offset 1500 bit 4 */
|
2016-01-11 14:01:33 -08:00
|
|
|
|
bool needSecondTriggerInputDeprecated : 1;
|
2015-07-10 06:01:56 -07:00
|
|
|
|
/**
|
2016-02-05 12:02:36 -08:00
|
|
|
|
offset 1500 bit 5 */
|
2016-01-11 14:01:33 -08:00
|
|
|
|
bool isMapAveragingEnabled : 1;
|
2015-07-10 06:01:56 -07:00
|
|
|
|
/**
|
2016-02-05 12:02:36 -08:00
|
|
|
|
offset 1500 bit 6 */
|
2016-01-11 14:01:33 -08:00
|
|
|
|
bool isMilEnabled : 1;
|
2015-07-10 06:01:56 -07:00
|
|
|
|
/**
|
2016-02-05 12:02:36 -08:00
|
|
|
|
offset 1500 bit 7 */
|
2016-01-11 14:01:33 -08:00
|
|
|
|
bool isFuelPumpEnabled : 1;
|
2015-07-10 06:01:56 -07:00
|
|
|
|
/**
|
2016-02-05 12:02:36 -08:00
|
|
|
|
offset 1500 bit 8 */
|
2016-01-11 14:01:33 -08:00
|
|
|
|
bool isTunerStudioEnabled : 1;
|
2015-07-10 06:01:56 -07:00
|
|
|
|
/**
|
2016-02-05 12:02:36 -08:00
|
|
|
|
offset 1500 bit 9 */
|
2016-01-11 14:01:33 -08:00
|
|
|
|
bool isWaveAnalyzerEnabled : 1;
|
2015-07-10 06:01:56 -07:00
|
|
|
|
/**
|
2016-02-05 12:02:36 -08:00
|
|
|
|
offset 1500 bit 10 */
|
2016-01-11 14:01:33 -08:00
|
|
|
|
bool isIdleThreadEnabled : 1;
|
2015-07-10 06:01:56 -07:00
|
|
|
|
/**
|
2016-02-05 12:02:36 -08:00
|
|
|
|
offset 1500 bit 11 */
|
2016-01-11 14:01:33 -08:00
|
|
|
|
bool isPrintTriggerSynchDetails : 1;
|
2015-07-10 06:01:56 -07:00
|
|
|
|
/**
|
|
|
|
|
* Usually if we have no trigger events that means engine is stopped
|
|
|
|
|
* Unless we are troubleshooting and spinning the engine by hand - this case a longer
|
|
|
|
|
* delay is needed
|
2016-02-05 12:02:36 -08:00
|
|
|
|
offset 1500 bit 12 */
|
2016-01-11 14:01:33 -08:00
|
|
|
|
bool isManualSpinningMode : 1;
|
2015-07-10 06:01:56 -07:00
|
|
|
|
/**
|
2016-01-03 07:01:32 -08:00
|
|
|
|
* This is needed if batched injection and individual injector wiring
|
2016-02-05 12:02:36 -08:00
|
|
|
|
offset 1500 bit 13 */
|
2016-01-11 14:01:33 -08:00
|
|
|
|
bool twoWireBatchInjection : 1;
|
2015-07-10 06:01:56 -07:00
|
|
|
|
/**
|
|
|
|
|
* See #172
|
2016-02-05 12:02:36 -08:00
|
|
|
|
offset 1500 bit 14 */
|
2016-02-27 20:03:34 -08:00
|
|
|
|
bool useOnlyRisingEdgeForTrigger : 1;
|
2016-01-03 07:01:32 -08:00
|
|
|
|
/**
|
|
|
|
|
* This is needed if batched igniton (waster spark) and individual coil wiring
|
2016-02-05 12:02:36 -08:00
|
|
|
|
offset 1500 bit 15 */
|
2016-01-11 14:01:33 -08:00
|
|
|
|
bool twoWireBatchIgnition : 1;
|
2015-07-10 06:01:56 -07:00
|
|
|
|
/**
|
2016-02-05 12:02:36 -08:00
|
|
|
|
* offset 1504
|
2015-07-10 06:01:56 -07:00
|
|
|
|
*/
|
|
|
|
|
uint32_t engineChartSize;
|
|
|
|
|
/**
|
2016-02-05 12:02:36 -08:00
|
|
|
|
* offset 1508
|
2015-07-10 06:01:56 -07:00
|
|
|
|
*/
|
|
|
|
|
int targetIdleRpm;
|
|
|
|
|
/**
|
|
|
|
|
* A/C button input handled as analog input
|
2016-02-05 12:02:36 -08:00
|
|
|
|
* offset 1512
|
2015-07-10 06:01:56 -07:00
|
|
|
|
*/
|
|
|
|
|
adc_channel_e acSwitchAdc;
|
|
|
|
|
/**
|
2015-09-26 06:01:32 -07:00
|
|
|
|
* At what trigger index should some ignition-related math be executed? This is a performance trick to reduce load on synchronization trigger callback.
|
2016-02-05 12:02:36 -08:00
|
|
|
|
* offset 1516
|
2015-07-10 06:01:56 -07:00
|
|
|
|
*/
|
|
|
|
|
int ignMathCalculateAtIndex;
|
|
|
|
|
/**
|
2016-02-05 12:02:36 -08:00
|
|
|
|
* offset 1520
|
2015-07-10 06:01:56 -07:00
|
|
|
|
*/
|
|
|
|
|
int16_t acCutoffLowRpm;
|
|
|
|
|
/**
|
2016-02-05 12:02:36 -08:00
|
|
|
|
* offset 1522
|
2015-07-10 06:01:56 -07:00
|
|
|
|
*/
|
|
|
|
|
int16_t acCutoffHighRpm;
|
|
|
|
|
/**
|
2016-02-05 12:02:36 -08:00
|
|
|
|
* offset 1524
|
2015-07-10 06:01:56 -07:00
|
|
|
|
*/
|
|
|
|
|
int16_t acIdleRpmBump;
|
|
|
|
|
/**
|
2016-02-05 12:02:36 -08:00
|
|
|
|
* offset 1526
|
2015-07-10 06:01:56 -07:00
|
|
|
|
*/
|
|
|
|
|
int16_t unusedShort;
|
|
|
|
|
/**
|
2016-02-05 12:02:36 -08:00
|
|
|
|
* offset 1528
|
2015-07-10 06:01:56 -07:00
|
|
|
|
*/
|
|
|
|
|
adc_channel_e vRefAdcChannel;
|
|
|
|
|
/**
|
2016-02-05 12:02:36 -08:00
|
|
|
|
* offset 1532
|
2015-07-10 06:01:56 -07:00
|
|
|
|
*/
|
|
|
|
|
float knockDetectionWindowStart;
|
|
|
|
|
/**
|
2016-02-05 12:02:36 -08:00
|
|
|
|
* offset 1536
|
2015-07-10 06:01:56 -07:00
|
|
|
|
*/
|
|
|
|
|
float knockDetectionWindowEnd;
|
|
|
|
|
/**
|
2016-02-05 12:02:36 -08:00
|
|
|
|
* offset 1540
|
2015-07-10 06:01:56 -07:00
|
|
|
|
*/
|
|
|
|
|
float idleStepperReactionTime;
|
|
|
|
|
/**
|
2016-02-05 12:02:36 -08:00
|
|
|
|
* offset 1544
|
2015-07-10 06:01:56 -07:00
|
|
|
|
*/
|
|
|
|
|
float knockVThreshold;
|
|
|
|
|
/**
|
2016-02-05 12:02:36 -08:00
|
|
|
|
* offset 1548
|
2015-07-10 06:01:56 -07:00
|
|
|
|
*/
|
|
|
|
|
pin_input_mode_e fsioInputModes[LE_COMMAND_COUNT];
|
|
|
|
|
/**
|
2016-02-05 12:02:36 -08:00
|
|
|
|
* offset 1612
|
2015-07-10 06:01:56 -07:00
|
|
|
|
*/
|
|
|
|
|
adc_channel_e externalKnockSenseAdc;
|
|
|
|
|
/**
|
2016-02-05 12:02:36 -08:00
|
|
|
|
* offset 1616
|
2015-07-10 06:01:56 -07:00
|
|
|
|
*/
|
|
|
|
|
int unsed2342342[3];
|
|
|
|
|
/**
|
2016-02-05 12:02:36 -08:00
|
|
|
|
* offset 1628
|
2015-07-10 06:01:56 -07:00
|
|
|
|
*/
|
|
|
|
|
int idleStepperTotalSteps;
|
|
|
|
|
/**
|
2016-02-05 12:02:36 -08:00
|
|
|
|
* offset 1632
|
2015-07-10 06:01:56 -07:00
|
|
|
|
*/
|
|
|
|
|
brain_pin_e stepperEnablePin;
|
|
|
|
|
/**
|
2016-02-05 12:02:36 -08:00
|
|
|
|
* offset 1636
|
2015-07-10 06:01:56 -07:00
|
|
|
|
*/
|
|
|
|
|
float noAccelAfterHardLimitPeriodSecs;
|
|
|
|
|
/**
|
2015-09-26 06:01:32 -07:00
|
|
|
|
* At what trigger index should some MAP-related math be executed? This is a performance trick to reduce load on synchronization trigger callback.
|
2016-02-05 12:02:36 -08:00
|
|
|
|
* offset 1640
|
2015-07-10 06:01:56 -07:00
|
|
|
|
*/
|
|
|
|
|
int mapAveragingSchedulingAtIndex;
|
|
|
|
|
/**
|
2016-02-05 12:02:36 -08:00
|
|
|
|
* offset 1644
|
2015-07-10 06:01:56 -07:00
|
|
|
|
*/
|
|
|
|
|
float baroCorrPressureBins[BARO_CORR_SIZE];
|
|
|
|
|
/**
|
2016-02-05 12:02:36 -08:00
|
|
|
|
* offset 1660
|
2015-07-10 06:01:56 -07:00
|
|
|
|
*/
|
|
|
|
|
float baroCorrRpmBins[BARO_CORR_SIZE];
|
|
|
|
|
/**
|
2016-02-05 12:02:36 -08:00
|
|
|
|
* offset 1676
|
2015-07-10 06:01:56 -07:00
|
|
|
|
*/
|
|
|
|
|
baro_corr_table_t baroCorrTable;
|
|
|
|
|
/**
|
2016-02-05 12:02:36 -08:00
|
|
|
|
* offset 1740
|
2015-07-10 06:01:56 -07:00
|
|
|
|
*/
|
2015-07-12 19:03:34 -07:00
|
|
|
|
int spi2SckMode;
|
|
|
|
|
/**
|
2016-02-05 12:02:36 -08:00
|
|
|
|
* offset 1744
|
2015-07-12 19:03:34 -07:00
|
|
|
|
*/
|
|
|
|
|
int spi2MosiMode;
|
|
|
|
|
/**
|
2016-02-05 12:02:36 -08:00
|
|
|
|
* offset 1748
|
2015-07-12 19:03:34 -07:00
|
|
|
|
*/
|
|
|
|
|
int spi2MisoMode;
|
|
|
|
|
/**
|
2016-01-01 15:01:46 -08:00
|
|
|
|
* Cranking fuel correction coefficient based on TPS
|
2016-02-05 12:02:36 -08:00
|
|
|
|
* offset 1752
|
2015-07-12 19:03:34 -07:00
|
|
|
|
*/
|
2015-08-18 11:03:02 -07:00
|
|
|
|
float crankingTpsCoef[CRANKING_CURVE_SIZE];
|
|
|
|
|
/**
|
2016-02-05 12:02:36 -08:00
|
|
|
|
* offset 1784
|
2015-08-18 11:03:02 -07:00
|
|
|
|
*/
|
|
|
|
|
float crankingTpsBins[CRANKING_CURVE_SIZE];
|
|
|
|
|
/**
|
2016-02-05 12:02:36 -08:00
|
|
|
|
* offset 1816
|
2015-08-18 11:03:02 -07:00
|
|
|
|
*/
|
2015-08-18 12:03:44 -07:00
|
|
|
|
float tachPulseDuractionMs;
|
|
|
|
|
/**
|
2015-08-18 21:03:11 -07:00
|
|
|
|
* trigger cycle index at which we start tach pulse (performance consideration)
|
2016-02-05 12:02:36 -08:00
|
|
|
|
* offset 1820
|
2015-08-18 12:03:44 -07:00
|
|
|
|
*/
|
2015-08-18 21:03:11 -07:00
|
|
|
|
int tachPulseTriggerIndex;
|
|
|
|
|
/**
|
2016-02-05 12:02:36 -08:00
|
|
|
|
* offset 1824
|
2015-08-18 21:03:11 -07:00
|
|
|
|
*/
|
2015-08-21 14:01:32 -07:00
|
|
|
|
float suckedOffCoef;
|
|
|
|
|
/**
|
2015-12-31 15:02:17 -08:00
|
|
|
|
* TODO make suckedOffCoef an array by RPM
|
2016-02-05 12:02:36 -08:00
|
|
|
|
* offset 1828
|
2015-08-21 14:01:32 -07:00
|
|
|
|
*/
|
|
|
|
|
float unused71[7];
|
|
|
|
|
/**
|
2016-02-05 12:02:36 -08:00
|
|
|
|
* offset 1856
|
2015-08-21 14:01:32 -07:00
|
|
|
|
*/
|
|
|
|
|
float addedToWallCoef;
|
|
|
|
|
/**
|
2015-12-31 15:02:17 -08:00
|
|
|
|
* TODO make addedToWallCoef an array by RPM
|
2016-02-05 12:02:36 -08:00
|
|
|
|
* offset 1860
|
2015-08-21 14:01:32 -07:00
|
|
|
|
*/
|
|
|
|
|
float unused72[7];
|
|
|
|
|
/**
|
2015-08-30 13:02:00 -07:00
|
|
|
|
* kPa value which is too low to be true
|
2016-02-05 12:02:36 -08:00
|
|
|
|
* offset 1888
|
2015-08-21 14:01:32 -07:00
|
|
|
|
*/
|
2016-01-08 08:01:40 -08:00
|
|
|
|
float mapErrorDetectionTooLow;
|
2015-08-30 13:02:00 -07:00
|
|
|
|
/**
|
|
|
|
|
* kPa value which is too high to be true
|
2016-02-05 12:02:36 -08:00
|
|
|
|
* offset 1892
|
2015-08-30 13:02:00 -07:00
|
|
|
|
*/
|
2016-01-08 08:01:40 -08:00
|
|
|
|
float mapErrorDetectionTooHigh;
|
2015-08-30 13:02:00 -07:00
|
|
|
|
/**
|
2015-10-05 17:01:54 -07:00
|
|
|
|
* RPMs prior to step1rpm point where ignition advance is retarded
|
2016-02-05 12:02:36 -08:00
|
|
|
|
* offset 1896
|
2015-08-30 13:02:00 -07:00
|
|
|
|
*/
|
2015-09-29 19:03:03 -07:00
|
|
|
|
int step1RpmWindow;
|
|
|
|
|
/**
|
2016-02-05 12:02:36 -08:00
|
|
|
|
* offset 1900
|
2015-09-29 19:03:03 -07:00
|
|
|
|
*/
|
2016-02-05 13:01:55 -08:00
|
|
|
|
pid_s idleRpmPid;
|
2015-10-19 19:02:51 -07:00
|
|
|
|
/**
|
2016-02-05 12:02:36 -08:00
|
|
|
|
* offset 1916
|
2015-10-19 19:02:51 -07:00
|
|
|
|
*/
|
|
|
|
|
int idleDT;
|
|
|
|
|
/**
|
2016-02-05 12:02:36 -08:00
|
|
|
|
* offset 1920
|
2015-10-19 19:02:51 -07:00
|
|
|
|
*/
|
|
|
|
|
idle_control_e idleControl;
|
|
|
|
|
/**
|
2016-02-05 12:02:36 -08:00
|
|
|
|
* offset 1924
|
2015-10-19 19:02:51 -07:00
|
|
|
|
*/
|
2015-10-21 21:01:20 -07:00
|
|
|
|
brain_pin_e communicationPin;
|
|
|
|
|
/**
|
2016-02-05 12:02:36 -08:00
|
|
|
|
* offset 1928
|
2015-10-21 21:01:20 -07:00
|
|
|
|
*/
|
|
|
|
|
brain_pin_e runningPin;
|
|
|
|
|
/**
|
2016-02-05 12:02:36 -08:00
|
|
|
|
* offset 1932
|
2015-10-21 21:01:20 -07:00
|
|
|
|
*/
|
2015-10-22 14:01:29 -07:00
|
|
|
|
brain_pin_e binarySerialTxPin;
|
|
|
|
|
/**
|
2016-02-05 12:02:36 -08:00
|
|
|
|
* offset 1936
|
2015-10-22 14:01:29 -07:00
|
|
|
|
*/
|
|
|
|
|
brain_pin_e binarySerialRxPin;
|
|
|
|
|
/**
|
2016-02-05 12:02:36 -08:00
|
|
|
|
* offset 1940
|
2015-10-22 14:01:29 -07:00
|
|
|
|
*/
|
|
|
|
|
brain_pin_e consoleSerialTxPin;
|
|
|
|
|
/**
|
2016-02-05 12:02:36 -08:00
|
|
|
|
* offset 1944
|
2015-10-22 14:01:29 -07:00
|
|
|
|
*/
|
|
|
|
|
brain_pin_e consoleSerialRxPin;
|
|
|
|
|
/**
|
2016-01-01 15:01:46 -08:00
|
|
|
|
* Knock sensor output knock detection threshold depending on current RPM
|
2016-02-05 12:02:36 -08:00
|
|
|
|
* offset 1948
|
2015-10-22 14:01:29 -07:00
|
|
|
|
*/
|
2016-01-01 15:01:46 -08:00
|
|
|
|
float knockNoise[ENGINE_NOISE_CURVE_SIZE];
|
2015-11-11 19:01:46 -08:00
|
|
|
|
/**
|
2016-02-05 12:02:36 -08:00
|
|
|
|
* offset 1980
|
2015-11-11 19:01:46 -08:00
|
|
|
|
*/
|
2016-01-01 15:01:46 -08:00
|
|
|
|
float knockNoiseRpmBins[ENGINE_NOISE_CURVE_SIZE];
|
2015-11-11 19:01:46 -08:00
|
|
|
|
/**
|
2016-02-05 12:02:36 -08:00
|
|
|
|
* offset 2012
|
2015-11-11 19:01:46 -08:00
|
|
|
|
*/
|
2015-11-11 20:01:18 -08:00
|
|
|
|
pid_s etb;
|
2015-11-11 19:01:46 -08:00
|
|
|
|
/**
|
2015-11-18 16:01:34 -08:00
|
|
|
|
* CLT-based target RPM for automatic idle controller
|
2015-11-11 19:01:46 -08:00
|
|
|
|
* offset 2028
|
|
|
|
|
*/
|
2015-11-18 18:02:51 -08:00
|
|
|
|
float cltIdleRpmBins[CLT_CURVE_SIZE];
|
2015-11-18 16:01:34 -08:00
|
|
|
|
/**
|
|
|
|
|
* offset 2092
|
|
|
|
|
*/
|
|
|
|
|
float cltIdleRpm[CLT_CURVE_SIZE];
|
2015-07-10 06:01:56 -07:00
|
|
|
|
/**
|
|
|
|
|
* offset 2156
|
|
|
|
|
*/
|
|
|
|
|
float targetVBatt;
|
|
|
|
|
/**
|
|
|
|
|
* Turn off alternator output above specified TPS
|
|
|
|
|
* offset 2160
|
|
|
|
|
*/
|
|
|
|
|
float alternatorOffAboveTps;
|
|
|
|
|
/**
|
|
|
|
|
* PID dTime
|
|
|
|
|
* offset 2164
|
|
|
|
|
*/
|
|
|
|
|
int alternatorDT;
|
|
|
|
|
/**
|
|
|
|
|
* offset 2168
|
|
|
|
|
*/
|
2015-11-11 20:01:18 -08:00
|
|
|
|
pid_s alternatorControl;
|
2015-07-10 06:01:56 -07:00
|
|
|
|
/**
|
|
|
|
|
* offset 2184
|
|
|
|
|
*/
|
|
|
|
|
int tpsAccelLength;
|
|
|
|
|
/**
|
|
|
|
|
* offset 2188
|
|
|
|
|
*/
|
|
|
|
|
float tpsAccelEnrichmentThreshold;
|
|
|
|
|
/**
|
|
|
|
|
* offset 2192
|
|
|
|
|
*/
|
|
|
|
|
float tpsAccelEnrichmentMultiplier;
|
|
|
|
|
/**
|
|
|
|
|
* offset 2196
|
|
|
|
|
*/
|
2015-12-31 10:02:19 -08:00
|
|
|
|
int engineLoadAccelLength;
|
2015-07-10 06:01:56 -07:00
|
|
|
|
/**
|
|
|
|
|
* offset 2200
|
|
|
|
|
*/
|
2015-12-31 15:02:17 -08:00
|
|
|
|
float engineLoadDecelEnleanmentThreshold;
|
2015-07-10 06:01:56 -07:00
|
|
|
|
/**
|
|
|
|
|
* offset 2204
|
|
|
|
|
*/
|
2015-12-31 15:02:17 -08:00
|
|
|
|
float engineLoadDecelEnleanmentMultiplier;
|
2015-07-10 06:01:56 -07:00
|
|
|
|
/**
|
|
|
|
|
* offset 2208
|
|
|
|
|
*/
|
2015-12-31 10:02:19 -08:00
|
|
|
|
float engineLoadAccelEnrichmentThreshold;
|
2015-07-10 06:01:56 -07:00
|
|
|
|
/**
|
|
|
|
|
* offset 2212
|
|
|
|
|
*/
|
2015-12-31 10:02:19 -08:00
|
|
|
|
float engineLoadAccelEnrichmentMultiplier;
|
2015-12-02 17:10:06 -08:00
|
|
|
|
/**
|
|
|
|
|
* offset 2216
|
|
|
|
|
*/
|
|
|
|
|
brain_pin_e fatalErrorPin;
|
|
|
|
|
/**
|
|
|
|
|
* offset 2220
|
|
|
|
|
*/
|
|
|
|
|
brain_pin_e warninigPin;
|
|
|
|
|
/**
|
|
|
|
|
* offset 2224
|
|
|
|
|
*/
|
|
|
|
|
brain_pin_e configResetPin;
|
|
|
|
|
/**
|
|
|
|
|
* offset 2228
|
|
|
|
|
*/
|
2015-12-21 17:02:32 -08:00
|
|
|
|
uint32_t uartConsoleSerialSpeed;
|
|
|
|
|
/**
|
|
|
|
|
* offset 2232
|
|
|
|
|
*/
|
2015-12-31 15:02:17 -08:00
|
|
|
|
float tpsDecelEnleanmentThreshold;
|
|
|
|
|
/**
|
|
|
|
|
* offset 2236
|
|
|
|
|
*/
|
|
|
|
|
float tpsDecelEnleanmentMultiplier;
|
|
|
|
|
/**
|
2016-05-23 12:02:46 -07:00
|
|
|
|
* ExpAverage alpha coefficient
|
2015-12-31 15:02:17 -08:00
|
|
|
|
* offset 2240
|
|
|
|
|
*/
|
2016-01-30 19:03:36 -08:00
|
|
|
|
float slowAdcAlpha;
|
|
|
|
|
/**
|
|
|
|
|
* offset 2244
|
|
|
|
|
*/
|
2016-02-04 20:02:52 -08:00
|
|
|
|
debug_mode_e debugMode;
|
|
|
|
|
/**
|
2016-02-04 21:02:06 -08:00
|
|
|
|
* offset 2248
|
2016-02-04 20:02:52 -08:00
|
|
|
|
*/
|
2016-02-05 13:01:55 -08:00
|
|
|
|
pid_s warmupAfrPid;
|
|
|
|
|
/**
|
2016-02-10 10:01:49 -08:00
|
|
|
|
* CLT-based target AFR for PID-based control
|
2016-02-05 13:01:55 -08:00
|
|
|
|
* offset 2264
|
|
|
|
|
*/
|
2016-02-10 10:01:49 -08:00
|
|
|
|
float warmupTargetAfrBins[WARMUP_TARGET_AFR_SIZE];
|
|
|
|
|
/**
|
|
|
|
|
* offset 2280
|
|
|
|
|
*/
|
|
|
|
|
float warmupTargetAfr[WARMUP_TARGET_AFR_SIZE];
|
|
|
|
|
/**
|
|
|
|
|
* offset 2296
|
|
|
|
|
*/
|
|
|
|
|
float warmupAfrThreshold;
|
|
|
|
|
/**
|
2016-02-27 23:01:37 -08:00
|
|
|
|
* kPa value at which we need to cut fuel and spark, 0 if not enabled
|
2016-02-10 10:01:49 -08:00
|
|
|
|
* offset 2300
|
|
|
|
|
*/
|
2016-02-27 23:01:37 -08:00
|
|
|
|
float boostCutPressure;
|
|
|
|
|
/**
|
|
|
|
|
* offset 2304
|
|
|
|
|
*/
|
2016-03-12 07:01:55 -08:00
|
|
|
|
float mapAccelTaperBins[MAP_ACCEL_TAPER];
|
2016-03-08 20:01:53 -08:00
|
|
|
|
/**
|
|
|
|
|
* offset 2336
|
|
|
|
|
*/
|
2016-03-12 07:01:55 -08:00
|
|
|
|
float mapAccelTaperMult[MAP_ACCEL_TAPER];
|
|
|
|
|
/**
|
|
|
|
|
* offset 2368
|
|
|
|
|
*/
|
2016-04-25 20:01:59 -07:00
|
|
|
|
brain_pin_e dizzySparkOutputPin;
|
|
|
|
|
/**
|
|
|
|
|
* offset 2372
|
|
|
|
|
*/
|
|
|
|
|
pin_output_mode_e dizzySparkOutputPinMode;
|
|
|
|
|
/**
|
|
|
|
|
* offset 2376
|
|
|
|
|
*/
|
2016-05-11 19:03:18 -07:00
|
|
|
|
adc_channel_e fsioAdc[FSIO_ADC_COUNT];
|
|
|
|
|
/**
|
|
|
|
|
* offset 2392
|
|
|
|
|
*/
|
|
|
|
|
int unused[164];
|
2016-03-08 20:01:53 -08:00
|
|
|
|
/** total size 3048*/
|
2015-07-10 06:01:56 -07:00
|
|
|
|
} engine_configuration_s;
|
|
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
|
/**
|
|
|
|
|
* offset 0
|
|
|
|
|
*/
|
|
|
|
|
engine_configuration_s engineConfiguration;
|
|
|
|
|
/**
|
2016-03-08 20:01:53 -08:00
|
|
|
|
* offset 3048
|
2015-07-10 06:01:56 -07:00
|
|
|
|
*/
|
|
|
|
|
le_formula_t le_formulas[LE_COMMAND_COUNT];
|
|
|
|
|
/**
|
2016-03-08 20:01:53 -08:00
|
|
|
|
* offset 6248
|
2015-07-10 06:01:56 -07:00
|
|
|
|
*/
|
|
|
|
|
le_formula_t timingMultiplier;
|
|
|
|
|
/**
|
2016-03-08 20:01:53 -08:00
|
|
|
|
* offset 6448
|
2015-07-10 06:01:56 -07:00
|
|
|
|
*/
|
|
|
|
|
le_formula_t timingAdditive;
|
|
|
|
|
/**
|
2016-03-08 20:01:53 -08:00
|
|
|
|
* offset 6648
|
2015-07-10 06:01:56 -07:00
|
|
|
|
*/
|
|
|
|
|
float cltFuelCorrBins[CLT_CURVE_SIZE];
|
|
|
|
|
/**
|
2016-03-08 20:01:53 -08:00
|
|
|
|
* offset 6712
|
2015-07-10 06:01:56 -07:00
|
|
|
|
*/
|
|
|
|
|
float cltFuelCorr[CLT_CURVE_SIZE];
|
|
|
|
|
/**
|
2016-03-08 20:01:53 -08:00
|
|
|
|
* offset 6776
|
2015-07-10 06:01:56 -07:00
|
|
|
|
*/
|
|
|
|
|
float iatFuelCorrBins[IAT_CURVE_SIZE];
|
|
|
|
|
/**
|
2016-03-08 20:01:53 -08:00
|
|
|
|
* offset 6840
|
2015-07-10 06:01:56 -07:00
|
|
|
|
*/
|
|
|
|
|
float iatFuelCorr[IAT_CURVE_SIZE];
|
|
|
|
|
/**
|
2016-03-08 20:01:53 -08:00
|
|
|
|
* offset 6904
|
2015-07-10 06:01:56 -07:00
|
|
|
|
*/
|
|
|
|
|
float crankingFuelCoef[CRANKING_CURVE_SIZE];
|
|
|
|
|
/**
|
2016-03-08 20:01:53 -08:00
|
|
|
|
* offset 6936
|
2015-07-10 06:01:56 -07:00
|
|
|
|
*/
|
|
|
|
|
float crankingFuelBins[CRANKING_CURVE_SIZE];
|
|
|
|
|
/**
|
2016-03-08 20:01:53 -08:00
|
|
|
|
* offset 6968
|
2015-07-10 06:01:56 -07:00
|
|
|
|
*/
|
|
|
|
|
float crankingCycleCoef[CRANKING_CURVE_SIZE];
|
|
|
|
|
/**
|
2016-03-08 20:01:53 -08:00
|
|
|
|
* offset 7000
|
2015-07-10 06:01:56 -07:00
|
|
|
|
*/
|
|
|
|
|
float crankingCycleBins[CRANKING_CURVE_SIZE];
|
|
|
|
|
/**
|
2015-11-09 16:03:32 -08:00
|
|
|
|
* CLT-based adjustment for simple manual idle controller
|
2016-03-08 20:01:53 -08:00
|
|
|
|
* offset 7032
|
2015-07-10 06:01:56 -07:00
|
|
|
|
*/
|
|
|
|
|
float cltIdleCorrBins[CLT_CURVE_SIZE];
|
|
|
|
|
/**
|
2016-03-08 20:01:53 -08:00
|
|
|
|
* offset 7096
|
2015-07-10 06:01:56 -07:00
|
|
|
|
*/
|
|
|
|
|
float cltIdleCorr[CLT_CURVE_SIZE];
|
|
|
|
|
/**
|
|
|
|
|
* kg/hour value.
|
|
|
|
|
* By the way 2.081989116 kg/h = 1 ft<EFBFBD>/m
|
2016-03-08 20:01:53 -08:00
|
|
|
|
* offset 7160
|
2015-07-10 06:01:56 -07:00
|
|
|
|
*/
|
|
|
|
|
float mafDecoding[MAF_DECODING_COUNT];
|
|
|
|
|
/**
|
2016-03-08 20:01:53 -08:00
|
|
|
|
* offset 8184
|
2015-07-10 06:01:56 -07:00
|
|
|
|
*/
|
|
|
|
|
float mafDecodingBins[MAF_DECODING_COUNT];
|
|
|
|
|
/**
|
2016-03-08 20:01:53 -08:00
|
|
|
|
* offset 9208
|
2015-07-10 06:01:56 -07:00
|
|
|
|
*/
|
2016-03-01 21:02:17 -08:00
|
|
|
|
angle_table_t ignitionIatCorrTable;
|
2015-07-10 06:01:56 -07:00
|
|
|
|
/**
|
2016-03-08 20:01:53 -08:00
|
|
|
|
* offset 10232
|
2015-07-10 06:01:56 -07:00
|
|
|
|
*/
|
|
|
|
|
float ignitionIatCorrLoadBins[IGN_LOAD_COUNT];
|
|
|
|
|
/**
|
2016-03-08 20:01:53 -08:00
|
|
|
|
* offset 10296
|
2015-07-10 06:01:56 -07:00
|
|
|
|
*/
|
|
|
|
|
float ignitionIatCorrRpmBins[IGN_RPM_COUNT];
|
|
|
|
|
/**
|
2016-03-08 20:01:53 -08:00
|
|
|
|
* offset 10360
|
2015-07-10 06:01:56 -07:00
|
|
|
|
*/
|
2016-03-01 21:02:17 -08:00
|
|
|
|
angle_table_t injectionPhase;
|
2015-07-10 06:01:56 -07:00
|
|
|
|
/**
|
2016-03-08 20:01:53 -08:00
|
|
|
|
* offset 11384
|
2015-07-10 06:01:56 -07:00
|
|
|
|
*/
|
|
|
|
|
float injPhaseLoadBins[FUEL_LOAD_COUNT];
|
|
|
|
|
/**
|
2016-03-08 20:01:53 -08:00
|
|
|
|
* offset 11448
|
2015-07-10 06:01:56 -07:00
|
|
|
|
*/
|
|
|
|
|
float injPhaseRpmBins[FUEL_RPM_COUNT];
|
|
|
|
|
/**
|
2016-03-08 20:01:53 -08:00
|
|
|
|
* offset 11512
|
2015-07-10 06:01:56 -07:00
|
|
|
|
*/
|
|
|
|
|
fuel_table_t fuelTable;
|
|
|
|
|
/**
|
2016-03-08 20:01:53 -08:00
|
|
|
|
* offset 12536
|
2015-07-10 06:01:56 -07:00
|
|
|
|
*/
|
|
|
|
|
float fuelLoadBins[FUEL_LOAD_COUNT];
|
|
|
|
|
/**
|
|
|
|
|
* RPM is float and not integer in order to use unified methods for interpolation
|
2016-03-08 20:01:53 -08:00
|
|
|
|
* offset 12600
|
2015-07-10 06:01:56 -07:00
|
|
|
|
*/
|
|
|
|
|
float fuelRpmBins[FUEL_RPM_COUNT];
|
|
|
|
|
/**
|
2016-03-08 20:01:53 -08:00
|
|
|
|
* offset 12664
|
2015-07-10 06:01:56 -07:00
|
|
|
|
*/
|
|
|
|
|
ignition_table_t ignitionTable;
|
|
|
|
|
/**
|
2016-03-08 20:01:53 -08:00
|
|
|
|
* offset 13688
|
2015-07-10 06:01:56 -07:00
|
|
|
|
*/
|
|
|
|
|
float ignitionLoadBins[IGN_LOAD_COUNT];
|
|
|
|
|
/**
|
2016-03-08 20:01:53 -08:00
|
|
|
|
* offset 13752
|
2015-07-10 06:01:56 -07:00
|
|
|
|
*/
|
|
|
|
|
float ignitionRpmBins[IGN_RPM_COUNT];
|
|
|
|
|
/**
|
2016-03-08 20:01:53 -08:00
|
|
|
|
* offset 13816
|
2015-07-10 06:01:56 -07:00
|
|
|
|
*/
|
|
|
|
|
ve_table_t veTable;
|
|
|
|
|
/**
|
2016-03-08 20:01:53 -08:00
|
|
|
|
* offset 14840
|
2015-07-10 06:01:56 -07:00
|
|
|
|
*/
|
|
|
|
|
float veLoadBins[FUEL_LOAD_COUNT];
|
|
|
|
|
/**
|
2016-03-08 20:01:53 -08:00
|
|
|
|
* offset 14904
|
2015-07-10 06:01:56 -07:00
|
|
|
|
*/
|
|
|
|
|
float veRpmBins[FUEL_RPM_COUNT];
|
|
|
|
|
/**
|
2016-03-08 20:01:53 -08:00
|
|
|
|
* offset 14968
|
2015-07-10 06:01:56 -07:00
|
|
|
|
*/
|
|
|
|
|
afr_table_t afrTable;
|
|
|
|
|
/**
|
2016-03-08 20:01:53 -08:00
|
|
|
|
* offset 15992
|
2015-07-10 06:01:56 -07:00
|
|
|
|
*/
|
|
|
|
|
float afrLoadBins[FUEL_LOAD_COUNT];
|
|
|
|
|
/**
|
2016-03-08 20:01:53 -08:00
|
|
|
|
* offset 16056
|
2015-07-10 06:01:56 -07:00
|
|
|
|
*/
|
|
|
|
|
float afrRpmBins[FUEL_RPM_COUNT];
|
2016-03-03 20:01:39 -08:00
|
|
|
|
/**
|
2016-03-08 20:01:53 -08:00
|
|
|
|
* offset 16120
|
|
|
|
|
*/
|
|
|
|
|
tps_tps_table_t tpsTpsAccelTable;
|
|
|
|
|
/**
|
|
|
|
|
* offset 16376
|
|
|
|
|
*/
|
|
|
|
|
float tpsTpsAccelFromRpmBins[TPS_TPS_ACCEL_TABLE];
|
|
|
|
|
/**
|
|
|
|
|
* RPM is float and not integer in order to use unified methods for interpolation
|
|
|
|
|
* offset 16408
|
|
|
|
|
*/
|
|
|
|
|
float tpsTpsAccelToRpmBins[TPS_TPS_ACCEL_TABLE];
|
|
|
|
|
/**
|
|
|
|
|
* offset 16440
|
2016-03-03 20:01:39 -08:00
|
|
|
|
*/
|
|
|
|
|
fsio_table_8x8_t fsioTable1;
|
|
|
|
|
/**
|
2016-03-08 20:01:53 -08:00
|
|
|
|
* offset 16696
|
2016-03-03 20:01:39 -08:00
|
|
|
|
*/
|
|
|
|
|
float fsioTable1LoadBins[FSIO_TABLE_8];
|
|
|
|
|
/**
|
|
|
|
|
* RPM is float and not integer in order to use unified methods for interpolation
|
2016-03-08 20:01:53 -08:00
|
|
|
|
* offset 16728
|
2016-03-03 20:01:39 -08:00
|
|
|
|
*/
|
|
|
|
|
float fsioTable1RpmBins[FSIO_TABLE_8];
|
|
|
|
|
/**
|
2016-03-08 20:01:53 -08:00
|
|
|
|
* offset 16760
|
2016-03-03 20:01:39 -08:00
|
|
|
|
*/
|
|
|
|
|
fsio_table_8x8_t fsioTable2;
|
|
|
|
|
/**
|
2016-03-08 20:01:53 -08:00
|
|
|
|
* offset 17016
|
2016-03-03 20:01:39 -08:00
|
|
|
|
*/
|
|
|
|
|
float fsioTable2LoadBins[FSIO_TABLE_8];
|
|
|
|
|
/**
|
|
|
|
|
* RPM is float and not integer in order to use unified methods for interpolation
|
2016-03-08 20:01:53 -08:00
|
|
|
|
* offset 17048
|
2016-03-03 20:01:39 -08:00
|
|
|
|
*/
|
|
|
|
|
float fsioTable2RpmBins[FSIO_TABLE_8];
|
2016-03-08 20:01:53 -08:00
|
|
|
|
/** total size 17080*/
|
2015-07-10 06:01:56 -07:00
|
|
|
|
} persistent_config_s;
|
|
|
|
|
|
2016-01-20 20:03:03 -08:00
|
|
|
|
#endif
|
2015-07-10 06:01:56 -07:00
|
|
|
|
// end
|
2016-06-10 22:02:20 -07:00
|
|
|
|
// this section was generated automatically by ConfigDefinition.jar based on rusefi_config.txt Fri Jun 10 18:45:59 EDT 2016
|