2018-03-22 05:13:17 -07:00
|
|
|
|
// this section was generated automatically by ConfigDefinition.jar based on rusefi_config.txt Thu Mar 22 08:12:47 EDT 2018
|
2017-03-27 19:19:58 -07:00
|
|
|
|
// begin
|
2017-03-24 10:41:36 -07:00
|
|
|
|
#ifndef ENGINE_CONFIGURATION_GENERATED_H_
|
|
|
|
|
#define ENGINE_CONFIGURATION_GENERATED_H_
|
2015-07-10 06:01:56 -07:00
|
|
|
|
#include "rusefi_types.h"
|
2017-03-24 10:41:36 -07:00
|
|
|
|
typedef struct {
|
2017-03-27 19:19:58 -07:00
|
|
|
|
/**
|
|
|
|
|
* offset 0
|
|
|
|
|
*/
|
|
|
|
|
float pFactor;
|
|
|
|
|
/**
|
|
|
|
|
* offset 4
|
|
|
|
|
*/
|
|
|
|
|
float iFactor;
|
|
|
|
|
/**
|
|
|
|
|
* offset 8
|
|
|
|
|
*/
|
|
|
|
|
float dFactor;
|
|
|
|
|
/**
|
|
|
|
|
* Linear addition to PID logic
|
|
|
|
|
* offset 12
|
|
|
|
|
*/
|
2017-05-28 19:32:32 -07:00
|
|
|
|
int16_t offset;
|
|
|
|
|
/**
|
|
|
|
|
* PID dTime
|
|
|
|
|
* offset 14
|
|
|
|
|
*/
|
|
|
|
|
int16_t period;
|
|
|
|
|
/**
|
|
|
|
|
* offset 16
|
|
|
|
|
*/
|
|
|
|
|
int16_t minValue;
|
|
|
|
|
/**
|
|
|
|
|
* offset 18
|
|
|
|
|
*/
|
|
|
|
|
int16_t maxValue;
|
|
|
|
|
/** total size 20*/
|
2017-03-24 10:41:36 -07:00
|
|
|
|
} pid_s;
|
|
|
|
|
|
|
|
|
|
typedef struct {
|
2017-03-27 19:19:58 -07:00
|
|
|
|
/**
|
|
|
|
|
* Fuel squirt duration while cranking
|
|
|
|
|
* A number of curves adjust this value according to CLT/IAT/TPS etc
|
|
|
|
|
* offset 0
|
|
|
|
|
*/
|
|
|
|
|
float baseFuel;
|
|
|
|
|
/**
|
|
|
|
|
* Cranking mode threshold. Special cranking logic controls fuel and spark while RPM is below this threshold
|
|
|
|
|
* set cranking_rpm X
|
|
|
|
|
* offset 4
|
|
|
|
|
*/
|
|
|
|
|
int16_t rpm;
|
|
|
|
|
/**
|
|
|
|
|
* need 4 byte alignment
|
|
|
|
|
* offset 6
|
|
|
|
|
*/
|
2015-07-10 06:01:56 -07:00
|
|
|
|
uint8_t alignmentFill[2];
|
2017-03-24 10:41:36 -07:00
|
|
|
|
/** total size 8*/
|
|
|
|
|
} cranking_parameters_s;
|
|
|
|
|
|
|
|
|
|
typedef struct {
|
2017-03-27 19:19:58 -07:00
|
|
|
|
/**
|
|
|
|
|
* kPa value at low volts
|
|
|
|
|
* offset 0
|
|
|
|
|
*/
|
|
|
|
|
float lowValue;
|
|
|
|
|
/**
|
|
|
|
|
* kPa value at high volts
|
|
|
|
|
* offset 4
|
|
|
|
|
*/
|
|
|
|
|
float highValue;
|
|
|
|
|
/**
|
|
|
|
|
* offset 8
|
|
|
|
|
*/
|
|
|
|
|
air_pressure_sensor_type_e type;
|
|
|
|
|
/**
|
|
|
|
|
* offset 12
|
|
|
|
|
*/
|
|
|
|
|
adc_channel_e hwChannel;
|
2017-03-24 10:41:36 -07:00
|
|
|
|
/** total size 16*/
|
|
|
|
|
} air_pressure_sensor_config_s;
|
|
|
|
|
|
|
|
|
|
/**
|
2017-03-27 19:19:58 -07:00
|
|
|
|
* @brief MAP averaging configuration
|
2017-03-24 10:41:36 -07:00
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
typedef struct {
|
2017-03-27 19:19:58 -07:00
|
|
|
|
/**
|
|
|
|
|
* offset 0
|
|
|
|
|
*/
|
2015-07-10 06:01:56 -07:00
|
|
|
|
float samplingAngleBins[MAP_ANGLE_SIZE];
|
2017-03-27 19:19:58 -07:00
|
|
|
|
/**
|
|
|
|
|
* @brief MAP averaging sampling start angle, by RPM
|
|
|
|
|
* offset 32
|
|
|
|
|
*/
|
2015-07-10 06:01:56 -07:00
|
|
|
|
float samplingAngle[MAP_ANGLE_SIZE];
|
2017-03-27 19:19:58 -07:00
|
|
|
|
/**
|
|
|
|
|
* offset 64
|
|
|
|
|
*/
|
2015-07-10 06:01:56 -07:00
|
|
|
|
float samplingWindowBins[MAP_WINDOW_SIZE];
|
2017-03-27 19:19:58 -07:00
|
|
|
|
/**
|
|
|
|
|
* @brief MAP averaging angle duration, by RPM
|
|
|
|
|
* offset 96
|
|
|
|
|
*/
|
2015-07-10 06:01:56 -07:00
|
|
|
|
float samplingWindow[MAP_WINDOW_SIZE];
|
2017-03-27 19:19:58 -07:00
|
|
|
|
/**
|
|
|
|
|
* offset 128
|
|
|
|
|
*/
|
|
|
|
|
air_pressure_sensor_config_s sensor;
|
2017-03-24 10:41:36 -07:00
|
|
|
|
/** total size 144*/
|
|
|
|
|
} MAP_sensor_config_s;
|
|
|
|
|
|
|
|
|
|
/**
|
2017-03-27 19:19:58 -07:00
|
|
|
|
* @brief Thermistor known values
|
2017-03-24 10:41:36 -07:00
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
typedef struct {
|
2017-03-27 19:19:58 -07:00
|
|
|
|
/**
|
|
|
|
|
* 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;
|
2017-03-24 10:41:36 -07:00
|
|
|
|
/** total size 28*/
|
|
|
|
|
} thermistor_conf_s;
|
|
|
|
|
|
2017-11-15 11:30:13 -08:00
|
|
|
|
/**
|
|
|
|
|
* @brief Oil pressure sensor interpolation
|
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
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*/
|
|
|
|
|
} oil_pressure_config_s;
|
|
|
|
|
|
2017-03-24 10:41:36 -07:00
|
|
|
|
/**
|
2017-03-27 19:19:58 -07:00
|
|
|
|
* @brief Thermistor curve parameters
|
2017-03-24 10:41:36 -07:00
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
typedef struct {
|
2017-03-27 19:19:58 -07:00
|
|
|
|
/**
|
|
|
|
|
* offset 0
|
|
|
|
|
*/
|
|
|
|
|
thermistor_conf_s config;
|
|
|
|
|
/**
|
|
|
|
|
* offset 28
|
|
|
|
|
*/
|
|
|
|
|
adc_channel_e adcChannel;
|
2017-03-24 10:41:36 -07:00
|
|
|
|
/** total size 32*/
|
|
|
|
|
} ThermistorConf;
|
|
|
|
|
|
|
|
|
|
typedef struct {
|
2017-03-27 19:19:58 -07:00
|
|
|
|
/**
|
|
|
|
|
* 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;
|
|
|
|
|
/**
|
2017-06-11 12:32:29 -07:00
|
|
|
|
* set_flat_injector_lag LAG
|
|
|
|
|
* set_injector_lag VOLTAGE LAG
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 4
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
2015-07-10 06:01:56 -07:00
|
|
|
|
float battLagCorrBins[VBAT_INJECTOR_CURVE_SIZE];
|
2017-03-27 19:19:58 -07:00
|
|
|
|
/**
|
2017-06-11 12:32:29 -07:00
|
|
|
|
* ms delay between injector open and close dead times
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 36
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
2015-07-10 06:01:56 -07:00
|
|
|
|
float battLagCorr[VBAT_INJECTOR_CURVE_SIZE];
|
2017-11-19 09:07:07 -08:00
|
|
|
|
/** total size 68*/
|
2017-03-24 10:41:36 -07:00
|
|
|
|
} injector_s;
|
|
|
|
|
|
|
|
|
|
typedef struct {
|
2017-03-27 19:19:58 -07:00
|
|
|
|
/**
|
|
|
|
|
* offset 0
|
|
|
|
|
*/
|
|
|
|
|
float a0;
|
|
|
|
|
/**
|
|
|
|
|
* offset 4
|
|
|
|
|
*/
|
|
|
|
|
float a1;
|
|
|
|
|
/**
|
|
|
|
|
* offset 8
|
|
|
|
|
*/
|
|
|
|
|
float a2;
|
|
|
|
|
/**
|
|
|
|
|
* offset 12
|
|
|
|
|
*/
|
|
|
|
|
float b1;
|
|
|
|
|
/**
|
|
|
|
|
* offset 16
|
|
|
|
|
*/
|
|
|
|
|
float b2;
|
2017-03-24 10:41:36 -07:00
|
|
|
|
/** total size 20*/
|
|
|
|
|
} bi_quard_s;
|
|
|
|
|
|
|
|
|
|
typedef struct {
|
2017-03-27 19:19:58 -07:00
|
|
|
|
/**
|
|
|
|
|
* Engine displacement, in liters
|
|
|
|
|
* see also cylindersCount
|
|
|
|
|
* offset 0
|
|
|
|
|
*/
|
|
|
|
|
float displacement;
|
|
|
|
|
/**
|
|
|
|
|
* offset 4
|
|
|
|
|
*/
|
|
|
|
|
cylinders_count_t cylindersCount;
|
|
|
|
|
/**
|
|
|
|
|
* offset 8
|
|
|
|
|
*/
|
|
|
|
|
firing_order_e firingOrder;
|
2017-03-24 10:41:36 -07:00
|
|
|
|
/** total size 12*/
|
|
|
|
|
} specs_s;
|
|
|
|
|
|
|
|
|
|
/**
|
2017-03-27 19:19:58 -07:00
|
|
|
|
* @brief Trigger wheel(s) configuration
|
2017-03-24 10:41:36 -07:00
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
typedef struct {
|
2017-03-27 19:19:58 -07:00
|
|
|
|
/**
|
|
|
|
|
* set trigger_type X
|
|
|
|
|
* offset 0
|
|
|
|
|
*/
|
|
|
|
|
trigger_type_e type;
|
|
|
|
|
/**
|
|
|
|
|
offset 4 bit 0 */
|
|
|
|
|
bool unusedCustomIsSynchronizationNeeded : 1;
|
|
|
|
|
/**
|
|
|
|
|
offset 4 bit 1 */
|
|
|
|
|
bool unusedCustomNeedSecondTriggerInput : 1;
|
|
|
|
|
/**
|
|
|
|
|
* This option could be used if your second trigger channel is broken
|
|
|
|
|
offset 4 bit 2 */
|
|
|
|
|
bool useOnlyFirstChannel : 1;
|
|
|
|
|
/**
|
|
|
|
|
* offset 8
|
|
|
|
|
*/
|
|
|
|
|
int customTotalToothCount;
|
|
|
|
|
/**
|
|
|
|
|
* offset 12
|
|
|
|
|
*/
|
|
|
|
|
int customSkippedToothCount;
|
2017-11-19 09:07:07 -08:00
|
|
|
|
/** total size 16*/
|
2017-03-24 10:41:36 -07:00
|
|
|
|
} trigger_config_s;
|
|
|
|
|
|
|
|
|
|
typedef struct {
|
2017-03-27 19:19:58 -07:00
|
|
|
|
/**
|
|
|
|
|
* offset 0
|
|
|
|
|
*/
|
|
|
|
|
adc_channel_e hwChannel;
|
|
|
|
|
/**
|
|
|
|
|
* offset 4
|
|
|
|
|
*/
|
|
|
|
|
float v1;
|
|
|
|
|
/**
|
|
|
|
|
* offset 8
|
|
|
|
|
*/
|
|
|
|
|
float value1;
|
|
|
|
|
/**
|
|
|
|
|
* offset 12
|
|
|
|
|
*/
|
|
|
|
|
float v2;
|
|
|
|
|
/**
|
|
|
|
|
* offset 16
|
|
|
|
|
*/
|
|
|
|
|
float value2;
|
2017-03-24 10:41:36 -07:00
|
|
|
|
/** total size 20*/
|
|
|
|
|
} afr_sensor_s;
|
|
|
|
|
|
|
|
|
|
typedef struct {
|
2017-03-27 19:19:58 -07:00
|
|
|
|
/**
|
|
|
|
|
* 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;
|
2017-03-24 10:41:36 -07:00
|
|
|
|
/** total size 20*/
|
|
|
|
|
} idle_hardware_s;
|
|
|
|
|
|
|
|
|
|
typedef struct {
|
2017-03-27 19:19:58 -07:00
|
|
|
|
/**
|
|
|
|
|
* offset 0
|
|
|
|
|
*/
|
|
|
|
|
idle_hardware_s idle;
|
|
|
|
|
/**
|
|
|
|
|
* value between 0 and 100 used in Manual mode
|
|
|
|
|
* offset 20
|
|
|
|
|
*/
|
|
|
|
|
float manIdlePosition;
|
|
|
|
|
/**
|
|
|
|
|
* offset 24
|
|
|
|
|
*/
|
|
|
|
|
brain_pin_e fuelPumpPin;
|
|
|
|
|
/**
|
|
|
|
|
* offset 28
|
|
|
|
|
*/
|
|
|
|
|
pin_output_mode_e fuelPumpPinMode;
|
|
|
|
|
/**
|
|
|
|
|
* offset 32
|
|
|
|
|
*/
|
2015-07-10 06:01:56 -07:00
|
|
|
|
brain_pin_e injectionPins[INJECTION_PIN_COUNT];
|
2017-03-27 19:19:58 -07:00
|
|
|
|
/**
|
|
|
|
|
* offset 80
|
|
|
|
|
*/
|
|
|
|
|
pin_output_mode_e injectionPinMode;
|
|
|
|
|
/**
|
|
|
|
|
* offset 84
|
|
|
|
|
*/
|
2015-07-10 06:01:56 -07:00
|
|
|
|
brain_pin_e ignitionPins[IGNITION_PIN_COUNT];
|
2017-03-27 19:19:58 -07:00
|
|
|
|
/**
|
|
|
|
|
* 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;
|
|
|
|
|
/**
|
2017-12-03 15:29:52 -08:00
|
|
|
|
* rpm X
|
2017-03-27 19:19:58 -07:00
|
|
|
|
* offset 208
|
|
|
|
|
*/
|
|
|
|
|
int triggerSimulatorFrequency;
|
|
|
|
|
/**
|
|
|
|
|
* Digital Potentiometer is used by stock ECU stimulation code
|
|
|
|
|
* offset 212
|
|
|
|
|
*/
|
|
|
|
|
spi_device_e digitalPotentiometerSpiDevice;
|
|
|
|
|
/**
|
|
|
|
|
* offset 216
|
|
|
|
|
*/
|
2015-07-10 06:01:56 -07:00
|
|
|
|
brain_pin_e digitalPotentiometerChipSelect[DIGIPOT_COUNT];
|
2017-03-27 19:19:58 -07:00
|
|
|
|
/**
|
|
|
|
|
* 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;
|
|
|
|
|
/**
|
|
|
|
|
* offset 256
|
|
|
|
|
*/
|
|
|
|
|
brain_pin_e cj125CsPin;
|
|
|
|
|
/**
|
|
|
|
|
* offset 260
|
|
|
|
|
*/
|
|
|
|
|
float fuelLevelEmptyTankVoltage;
|
|
|
|
|
/**
|
|
|
|
|
* offset 264
|
|
|
|
|
*/
|
|
|
|
|
float fuelLevelFullTankVoltage;
|
|
|
|
|
/**
|
|
|
|
|
* AFR, WBO, EGO - whatever you like to call it
|
|
|
|
|
* offset 268
|
|
|
|
|
*/
|
|
|
|
|
ego_sensor_e afr_type;
|
|
|
|
|
/**
|
|
|
|
|
* offset 272
|
|
|
|
|
*/
|
2017-05-28 19:32:32 -07:00
|
|
|
|
float fuelClosedLoopAfrLowThreshold;
|
2017-03-27 19:19:58 -07:00
|
|
|
|
/**
|
|
|
|
|
* offset 276
|
|
|
|
|
*/
|
|
|
|
|
pin_output_mode_e hip9011CsPinMode;
|
|
|
|
|
/**
|
|
|
|
|
* This implementation produces one pulse per engine cycle. See also dizzySparkOutputPin.
|
|
|
|
|
* offset 280
|
|
|
|
|
*/
|
|
|
|
|
brain_pin_e tachOutputPin;
|
|
|
|
|
/**
|
|
|
|
|
* offset 284
|
|
|
|
|
*/
|
|
|
|
|
pin_output_mode_e tachOutputPinMode;
|
|
|
|
|
/**
|
|
|
|
|
* offset 288
|
|
|
|
|
*/
|
2015-07-10 06:01:56 -07:00
|
|
|
|
brain_input_pin_e triggerInputPins[3];
|
2017-03-27 19:19:58 -07:00
|
|
|
|
/**
|
|
|
|
|
* offset 300
|
|
|
|
|
*/
|
|
|
|
|
brain_pin_e mainRelayPin;
|
|
|
|
|
/**
|
|
|
|
|
* offset 304
|
|
|
|
|
*/
|
|
|
|
|
int idleThreadPeriod;
|
|
|
|
|
/**
|
|
|
|
|
* offset 308
|
|
|
|
|
*/
|
|
|
|
|
int consoleLoopPeriod;
|
|
|
|
|
/**
|
|
|
|
|
* offset 312
|
|
|
|
|
*/
|
|
|
|
|
int lcdThreadPeriod;
|
|
|
|
|
/**
|
|
|
|
|
* offset 316
|
|
|
|
|
*/
|
|
|
|
|
brain_pin_e sdCardCsPin;
|
|
|
|
|
/**
|
|
|
|
|
* offset 320
|
|
|
|
|
*/
|
|
|
|
|
int generalPeriodicThreadPeriod;
|
|
|
|
|
/**
|
|
|
|
|
* offset 324
|
|
|
|
|
*/
|
|
|
|
|
uint32_t tunerStudioSerialSpeed;
|
|
|
|
|
/**
|
|
|
|
|
* offset 328
|
|
|
|
|
*/
|
|
|
|
|
brain_pin_e boardTestModeJumperPin;
|
|
|
|
|
/**
|
|
|
|
|
* offset 332
|
|
|
|
|
*/
|
|
|
|
|
can_device_mode_e canDeviceMode;
|
|
|
|
|
/**
|
|
|
|
|
* offset 336
|
|
|
|
|
*/
|
|
|
|
|
brain_pin_e canTxPin;
|
|
|
|
|
/**
|
|
|
|
|
* offset 340
|
|
|
|
|
*/
|
|
|
|
|
brain_pin_e canRxPin;
|
|
|
|
|
/**
|
|
|
|
|
* offset 344
|
|
|
|
|
*/
|
2015-07-10 06:01:56 -07:00
|
|
|
|
brain_pin_e triggerSimulatorPins[TRIGGER_SIMULATOR_PIN_COUNT];
|
2017-03-27 19:19:58 -07:00
|
|
|
|
/**
|
|
|
|
|
* offset 356
|
|
|
|
|
*/
|
2015-07-10 06:01:56 -07:00
|
|
|
|
pin_output_mode_e triggerSimulatorPinModes[TRIGGER_SIMULATOR_PIN_COUNT];
|
2017-03-27 19:19:58 -07:00
|
|
|
|
/**
|
|
|
|
|
* offset 368
|
|
|
|
|
*/
|
|
|
|
|
brain_pin_e o2heaterPin;
|
|
|
|
|
/**
|
|
|
|
|
* offset 372
|
|
|
|
|
*/
|
|
|
|
|
pin_output_mode_e o2heaterPinModeTodO;
|
|
|
|
|
/**
|
|
|
|
|
offset 376 bit 0 */
|
|
|
|
|
bool is_enabled_spi_1 : 1;
|
|
|
|
|
/**
|
|
|
|
|
offset 376 bit 1 */
|
|
|
|
|
bool is_enabled_spi_2 : 1;
|
|
|
|
|
/**
|
|
|
|
|
offset 376 bit 2 */
|
|
|
|
|
bool is_enabled_spi_3 : 1;
|
|
|
|
|
/**
|
|
|
|
|
offset 376 bit 3 */
|
|
|
|
|
bool isSdCardEnabled : 1;
|
|
|
|
|
/**
|
|
|
|
|
offset 376 bit 4 */
|
|
|
|
|
bool isFastAdcEnabled : 1;
|
|
|
|
|
/**
|
|
|
|
|
offset 376 bit 5 */
|
|
|
|
|
bool isEngineControlEnabled : 1;
|
|
|
|
|
/**
|
|
|
|
|
offset 376 bit 6 */
|
|
|
|
|
bool isHip9011Enabled : 1;
|
|
|
|
|
/**
|
|
|
|
|
offset 376 bit 7 */
|
|
|
|
|
bool isVerboseAlternator : 1;
|
|
|
|
|
/**
|
|
|
|
|
offset 376 bit 8 */
|
|
|
|
|
bool useSerialPort : 1;
|
|
|
|
|
/**
|
|
|
|
|
offset 376 bit 9 */
|
|
|
|
|
bool useStepperIdle : 1;
|
|
|
|
|
/**
|
|
|
|
|
offset 376 bit 10 */
|
|
|
|
|
bool enabledStep1Limiter : 1;
|
|
|
|
|
/**
|
|
|
|
|
offset 376 bit 11 */
|
|
|
|
|
bool useTpicAdvancedMode : 1;
|
|
|
|
|
/**
|
|
|
|
|
offset 376 bit 12 */
|
|
|
|
|
bool useLcdScreen : 1;
|
|
|
|
|
/**
|
|
|
|
|
offset 376 bit 13 */
|
|
|
|
|
bool startConsoleInBinaryMode : 1;
|
|
|
|
|
/**
|
|
|
|
|
offset 376 bit 14 */
|
|
|
|
|
bool useWarmupPidAfr : 1;
|
|
|
|
|
/**
|
|
|
|
|
offset 376 bit 15 */
|
|
|
|
|
bool onOffAlternatorLogic : 1;
|
|
|
|
|
/**
|
|
|
|
|
offset 376 bit 16 */
|
|
|
|
|
bool isCJ125Enabled : 1;
|
|
|
|
|
/**
|
|
|
|
|
* Use rise or fall signal front
|
|
|
|
|
offset 376 bit 17 */
|
|
|
|
|
bool vvtCamSensorUseRise : 1;
|
2018-01-02 18:25:40 -08:00
|
|
|
|
/**
|
2018-01-24 06:03:42 -08:00
|
|
|
|
* Useful for individual intakes
|
2018-01-02 18:25:40 -08:00
|
|
|
|
offset 376 bit 18 */
|
2018-01-24 06:03:42 -08:00
|
|
|
|
bool measureMapOnlyInOneCylinder : 1;
|
2018-01-02 18:25:40 -08:00
|
|
|
|
/**
|
|
|
|
|
offset 376 bit 19 */
|
2018-01-29 15:27:39 -08:00
|
|
|
|
bool stepperForceParkingEveryRestart : 1;
|
2018-01-02 18:25:40 -08:00
|
|
|
|
/**
|
|
|
|
|
offset 376 bit 20 */
|
2018-03-03 05:54:23 -08:00
|
|
|
|
bool isFasterEngineSpinUpEnabled : 1;
|
2018-01-02 18:25:40 -08:00
|
|
|
|
/**
|
|
|
|
|
offset 376 bit 21 */
|
2018-03-17 16:55:23 -07:00
|
|
|
|
bool coastingFuelCutEnabled : 1;
|
2018-01-02 18:25:40 -08:00
|
|
|
|
/**
|
|
|
|
|
offset 376 bit 22 */
|
|
|
|
|
bool unused_board_984_22 : 1;
|
|
|
|
|
/**
|
|
|
|
|
offset 376 bit 23 */
|
|
|
|
|
bool unused_board_984_23 : 1;
|
|
|
|
|
/**
|
|
|
|
|
offset 376 bit 24 */
|
|
|
|
|
bool unused_board_984_24 : 1;
|
|
|
|
|
/**
|
|
|
|
|
offset 376 bit 25 */
|
|
|
|
|
bool unused_board_984_25 : 1;
|
|
|
|
|
/**
|
|
|
|
|
offset 376 bit 26 */
|
|
|
|
|
bool unused_board_984_26 : 1;
|
|
|
|
|
/**
|
|
|
|
|
offset 376 bit 27 */
|
|
|
|
|
bool unused_board_984_27 : 1;
|
|
|
|
|
/**
|
|
|
|
|
offset 376 bit 28 */
|
|
|
|
|
bool unused_board_984_28 : 1;
|
|
|
|
|
/**
|
|
|
|
|
offset 376 bit 29 */
|
|
|
|
|
bool unused_board_984_29 : 1;
|
|
|
|
|
/**
|
|
|
|
|
offset 376 bit 30 */
|
|
|
|
|
bool unused_board_984_30 : 1;
|
2017-03-27 19:19:58 -07:00
|
|
|
|
/**
|
|
|
|
|
* offset 380
|
|
|
|
|
*/
|
2015-07-10 06:01:56 -07:00
|
|
|
|
brain_input_pin_e logicAnalyzerPins[LOGIC_ANALYZER_CHANNEL_COUNT];
|
2017-03-27 19:19:58 -07:00
|
|
|
|
/**
|
|
|
|
|
* default or inverted input
|
|
|
|
|
* offset 396
|
|
|
|
|
*/
|
2015-07-10 06:01:56 -07:00
|
|
|
|
uint8_t logicAnalyzerMode[LOGIC_ANALYZER_CHANNEL_COUNT];
|
2017-03-27 19:19:58 -07:00
|
|
|
|
/**
|
|
|
|
|
* offset 400
|
|
|
|
|
*/
|
|
|
|
|
int unrealisticRpmThreashold;
|
|
|
|
|
/**
|
|
|
|
|
* offset 404
|
|
|
|
|
*/
|
|
|
|
|
pin_output_mode_e mainRelayPinMode;
|
|
|
|
|
/**
|
|
|
|
|
* offset 408
|
|
|
|
|
*/
|
2015-07-10 06:01:56 -07:00
|
|
|
|
brain_pin_e max31855_cs[EGT_CHANNEL_COUNT];
|
2017-03-27 19:19:58 -07:00
|
|
|
|
/**
|
|
|
|
|
* offset 440
|
|
|
|
|
*/
|
|
|
|
|
spi_device_e max31855spiDevice;
|
|
|
|
|
/**
|
2017-11-19 08:05:57 -08:00
|
|
|
|
* todo: more comments
|
2017-03-27 19:19:58 -07:00
|
|
|
|
* offset 444
|
|
|
|
|
*/
|
2017-11-19 07:23:47 -08:00
|
|
|
|
brain_pin_e fsioOutputPins[FSIO_COMMAND_COUNT];
|
2017-03-27 19:19:58 -07:00
|
|
|
|
/**
|
|
|
|
|
* offset 508
|
|
|
|
|
*/
|
2017-06-25 23:14:31 -07:00
|
|
|
|
pin_output_mode_e gpioPinModes[FSIO_COMMAND_COUNT];
|
2017-03-27 19:19:58 -07:00
|
|
|
|
/**
|
|
|
|
|
* offset 572
|
|
|
|
|
*/
|
|
|
|
|
uart_device_e consoleUartDevice;
|
|
|
|
|
/**
|
|
|
|
|
* offset 576
|
|
|
|
|
*/
|
2017-06-22 00:10:07 -07:00
|
|
|
|
int mapMinBufferLength;
|
2017-03-27 19:19:58 -07:00
|
|
|
|
/**
|
|
|
|
|
* offset 580
|
|
|
|
|
*/
|
2017-05-27 20:43:48 -07:00
|
|
|
|
int16_t idlePidDeactivationTpsThreshold;
|
|
|
|
|
/**
|
|
|
|
|
* offset 582
|
|
|
|
|
*/
|
2018-01-28 11:44:01 -08:00
|
|
|
|
int16_t stepperParkingExtraSteps;
|
2017-03-27 19:19:58 -07:00
|
|
|
|
/**
|
|
|
|
|
* offset 584
|
|
|
|
|
*/
|
|
|
|
|
float nb2ratioFrom;
|
|
|
|
|
/**
|
|
|
|
|
* offset 588
|
|
|
|
|
*/
|
|
|
|
|
float nb2ratioTo;
|
|
|
|
|
/**
|
|
|
|
|
* This pin is used for debugging - snap a logic analyzer on it and see if it's ever high
|
|
|
|
|
* offset 592
|
|
|
|
|
*/
|
|
|
|
|
brain_pin_e triggerErrorPin;
|
|
|
|
|
/**
|
|
|
|
|
* offset 596
|
|
|
|
|
*/
|
|
|
|
|
pin_output_mode_e triggerErrorPinMode;
|
|
|
|
|
/**
|
|
|
|
|
* offset 600
|
|
|
|
|
*/
|
|
|
|
|
brain_pin_e acRelayPin;
|
|
|
|
|
/**
|
|
|
|
|
* offset 604
|
|
|
|
|
*/
|
|
|
|
|
pin_output_mode_e acRelayPinMode;
|
|
|
|
|
/**
|
|
|
|
|
* offset 608
|
|
|
|
|
*/
|
2017-06-25 23:14:31 -07:00
|
|
|
|
fsio_pwm_freq_t fsioFrequency[FSIO_COMMAND_COUNT];
|
2017-03-27 19:19:58 -07:00
|
|
|
|
/**
|
|
|
|
|
* offset 640
|
|
|
|
|
*/
|
|
|
|
|
brain_pin_e hip9011CsPin;
|
|
|
|
|
/**
|
|
|
|
|
* offset 644
|
|
|
|
|
*/
|
|
|
|
|
brain_pin_e hip9011IntHoldPin;
|
|
|
|
|
/**
|
|
|
|
|
* offset 648
|
|
|
|
|
*/
|
|
|
|
|
pin_output_mode_e hip9011IntHoldPinMode;
|
|
|
|
|
/**
|
|
|
|
|
* offset 652
|
|
|
|
|
*/
|
2017-06-25 23:14:31 -07:00
|
|
|
|
fsio_setting_t fsio_setting[FSIO_COMMAND_COUNT];
|
2017-03-27 19:19:58 -07:00
|
|
|
|
/**
|
|
|
|
|
* offset 716
|
|
|
|
|
*/
|
|
|
|
|
brain_pin_e spi1mosiPin;
|
|
|
|
|
/**
|
|
|
|
|
* offset 720
|
|
|
|
|
*/
|
|
|
|
|
brain_pin_e spi1misoPin;
|
|
|
|
|
/**
|
|
|
|
|
* offset 724
|
|
|
|
|
*/
|
|
|
|
|
brain_pin_e spi1sckPin;
|
|
|
|
|
/**
|
|
|
|
|
* offset 728
|
|
|
|
|
*/
|
|
|
|
|
brain_pin_e spi2mosiPin;
|
|
|
|
|
/**
|
|
|
|
|
* offset 732
|
|
|
|
|
*/
|
|
|
|
|
brain_pin_e spi2misoPin;
|
|
|
|
|
/**
|
|
|
|
|
* offset 736
|
|
|
|
|
*/
|
|
|
|
|
brain_pin_e spi2sckPin;
|
|
|
|
|
/**
|
|
|
|
|
* offset 740
|
|
|
|
|
*/
|
|
|
|
|
brain_pin_e spi3mosiPin;
|
|
|
|
|
/**
|
|
|
|
|
* offset 744
|
|
|
|
|
*/
|
|
|
|
|
brain_pin_e spi3misoPin;
|
|
|
|
|
/**
|
|
|
|
|
* offset 748
|
|
|
|
|
*/
|
|
|
|
|
brain_pin_e spi3sckPin;
|
|
|
|
|
/**
|
|
|
|
|
* offset 752
|
|
|
|
|
*/
|
|
|
|
|
float hip9011Gain;
|
|
|
|
|
/**
|
|
|
|
|
* offset 756
|
|
|
|
|
*/
|
|
|
|
|
brain_pin_e joystickCenterPin;
|
|
|
|
|
/**
|
|
|
|
|
* offset 760
|
|
|
|
|
*/
|
|
|
|
|
brain_pin_e joystickAPin;
|
|
|
|
|
/**
|
|
|
|
|
* offset 764
|
|
|
|
|
*/
|
|
|
|
|
brain_pin_e joystickBPin;
|
|
|
|
|
/**
|
|
|
|
|
* offset 768
|
|
|
|
|
*/
|
|
|
|
|
brain_pin_e joystickCPin;
|
|
|
|
|
/**
|
|
|
|
|
* offset 772
|
|
|
|
|
*/
|
|
|
|
|
brain_pin_e joystickDPin;
|
|
|
|
|
/**
|
|
|
|
|
* rusEfi console Sensor Sniffer mode
|
|
|
|
|
* offset 776
|
|
|
|
|
*/
|
|
|
|
|
sensor_chart_e sensorChartMode;
|
|
|
|
|
/**
|
|
|
|
|
* offset 780
|
|
|
|
|
*/
|
|
|
|
|
maf_sensor_type_e mafSensorType;
|
|
|
|
|
/**
|
|
|
|
|
* offset 784
|
|
|
|
|
*/
|
|
|
|
|
brain_input_pin_e vehicleSpeedSensorInputPin;
|
|
|
|
|
/**
|
|
|
|
|
* Some vehicles have a switch to indicate that clutch pedal is all the way up
|
|
|
|
|
* offset 788
|
|
|
|
|
*/
|
|
|
|
|
brain_pin_e clutchUpPin;
|
|
|
|
|
/**
|
|
|
|
|
* offset 792
|
|
|
|
|
*/
|
|
|
|
|
pin_input_mode_e clutchUpPinMode;
|
|
|
|
|
/**
|
2017-08-06 16:43:01 -07:00
|
|
|
|
* todo:not finshed
|
2017-03-27 19:19:58 -07:00
|
|
|
|
* These input pins allow us to pull toggle buttons state
|
|
|
|
|
* offset 796
|
|
|
|
|
*/
|
2017-06-25 23:14:31 -07:00
|
|
|
|
brain_pin_e fsioDigitalInputs[FSIO_COMMAND_COUNT];
|
2017-03-27 19:19:58 -07:00
|
|
|
|
/**
|
|
|
|
|
* offset 860
|
|
|
|
|
*/
|
|
|
|
|
brain_input_pin_e frequencyReportingMapInputPin;
|
2017-03-24 10:41:36 -07:00
|
|
|
|
/** total size 864*/
|
|
|
|
|
} board_configuration_s;
|
|
|
|
|
|
|
|
|
|
typedef struct {
|
2017-03-27 19:19:58 -07:00
|
|
|
|
/**
|
|
|
|
|
* http://rusefi.com/wiki/index.php?title=Manual:Engine_Type
|
|
|
|
|
* set engine_type X
|
|
|
|
|
* offset 0
|
|
|
|
|
*/
|
|
|
|
|
engine_type_e engineType;
|
|
|
|
|
/**
|
|
|
|
|
* Engine sniffer would be disabled above this rpm
|
|
|
|
|
* set engineSnifferRpmThreshold X
|
|
|
|
|
* offset 4
|
|
|
|
|
*/
|
|
|
|
|
int engineSnifferRpmThreshold;
|
|
|
|
|
/**
|
|
|
|
|
* offset 8
|
|
|
|
|
*/
|
|
|
|
|
injector_s injector;
|
|
|
|
|
/**
|
|
|
|
|
* Should trigger emulator push data right into trigger handling logic, eliminating the need for physical jumper wires?
|
|
|
|
|
* PS: Funny name, right? :)
|
2017-11-19 09:07:07 -08:00
|
|
|
|
offset 76 bit 0 */
|
2017-03-27 19:19:58 -07:00
|
|
|
|
bool directSelfStimulation : 1;
|
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
offset 76 bit 1 */
|
2017-03-27 19:19:58 -07:00
|
|
|
|
bool activateAuxPid1 : 1;
|
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
offset 76 bit 2 */
|
2017-03-27 19:19:58 -07:00
|
|
|
|
bool isVerboseAuxPid1 : 1;
|
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
offset 76 bit 3 */
|
2017-03-27 19:19:58 -07:00
|
|
|
|
bool activateAuxPid2 : 1;
|
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
offset 76 bit 4 */
|
2017-03-27 19:19:58 -07:00
|
|
|
|
bool isVerboseAuxPid2 : 1;
|
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
offset 76 bit 5 */
|
2017-03-27 19:19:58 -07:00
|
|
|
|
bool activateAuxPid3 : 1;
|
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
offset 76 bit 6 */
|
2017-03-27 19:19:58 -07:00
|
|
|
|
bool isVerboseAuxPid3 : 1;
|
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
offset 76 bit 7 */
|
2017-03-27 19:19:58 -07:00
|
|
|
|
bool activateAuxPid4 : 1;
|
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
offset 76 bit 8 */
|
2017-03-27 19:19:58 -07:00
|
|
|
|
bool isVerboseAuxPid4 : 1;
|
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
offset 76 bit 9 */
|
2017-03-27 19:19:58 -07:00
|
|
|
|
bool useBiQuadAnalogFiltering : 1;
|
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
offset 76 bit 10 */
|
2017-03-27 19:19:58 -07:00
|
|
|
|
bool issue_294_10 : 1;
|
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
offset 76 bit 11 */
|
2017-03-27 19:19:58 -07:00
|
|
|
|
bool issue_294_11 : 1;
|
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
offset 76 bit 12 */
|
2017-03-27 19:19:58 -07:00
|
|
|
|
bool issue_294_12 : 1;
|
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
offset 76 bit 13 */
|
2017-03-27 19:19:58 -07:00
|
|
|
|
bool issue_294_13 : 1;
|
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
offset 76 bit 14 */
|
2017-03-27 19:19:58 -07:00
|
|
|
|
bool issue_294_14 : 1;
|
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
offset 76 bit 15 */
|
2017-03-27 19:19:58 -07:00
|
|
|
|
bool issue_294_15 : 1;
|
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
offset 76 bit 16 */
|
2017-03-27 19:19:58 -07:00
|
|
|
|
bool issue_294_16 : 1;
|
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
offset 76 bit 17 */
|
2017-03-27 19:19:58 -07:00
|
|
|
|
bool issue_294_17 : 1;
|
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
offset 76 bit 18 */
|
2017-03-27 19:19:58 -07:00
|
|
|
|
bool issue_294_18 : 1;
|
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
offset 76 bit 19 */
|
2017-03-27 19:19:58 -07:00
|
|
|
|
bool issue_294_19 : 1;
|
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
offset 76 bit 20 */
|
2017-03-27 19:19:58 -07:00
|
|
|
|
bool issue_294_21 : 1;
|
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
offset 76 bit 21 */
|
2017-03-27 19:19:58 -07:00
|
|
|
|
bool issue_294_22 : 1;
|
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
offset 76 bit 22 */
|
2017-03-27 19:19:58 -07:00
|
|
|
|
bool issue_294_23 : 1;
|
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
offset 76 bit 23 */
|
2017-03-27 19:19:58 -07:00
|
|
|
|
bool issue_294_24 : 1;
|
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
offset 76 bit 24 */
|
2017-03-27 19:19:58 -07:00
|
|
|
|
bool issue_294_25 : 1;
|
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
offset 76 bit 25 */
|
2017-03-27 19:19:58 -07:00
|
|
|
|
bool issue_294_26 : 1;
|
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
offset 76 bit 26 */
|
2017-03-27 19:19:58 -07:00
|
|
|
|
bool issue_294_27 : 1;
|
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
offset 76 bit 27 */
|
2017-03-27 19:19:58 -07:00
|
|
|
|
bool issue_294_28 : 1;
|
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
offset 76 bit 28 */
|
2017-03-27 19:19:58 -07:00
|
|
|
|
bool issue_294_29 : 1;
|
|
|
|
|
/**
|
|
|
|
|
* Closed throttle. todo: extract these two fields into a structure
|
|
|
|
|
* todo: we need two sets of TPS parameters - modern ETBs have two sensors
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 80
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
int16_t tpsMin;
|
|
|
|
|
/**
|
|
|
|
|
* Full throtle. tpsMax value as 10 bit ADC value. Not Voltage!
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 82
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
int16_t tpsMax;
|
|
|
|
|
/**
|
|
|
|
|
* TPS error detection, what TPS % value is unrealistically low
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 84
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
int16_t tpsErrorDetectionTooLow;
|
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 86
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
int16_t tpsErrorDetectionTooHigh;
|
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 88
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
cranking_parameters_s cranking;
|
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 96
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
float primingSquirtDurationMs;
|
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 100
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
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.
|
|
|
|
|
* set cranking_charge_angle X
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 104
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
float crankingChargeAngle;
|
|
|
|
|
/**
|
|
|
|
|
* @see hasMapSensor
|
|
|
|
|
* @see isMapAveragingEnabled
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 108
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
MAP_sensor_config_s map;
|
|
|
|
|
/**
|
|
|
|
|
* todo: merge with channel settings, use full-scale Thermistor here!
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 252
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
ThermistorConf clt;
|
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 284
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
ThermistorConf iat;
|
|
|
|
|
/**
|
|
|
|
|
* A secondary Rev limit engaged by the driver to help launch the vehicle faster
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 316
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
int step1rpm;
|
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 320
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
int step1timing;
|
|
|
|
|
/**
|
|
|
|
|
* 6=8MHz todo solit two bit fields
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 324
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
int hip9011PrescalerAndSDO;
|
|
|
|
|
/**
|
|
|
|
|
* kHz knock band override
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 328
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
float knockBandCustom;
|
|
|
|
|
/**
|
2017-05-12 13:28:56 -07:00
|
|
|
|
* On single-coil or wasted spark setups you have to lower dwell at high RPM
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 332
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
2017-02-18 12:01:47 -08:00
|
|
|
|
float sparkDwellRpmBins[DWELL_CURVE_SIZE];
|
2017-03-27 19:19:58 -07:00
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 364
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
2017-02-18 12:01:47 -08:00
|
|
|
|
float sparkDwellValues[DWELL_CURVE_SIZE];
|
2017-03-27 19:19:58 -07:00
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 396
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
specs_s specs;
|
|
|
|
|
/**
|
|
|
|
|
* Cylinder diameter, in mm.
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 408
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
float cylinderBore;
|
|
|
|
|
/**
|
|
|
|
|
* Disable sensor sniffer above this rpm
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 412
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
int sensorSnifferRpmThreshold;
|
|
|
|
|
/**
|
2017-04-29 18:17:20 -07:00
|
|
|
|
* set rpm_hard_limit X
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 416
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
int rpmHardLimit;
|
|
|
|
|
/**
|
|
|
|
|
* This setting controls which fuel quantity control algorithm is used.
|
|
|
|
|
* set algorithm X
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 420
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
engine_load_mode_e fuelAlgorithm;
|
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 424
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
injection_mode_e crankingInjectionMode;
|
|
|
|
|
/**
|
|
|
|
|
* 'batched' means two injectors are wired together
|
|
|
|
|
* set injection_mode X
|
2018-01-17 16:18:48 -08:00
|
|
|
|
* See also twoWireBatchInjection
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 428
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
injection_mode_e injectionMode;
|
|
|
|
|
/**
|
|
|
|
|
* this is about deciding when the injector starts it's squirt
|
|
|
|
|
* See also injectionPhase map
|
|
|
|
|
* todo: do we need even need this since we have the map anyway?
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 432
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
angle_t extraInjectionOffset;
|
|
|
|
|
/**
|
|
|
|
|
* Timing advance while engine cranking
|
|
|
|
|
* set cranking_timing_angle X
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 436
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
angle_t crankingTimingAngle;
|
|
|
|
|
/**
|
|
|
|
|
* '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
|
|
|
|
|
* set ignition_mode X
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 440
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
ignition_mode_e ignitionMode;
|
|
|
|
|
/**
|
|
|
|
|
* this value could be used to offset the whole ignition timing table by a constant
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 444
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
angle_t ignitionOffset;
|
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 448
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
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
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 452
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
angle_t fixedModeTiming;
|
|
|
|
|
/**
|
|
|
|
|
* Angle between Top Dead Center (TDC) and the first trigger event.
|
|
|
|
|
* Knowing this angle allows us to control timing and other angles in reference to TDC.
|
|
|
|
|
* set global_trigger_offset_angle X
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 456
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
angle_t globalTriggerAngleOffset;
|
|
|
|
|
/**
|
|
|
|
|
* Coefficient of input voltage dividers on your PCB
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 460
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
float analogInputDividerCoefficient;
|
|
|
|
|
/**
|
|
|
|
|
* Battery Voltage input resistor divider coefficient
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 464
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
float vbattDividerCoeff;
|
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 468
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
adc_channel_e vbattAdcChannel;
|
|
|
|
|
/**
|
|
|
|
|
* Cooling fan turn-on temperature threshold, in Celsuis
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 472
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
float fanOnTemperature;
|
|
|
|
|
/**
|
|
|
|
|
* Cooling fan turn-off temperature threshold, in Celsuis
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 476
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
float fanOffTemperature;
|
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 480
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
adc_channel_e fuelLevelSensor;
|
|
|
|
|
/**
|
|
|
|
|
* This coefficient translates vehicle speed input frequency (in Hz) into vehicle speed, km/h
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 484
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
float vehicleSpeedCoef;
|
|
|
|
|
/**
|
|
|
|
|
* set can_mode X
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 488
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
can_nbc_e canNbcType;
|
|
|
|
|
/**
|
|
|
|
|
* CANbus thread period, ms
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 492
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
int canSleepPeriod;
|
|
|
|
|
/**
|
|
|
|
|
* See engineCycle
|
|
|
|
|
* set operation_mode X
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 496
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
operation_mode_e operationMode;
|
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 500
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
display_mode_e displayMode;
|
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 504
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
log_format_e logFormat;
|
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 508
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
int byFirmwareVersion;
|
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 512
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
int HD44780width;
|
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 516
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
int HD44780height;
|
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 520
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
adc_channel_e tpsAdcChannel;
|
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 524
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
int overrideCrankingIgnition;
|
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 528
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
int sensorChartFrequency;
|
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 532
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
trigger_config_s trigger;
|
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 548
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
spi_device_e hip9011SpiDevice;
|
|
|
|
|
/**
|
2018-01-06 07:53:15 -08:00
|
|
|
|
* set global_fuel_correction X
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 552
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
float globalFuelCorrection;
|
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 556
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
2017-06-12 05:18:19 -07:00
|
|
|
|
float adcVcc;
|
2017-03-27 19:19:58 -07:00
|
|
|
|
/**
|
|
|
|
|
* maximum total number of degrees to subtract from ignition advance
|
|
|
|
|
* when knocking
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 560
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
float maxKnockSubDeg;
|
|
|
|
|
/**
|
|
|
|
|
* See hasMafSensor
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 564
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
adc_channel_e mafAdcChannel;
|
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 568
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
afr_sensor_s afr;
|
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 588
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
adc_channel_e pedalPositionChannel;
|
|
|
|
|
/**
|
|
|
|
|
* @see hasBaroSensor
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 592
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
air_pressure_sensor_config_s baroSensor;
|
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 608
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
board_configuration_s bc;
|
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
offset 1472 bit 0 */
|
2017-03-27 19:19:58 -07:00
|
|
|
|
bool vvtDisplayInverted : 1;
|
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
offset 1472 bit 1 */
|
2017-03-27 19:19:58 -07:00
|
|
|
|
bool fuelClosedLoopCorrectionEnabled : 1;
|
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
offset 1472 bit 2 */
|
2017-05-16 19:13:40 -07:00
|
|
|
|
bool isVerboseIAC : 1;
|
2017-03-27 19:19:58 -07:00
|
|
|
|
/**
|
2017-05-29 20:13:02 -07:00
|
|
|
|
* enable verbose_etb
|
2017-11-19 09:07:07 -08:00
|
|
|
|
offset 1472 bit 3 */
|
2017-05-24 21:38:37 -07:00
|
|
|
|
bool isVerboseETB : 1;
|
2017-03-27 19:19:58 -07:00
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
offset 1472 bit 4 */
|
2017-03-27 19:19:58 -07:00
|
|
|
|
bool useConstantDwellDuringCranking : 1;
|
|
|
|
|
/**
|
|
|
|
|
* This options enables data for 'engine sniffer' tab in console, which comes at some CPU price
|
2017-11-19 09:07:07 -08:00
|
|
|
|
offset 1472 bit 5 */
|
2017-03-27 19:19:58 -07:00
|
|
|
|
bool isEngineChartEnabled : 1;
|
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
offset 1472 bit 6 */
|
2017-05-25 05:28:30 -07:00
|
|
|
|
bool silentTriggerError : 1;
|
2017-03-27 19:19:58 -07:00
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
offset 1472 bit 7 */
|
2017-06-12 15:22:25 -07:00
|
|
|
|
bool useLinearCltSensor : 1;
|
2017-03-27 19:19:58 -07:00
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
offset 1472 bit 8 */
|
2017-03-27 19:19:58 -07:00
|
|
|
|
bool canReadEnabled : 1;
|
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
offset 1472 bit 9 */
|
2017-03-27 19:19:58 -07:00
|
|
|
|
bool canWriteEnabled : 1;
|
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
offset 1472 bit 10 */
|
2017-06-12 15:22:25 -07:00
|
|
|
|
bool useLinearIatSensor : 1;
|
2017-03-27 19:19:58 -07:00
|
|
|
|
/**
|
2017-08-03 18:09:32 -07:00
|
|
|
|
* See fsioTimingAdjustment
|
2017-11-19 09:07:07 -08:00
|
|
|
|
offset 1472 bit 11 */
|
2017-07-25 17:32:54 -07:00
|
|
|
|
bool useFSIO16ForTimingAdjustment : 1;
|
2017-03-27 19:19:58 -07:00
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
offset 1472 bit 12 */
|
2017-08-28 18:00:36 -07:00
|
|
|
|
bool tachPulseDurationAsDutyCycle : 1;
|
2017-03-27 19:19:58 -07:00
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
offset 1472 bit 13 */
|
2017-03-27 19:19:58 -07:00
|
|
|
|
bool isAlternatorControlEnabled : 1;
|
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
offset 1472 bit 14 */
|
2017-10-16 11:52:42 -07:00
|
|
|
|
bool invertPrimaryTriggerSignal : 1;
|
2017-03-27 19:19:58 -07:00
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
offset 1472 bit 15 */
|
2017-10-16 11:52:42 -07:00
|
|
|
|
bool invertSecondaryTriggerSignal : 1;
|
2017-03-27 19:19:58 -07:00
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
offset 1472 bit 16 */
|
2017-03-27 19:19:58 -07:00
|
|
|
|
bool cutFuelOnHardLimit : 1;
|
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
offset 1472 bit 17 */
|
2017-03-27 19:19:58 -07:00
|
|
|
|
bool cutSparkOnHardLimit : 1;
|
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
offset 1472 bit 18 */
|
2017-03-27 19:19:58 -07:00
|
|
|
|
bool step1fuelCutEnable : 1;
|
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
offset 1472 bit 19 */
|
2017-03-27 19:19:58 -07:00
|
|
|
|
bool step1SparkCutEnable : 1;
|
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
offset 1472 bit 20 */
|
2017-03-27 19:19:58 -07:00
|
|
|
|
bool hasFrequencyReportingMapSensor : 1;
|
2018-01-02 18:25:40 -08:00
|
|
|
|
/**
|
|
|
|
|
offset 1472 bit 21 */
|
2018-03-18 09:15:51 -07:00
|
|
|
|
bool useFSIO8ForServo1 : 1;
|
2018-01-02 18:25:40 -08:00
|
|
|
|
/**
|
|
|
|
|
offset 1472 bit 22 */
|
2018-03-18 09:15:51 -07:00
|
|
|
|
bool useFSIO9ForServo2 : 1;
|
2018-01-02 18:25:40 -08:00
|
|
|
|
/**
|
|
|
|
|
offset 1472 bit 23 */
|
2018-03-18 09:15:51 -07:00
|
|
|
|
bool useFSIO10ForServo3 : 1;
|
2018-01-02 18:25:40 -08:00
|
|
|
|
/**
|
|
|
|
|
offset 1472 bit 24 */
|
2018-03-18 09:15:51 -07:00
|
|
|
|
bool useFSIO11ForServo4 : 1;
|
2018-01-02 18:25:40 -08:00
|
|
|
|
/**
|
|
|
|
|
offset 1472 bit 25 */
|
2018-03-18 09:15:51 -07:00
|
|
|
|
bool useFSIO12ForServo5 : 1;
|
2018-01-02 18:25:40 -08:00
|
|
|
|
/**
|
|
|
|
|
offset 1472 bit 26 */
|
|
|
|
|
bool unused_bit_1472_26 : 1;
|
|
|
|
|
/**
|
|
|
|
|
offset 1472 bit 27 */
|
|
|
|
|
bool unused_bit_1472_27 : 1;
|
2017-03-27 19:19:58 -07:00
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 1476
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
adc_channel_e hipOutputChannel;
|
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 1480
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
idle_mode_e idleMode;
|
|
|
|
|
/**
|
|
|
|
|
* enable injection
|
2017-11-19 09:07:07 -08:00
|
|
|
|
offset 1484 bit 0 */
|
2017-03-27 19:19:58 -07:00
|
|
|
|
bool isInjectionEnabled : 1;
|
|
|
|
|
/**
|
|
|
|
|
* enable ignition
|
2017-11-19 09:07:07 -08:00
|
|
|
|
offset 1484 bit 1 */
|
2017-03-27 19:19:58 -07:00
|
|
|
|
bool isIgnitionEnabled : 1;
|
|
|
|
|
/**
|
|
|
|
|
* If TPS above 95% no fuel would be injected during cranking
|
|
|
|
|
* enable cylinder_cleanup
|
2017-11-19 09:07:07 -08:00
|
|
|
|
offset 1484 bit 2 */
|
2017-03-27 19:19:58 -07:00
|
|
|
|
bool isCylinderCleanupEnabled : 1;
|
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
offset 1484 bit 3 */
|
2017-03-27 19:19:58 -07:00
|
|
|
|
bool secondTriggerChannelEnabled : 1;
|
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
offset 1484 bit 4 */
|
2017-03-27 19:19:58 -07:00
|
|
|
|
bool needSecondTriggerInputDeprecated : 1;
|
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
offset 1484 bit 5 */
|
2017-03-27 19:19:58 -07:00
|
|
|
|
bool isMapAveragingEnabled : 1;
|
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
offset 1484 bit 6 */
|
2017-12-06 15:46:31 -08:00
|
|
|
|
bool overrideCrankingIacSetting : 1;
|
2017-03-27 19:19:58 -07:00
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
offset 1484 bit 7 */
|
2017-12-11 07:14:42 -08:00
|
|
|
|
bool useSeparateAdvanceForIdle : 1;
|
2017-03-27 19:19:58 -07:00
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
offset 1484 bit 8 */
|
2017-03-27 19:19:58 -07:00
|
|
|
|
bool isTunerStudioEnabled : 1;
|
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
offset 1484 bit 9 */
|
2017-03-27 19:19:58 -07:00
|
|
|
|
bool isWaveAnalyzerEnabled : 1;
|
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
offset 1484 bit 10 */
|
2017-12-11 07:14:42 -08:00
|
|
|
|
bool useSeparateVeForIdle : 1;
|
2017-03-27 19:19:58 -07:00
|
|
|
|
/**
|
|
|
|
|
* enable trigger_details
|
2017-11-19 09:07:07 -08:00
|
|
|
|
offset 1484 bit 11 */
|
2017-03-27 19:19:58 -07:00
|
|
|
|
bool isPrintTriggerSynchDetails : 1;
|
|
|
|
|
/**
|
|
|
|
|
* 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
|
2017-11-19 09:07:07 -08:00
|
|
|
|
offset 1484 bit 12 */
|
2017-03-27 19:19:58 -07:00
|
|
|
|
bool isManualSpinningMode : 1;
|
|
|
|
|
/**
|
|
|
|
|
* This is needed if batched injection and individual injector wiring
|
|
|
|
|
* enable two_wire_batch_injection
|
2017-11-19 09:07:07 -08:00
|
|
|
|
offset 1484 bit 13 */
|
2017-03-27 19:19:58 -07:00
|
|
|
|
bool twoWireBatchInjection : 1;
|
|
|
|
|
/**
|
|
|
|
|
* VR sensors are only precise on rising front
|
|
|
|
|
* enable trigger_only_front
|
2017-11-19 09:07:07 -08:00
|
|
|
|
offset 1484 bit 14 */
|
2017-03-27 19:19:58 -07:00
|
|
|
|
bool useOnlyRisingEdgeForTrigger : 1;
|
|
|
|
|
/**
|
|
|
|
|
* This is needed if batched igniton (waster spark) and individual coil wiring
|
2017-11-19 09:07:07 -08:00
|
|
|
|
offset 1484 bit 15 */
|
2017-03-27 19:19:58 -07:00
|
|
|
|
bool twoWireBatchIgnition : 1;
|
2018-01-02 18:25:40 -08:00
|
|
|
|
/**
|
|
|
|
|
offset 1484 bit 16 */
|
|
|
|
|
bool useFixedBaroCorrFromMap : 1;
|
|
|
|
|
/**
|
|
|
|
|
offset 1484 bit 17 */
|
2018-02-02 05:18:00 -08:00
|
|
|
|
bool useSeparateAdvanceForCranking : 1;
|
2018-01-02 18:25:40 -08:00
|
|
|
|
/**
|
|
|
|
|
offset 1484 bit 18 */
|
2018-02-02 05:18:00 -08:00
|
|
|
|
bool useAdvanceCorrectionsForCranking : 1;
|
2018-01-02 18:25:40 -08:00
|
|
|
|
/**
|
|
|
|
|
offset 1484 bit 19 */
|
|
|
|
|
bool unused_1484_bit_19 : 1;
|
|
|
|
|
/**
|
|
|
|
|
offset 1484 bit 20 */
|
|
|
|
|
bool unused_1484_bit_20 : 1;
|
|
|
|
|
/**
|
|
|
|
|
offset 1484 bit 21 */
|
|
|
|
|
bool unused_1484_bit_21 : 1;
|
2017-03-27 19:19:58 -07:00
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 1488
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
uint32_t engineChartSize;
|
|
|
|
|
/**
|
2018-01-03 04:59:59 -08:00
|
|
|
|
* Relative to the target idle RPM
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 1492
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
2017-12-26 21:26:40 -08:00
|
|
|
|
int16_t idlePidRpmUpperLimit;
|
|
|
|
|
/**
|
2018-01-03 04:59:59 -08:00
|
|
|
|
* Prime injection pulse falloff temperature threshold, in Celsuis
|
2017-12-26 21:26:40 -08:00
|
|
|
|
* offset 1494
|
|
|
|
|
*/
|
2018-01-03 04:59:59 -08:00
|
|
|
|
int16_t primeInjFalloffTemperature;
|
2017-03-27 19:19:58 -07:00
|
|
|
|
/**
|
|
|
|
|
* A/C button input handled as analog input
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 1496
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
adc_channel_e acSwitchAdc;
|
|
|
|
|
/**
|
|
|
|
|
* At what trigger index should some ignition-related math be executed? This is a performance trick to reduce load on synchronization trigger callback.
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 1500
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
int ignMathCalculateAtIndex;
|
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 1504
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
int16_t acCutoffLowRpm;
|
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 1506
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
int16_t acCutoffHighRpm;
|
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 1508
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
int16_t acIdleRpmBump;
|
|
|
|
|
/**
|
|
|
|
|
* set warningPeriod X
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 1510
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
int16_t warningPeriod;
|
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 1512
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
adc_channel_e vRefAdcChannel;
|
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 1516
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
float knockDetectionWindowStart;
|
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 1520
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
float knockDetectionWindowEnd;
|
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 1524
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
float idleStepperReactionTime;
|
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 1528
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
float knockVThreshold;
|
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 1532
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
2017-06-25 23:14:31 -07:00
|
|
|
|
pin_input_mode_e fsioInputModes[FSIO_COMMAND_COUNT];
|
2017-03-27 19:19:58 -07:00
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 1596
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
adc_channel_e externalKnockSenseAdc;
|
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 1600
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
2015-07-10 06:01:56 -07:00
|
|
|
|
int unsed2342342[3];
|
2017-03-27 19:19:58 -07:00
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 1612
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
int idleStepperTotalSteps;
|
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 1616
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
brain_pin_e stepperEnablePin;
|
|
|
|
|
/**
|
2017-05-12 13:28:56 -07:00
|
|
|
|
* TODO: finish this #413
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 1620
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
float noAccelAfterHardLimitPeriodSecs;
|
|
|
|
|
/**
|
|
|
|
|
* At what trigger index should some MAP-related math be executed? This is a performance trick to reduce load on synchronization trigger callback.
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 1624
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
int mapAveragingSchedulingAtIndex;
|
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 1628
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
2015-07-10 06:01:56 -07:00
|
|
|
|
float baroCorrPressureBins[BARO_CORR_SIZE];
|
2017-03-27 19:19:58 -07:00
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 1644
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
2015-07-10 06:01:56 -07:00
|
|
|
|
float baroCorrRpmBins[BARO_CORR_SIZE];
|
2017-03-27 19:19:58 -07:00
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 1660
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
baro_corr_table_t baroCorrTable;
|
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 1724
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
pin_mode_e spi2SckMode;
|
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 1728
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
pin_mode_e spi2MosiMode;
|
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 1732
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
pin_mode_e spi2MisoMode;
|
|
|
|
|
/**
|
|
|
|
|
* Cranking fuel correction coefficient based on TPS
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 1736
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
2015-08-18 11:03:02 -07:00
|
|
|
|
float crankingTpsCoef[CRANKING_CURVE_SIZE];
|
2017-03-27 19:19:58 -07:00
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 1768
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
2015-08-18 11:03:02 -07:00
|
|
|
|
float crankingTpsBins[CRANKING_CURVE_SIZE];
|
2017-03-27 19:19:58 -07:00
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 1800
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
float tachPulseDuractionMs;
|
|
|
|
|
/**
|
|
|
|
|
* Trigger cycle index at which we start tach pulse (performance consideration)
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 1804
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
int tachPulseTriggerIndex;
|
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 1808
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
float suckedOffCoef;
|
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 1812
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
2017-05-28 19:32:32 -07:00
|
|
|
|
pid_s alternatorControl;
|
2017-03-27 19:19:58 -07:00
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 1832
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
2017-05-28 19:32:32 -07:00
|
|
|
|
pid_s etb;
|
2017-03-27 19:19:58 -07:00
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 1852
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
2017-05-28 19:32:32 -07:00
|
|
|
|
pid_s warmupAfrPid;
|
2017-03-27 19:19:58 -07:00
|
|
|
|
/**
|
|
|
|
|
* kPa value which is too low to be true
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 1872
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
float mapErrorDetectionTooLow;
|
|
|
|
|
/**
|
|
|
|
|
* kPa value which is too high to be true
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 1876
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
float mapErrorDetectionTooHigh;
|
|
|
|
|
/**
|
|
|
|
|
* RPMs prior to step1rpm point where ignition advance is retarded
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 1880
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
int step1RpmWindow;
|
|
|
|
|
/**
|
2018-01-07 09:11:49 -08:00
|
|
|
|
* See cltIdleRpmBins
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 1884
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
pid_s idleRpmPid;
|
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 1904
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
2017-05-28 19:32:32 -07:00
|
|
|
|
float addedToWallCoef;
|
2017-03-27 19:19:58 -07:00
|
|
|
|
/**
|
|
|
|
|
* blue LED on discovery by default
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 1908
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
brain_pin_e communicationPin;
|
|
|
|
|
/**
|
|
|
|
|
* green LED on discovery by default
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 1912
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
brain_pin_e runningPin;
|
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 1916
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
brain_pin_e binarySerialTxPin;
|
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 1920
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
brain_pin_e binarySerialRxPin;
|
|
|
|
|
/**
|
|
|
|
|
* todo: finish pin migration from hard-coded to configurable?
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 1924
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
brain_pin_e consoleSerialTxPin;
|
|
|
|
|
/**
|
|
|
|
|
* todo: finish pin migration from hard-coded to configurable?
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 1928
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
brain_pin_e consoleSerialRxPin;
|
|
|
|
|
/**
|
|
|
|
|
* Knock sensor output knock detection threshold depending on current RPM
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 1932
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
2016-01-01 15:01:46 -08:00
|
|
|
|
float knockNoise[ENGINE_NOISE_CURVE_SIZE];
|
2017-03-27 19:19:58 -07:00
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 1964
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
2016-01-01 15:01:46 -08:00
|
|
|
|
float knockNoiseRpmBins[ENGINE_NOISE_CURVE_SIZE];
|
2017-03-27 19:19:58 -07:00
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 1996
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
2017-05-29 19:35:24 -07:00
|
|
|
|
float throttlePedalUpVoltage;
|
|
|
|
|
/**
|
|
|
|
|
* Pedal in the floor
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 2000
|
2017-05-29 19:35:24 -07:00
|
|
|
|
*/
|
|
|
|
|
float throttlePedalWOTVoltage;
|
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 2004
|
2017-05-29 19:35:24 -07:00
|
|
|
|
*/
|
2017-06-13 07:40:16 -07:00
|
|
|
|
pin_output_mode_e stepperDirectionPinMode;
|
|
|
|
|
/**
|
2018-01-21 09:19:36 -08:00
|
|
|
|
* on ECU start turn fuel pump on to build fuel pressure
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 2008
|
2017-06-13 07:40:16 -07:00
|
|
|
|
*/
|
2017-06-24 22:35:46 -07:00
|
|
|
|
int16_t startUpFuelPumpDuration;
|
|
|
|
|
/**
|
2017-07-15 12:24:06 -07:00
|
|
|
|
* If RPM is close enough let's leave IAC alone
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 2010
|
2017-06-24 22:35:46 -07:00
|
|
|
|
*/
|
2017-12-26 21:26:40 -08:00
|
|
|
|
int16_t idlePidRpmDeadZone;
|
2017-03-27 19:19:58 -07:00
|
|
|
|
/**
|
|
|
|
|
* CLT-based target RPM for automatic idle controller
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 2012
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
2015-11-18 18:02:51 -08:00
|
|
|
|
float cltIdleRpmBins[CLT_CURVE_SIZE];
|
2017-03-27 19:19:58 -07:00
|
|
|
|
/**
|
2018-01-07 09:11:49 -08:00
|
|
|
|
* See idleRpmPid
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 2076
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
2015-11-18 16:01:34 -08:00
|
|
|
|
float cltIdleRpm[CLT_CURVE_SIZE];
|
2017-03-27 19:19:58 -07:00
|
|
|
|
/**
|
2017-06-11 12:36:23 -07:00
|
|
|
|
* set targetvbatt VOLTS
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 2140
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
float targetVBatt;
|
|
|
|
|
/**
|
|
|
|
|
* Turn off alternator output above specified TPS
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 2144
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
float alternatorOffAboveTps;
|
|
|
|
|
/**
|
2018-03-04 20:21:43 -08:00
|
|
|
|
* Prime pulse duration in ms
|
|
|
|
|
* set cranking_priming_pulse X
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 2148
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
2017-07-15 12:36:49 -07:00
|
|
|
|
float startOfCrankingPrimingPulse;
|
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 2152
|
2017-07-15 12:36:49 -07:00
|
|
|
|
*/
|
2017-07-31 12:35:12 -07:00
|
|
|
|
int16_t afterCrankingIACtaperDuration;
|
|
|
|
|
/**
|
2017-08-12 09:05:49 -07:00
|
|
|
|
* Extra IAC, in percent between 0 and 100, tapered between zero and idle deactivation TPS value
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 2154
|
2017-07-31 12:35:12 -07:00
|
|
|
|
*/
|
2017-08-12 09:05:49 -07:00
|
|
|
|
int16_t iacByTpsTaper;
|
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 2156
|
2017-08-12 09:05:49 -07:00
|
|
|
|
*/
|
2017-08-16 23:32:06 -07:00
|
|
|
|
brain_pin_e LIS302DLCsPin;
|
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 2160
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
int tpsAccelLength;
|
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 2164
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
float tpsAccelEnrichmentThreshold;
|
|
|
|
|
/**
|
|
|
|
|
* set vvt_offset X
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 2168
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
float vvtOffset;
|
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 2172
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
int engineLoadAccelLength;
|
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 2176
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
float engineLoadDecelEnleanmentThreshold;
|
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 2180
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
float engineLoadDecelEnleanmentMultiplier;
|
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 2184
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
float engineLoadAccelEnrichmentThreshold;
|
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 2188
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
float engineLoadAccelEnrichmentMultiplier;
|
|
|
|
|
/**
|
|
|
|
|
* RED led on Discovery by default. TODO: start using this property
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 2192
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
brain_pin_e fatalErrorPin;
|
|
|
|
|
/**
|
|
|
|
|
* TODO: start using this property
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 2196
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
brain_pin_e warninigPin;
|
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 2200
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
brain_pin_e configResetPin;
|
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 2204
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
uint32_t uartConsoleSerialSpeed;
|
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 2208
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
float tpsDecelEnleanmentThreshold;
|
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 2212
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
float tpsDecelEnleanmentMultiplier;
|
|
|
|
|
/**
|
|
|
|
|
* ExpAverage alpha coefficient
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 2216
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
float slowAdcAlpha;
|
|
|
|
|
/**
|
2017-06-07 20:12:04 -07:00
|
|
|
|
* set debug_mode X
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 2220
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
debug_mode_e debugMode;
|
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 2224
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
2017-11-19 08:05:57 -08:00
|
|
|
|
brain_pin_e auxValves[AUX_DIGITAL_VALVE_COUNT];
|
2017-03-27 19:19:58 -07:00
|
|
|
|
/**
|
|
|
|
|
* CLT-based target AFR for PID-based control
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 2232
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
2016-02-10 10:01:49 -08:00
|
|
|
|
float warmupTargetAfrBins[WARMUP_TARGET_AFR_SIZE];
|
2017-03-27 19:19:58 -07:00
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 2248
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
2016-02-10 10:01:49 -08:00
|
|
|
|
float warmupTargetAfr[WARMUP_TARGET_AFR_SIZE];
|
2017-03-27 19:19:58 -07:00
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 2264
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
float warmupAfrThreshold;
|
|
|
|
|
/**
|
|
|
|
|
* kPa value at which we need to cut fuel and spark, 0 if not enabled
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 2268
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
float boostCutPressure;
|
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 2272
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
2016-03-12 07:01:55 -08:00
|
|
|
|
float mapAccelTaperBins[MAP_ACCEL_TAPER];
|
2017-03-27 19:19:58 -07:00
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 2304
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
2016-03-12 07:01:55 -08:00
|
|
|
|
float mapAccelTaperMult[MAP_ACCEL_TAPER];
|
2017-03-27 19:19:58 -07:00
|
|
|
|
/**
|
2017-08-28 18:00:36 -07:00
|
|
|
|
* This implementation makes a pulse every time one of the coils is charged, using coil dwell for pulse width. See also tachOutputPin
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 2336
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
brain_pin_e dizzySparkOutputPin;
|
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 2340
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
pin_output_mode_e dizzySparkOutputPinMode;
|
|
|
|
|
/**
|
2017-08-06 16:43:01 -07:00
|
|
|
|
* todo: rename to fsioAnalogInputs
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 2344
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
2017-08-06 16:43:01 -07:00
|
|
|
|
adc_channel_e fsioAdc[FSIO_ANALOG_INPUT_COUNT];
|
2017-03-27 19:19:58 -07:00
|
|
|
|
/**
|
|
|
|
|
* Fixed timing, useful for TDC testing
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 2360
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
float fixedTiming;
|
|
|
|
|
/**
|
|
|
|
|
* MAP voltage for low point
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 2364
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
float mapLowValueVoltage;
|
|
|
|
|
/**
|
|
|
|
|
* MAP voltage for low point
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 2368
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
float mapHighValueVoltage;
|
|
|
|
|
/**
|
|
|
|
|
* EGO value correction
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 2372
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
float egoValueShift;
|
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 2376
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
brain_input_pin_e camInput;
|
|
|
|
|
/**
|
2018-01-21 09:19:36 -08:00
|
|
|
|
* IAC position during cranking
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 2380
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
2017-05-16 19:13:40 -07:00
|
|
|
|
int crankingIACposition;
|
2017-03-27 19:19:58 -07:00
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 2384
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
float tChargeMinRpmMinTps;
|
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 2388
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
float tChargeMinRpmMaxTps;
|
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 2392
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
float tChargeMaxRpmMinTps;
|
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 2396
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
float tChargeMaxRpmMaxTps;
|
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 2400
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
2016-07-02 11:02:35 -07:00
|
|
|
|
brain_pin_e auxPidPins[AUX_PID_COUNT];
|
2017-03-27 19:19:58 -07:00
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 2416
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
2016-07-02 11:02:35 -07:00
|
|
|
|
fsio_pwm_freq_t auxPidFrequency[AUX_PID_COUNT];
|
2017-03-27 19:19:58 -07:00
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 2424
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
int alternatorPwmFrequency;
|
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 2428
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
mass_storage_e storageMode;
|
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 2432
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
spi_device_e cj125SpiDevice;
|
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 2436
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
pin_output_mode_e cj125CsPinMode;
|
|
|
|
|
/**
|
2017-10-29 17:29:02 -07:00
|
|
|
|
* Narrow Band WBO Approximation
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 2440
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
2017-10-29 17:29:02 -07:00
|
|
|
|
float narrowToWideOxygenBins[NARROW_BAND_WIDE_BAND_CONVERSION_SIZE];
|
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 2472
|
2017-10-29 17:29:02 -07:00
|
|
|
|
*/
|
|
|
|
|
float narrowToWideOxygen[NARROW_BAND_WIDE_BAND_CONVERSION_SIZE];
|
2017-03-27 19:19:58 -07:00
|
|
|
|
/**
|
|
|
|
|
* set vvt_mode X
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 2504
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
vvt_mode_e vvtMode;
|
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 2508
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
bi_quard_s biQuad;
|
|
|
|
|
/**
|
|
|
|
|
* CLT-based timing correction
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 2528
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
2016-10-11 19:01:50 -07:00
|
|
|
|
float cltTimingBins[CLT_TIMING_CURVE_SIZE];
|
2017-03-27 19:19:58 -07:00
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 2560
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
2016-10-11 19:01:50 -07:00
|
|
|
|
float cltTimingExtra[CLT_TIMING_CURVE_SIZE];
|
2017-03-27 19:19:58 -07:00
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 2592
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
int nbVvtIndex;
|
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 2596
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
float autoTuneCltThreshold;
|
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 2600
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
float autoTuneTpsRocThreshold;
|
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 2604
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
float autoTuneTpsQuietPeriod;
|
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 2608
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
float postCrankingTargetClt;
|
|
|
|
|
/**
|
2017-12-31 17:13:53 -08:00
|
|
|
|
* Fuel multiplier taper, see also postCrankingDurationSec
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 2612
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
float postCrankingFactor;
|
|
|
|
|
/**
|
2017-12-31 17:13:53 -08:00
|
|
|
|
* See also postCrankingFactor
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 2616
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
float postCrankingDurationSec;
|
|
|
|
|
/**
|
2017-08-05 13:55:28 -07:00
|
|
|
|
* todo: finish implementation #332
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 2620
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
ThermistorConf auxTempSensor1;
|
|
|
|
|
/**
|
2017-08-05 13:55:28 -07:00
|
|
|
|
* todo: finish implementation #332
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 2652
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
ThermistorConf auxTempSensor2;
|
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 2684
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
int16_t fuelClosedLoopCltThreshold;
|
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 2686
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
int16_t fuelClosedLoopTpsThreshold;
|
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 2688
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
int16_t fuelClosedLoopRpmThreshold;
|
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 2690
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
int16_t etbFreq;
|
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 2692
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
pid_s fuelClosedLoopPid;
|
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 2712
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
float fuelClosedLoopAfrHighThreshold;
|
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 2716
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
pin_mode_e stepperEnablePinMode;
|
|
|
|
|
/**
|
|
|
|
|
* lampda input
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 2720
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
adc_channel_e cj125ua;
|
|
|
|
|
/**
|
|
|
|
|
* heater input
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 2724
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
adc_channel_e cj125ur;
|
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 2728
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
2017-03-11 17:15:27 -08:00
|
|
|
|
cfg_float_t_1f timing_offset_cylinder[IGNITION_PIN_COUNT];
|
2017-03-27 19:19:58 -07:00
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 2776
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
2017-05-28 19:32:32 -07:00
|
|
|
|
pin_input_mode_e brakePedalPinMode;
|
2017-04-10 11:34:09 -07:00
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 2780
|
2017-04-10 11:34:09 -07:00
|
|
|
|
*/
|
2017-05-28 19:32:32 -07:00
|
|
|
|
float idlePidActivationTime;
|
2017-04-10 11:34:09 -07:00
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 2784
|
2017-04-10 11:34:09 -07:00
|
|
|
|
*/
|
2017-04-11 16:16:48 -07:00
|
|
|
|
spi_device_e sdCardSpiDevice;
|
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 2788
|
2017-04-11 16:16:48 -07:00
|
|
|
|
*/
|
2017-05-09 15:58:25 -07:00
|
|
|
|
pin_mode_e spi3SckMode;
|
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 2792
|
2017-05-09 15:58:25 -07:00
|
|
|
|
*/
|
|
|
|
|
pin_mode_e spi3MosiMode;
|
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 2796
|
2017-05-09 15:58:25 -07:00
|
|
|
|
*/
|
|
|
|
|
pin_mode_e spi3MisoMode;
|
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 2800
|
2017-05-09 15:58:25 -07:00
|
|
|
|
*/
|
2017-05-09 16:05:47 -07:00
|
|
|
|
pin_mode_e spi1SckMode;
|
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 2804
|
2017-05-09 16:05:47 -07:00
|
|
|
|
*/
|
|
|
|
|
pin_mode_e spi1MosiMode;
|
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 2808
|
2017-05-09 16:05:47 -07:00
|
|
|
|
*/
|
|
|
|
|
pin_mode_e spi1MisoMode;
|
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 2812
|
2017-05-09 16:05:47 -07:00
|
|
|
|
*/
|
2017-05-15 01:53:04 -07:00
|
|
|
|
brain_pin_e brakePedalPin;
|
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 2816
|
2017-05-15 01:53:04 -07:00
|
|
|
|
*/
|
2017-05-28 19:32:32 -07:00
|
|
|
|
pid_s auxPid[AUX_PID_COUNT];
|
2017-05-27 20:22:24 -07:00
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 2896
|
2017-05-27 20:22:24 -07:00
|
|
|
|
*/
|
2017-11-15 11:30:13 -08:00
|
|
|
|
oil_pressure_config_s oilPressure;
|
|
|
|
|
/**
|
2017-11-19 09:07:07 -08:00
|
|
|
|
* offset 2916
|
2017-11-15 11:30:13 -08:00
|
|
|
|
*/
|
2017-11-19 12:24:36 -08:00
|
|
|
|
spi_device_e accelerometerSpiDevice;
|
|
|
|
|
/**
|
|
|
|
|
* offset 2920
|
|
|
|
|
*/
|
2017-11-22 23:50:04 -08:00
|
|
|
|
float fsioCurve1Bins[FSIO_CURVE_16];
|
|
|
|
|
/**
|
|
|
|
|
* offset 2984
|
|
|
|
|
*/
|
|
|
|
|
float fsioCurve1[FSIO_CURVE_16];
|
|
|
|
|
/**
|
|
|
|
|
* offset 3048
|
|
|
|
|
*/
|
|
|
|
|
float fsioCurve2Bins[FSIO_CURVE_16];
|
|
|
|
|
/**
|
|
|
|
|
* offset 3112
|
|
|
|
|
*/
|
|
|
|
|
float fsioCurve2[FSIO_CURVE_16];
|
|
|
|
|
/**
|
|
|
|
|
* offset 3176
|
|
|
|
|
*/
|
|
|
|
|
float fsioCurve3Bins[FSIO_CURVE_8];
|
|
|
|
|
/**
|
|
|
|
|
* offset 3208
|
|
|
|
|
*/
|
|
|
|
|
float fsioCurve3[FSIO_CURVE_8];
|
|
|
|
|
/**
|
|
|
|
|
* offset 3240
|
|
|
|
|
*/
|
|
|
|
|
float fsioCurve4Bins[FSIO_CURVE_8];
|
|
|
|
|
/**
|
|
|
|
|
* offset 3272
|
|
|
|
|
*/
|
|
|
|
|
float fsioCurve4[FSIO_CURVE_8];
|
|
|
|
|
/**
|
|
|
|
|
* offset 3304
|
|
|
|
|
*/
|
2018-01-23 05:34:18 -08:00
|
|
|
|
brain_input_pin_e flexFuelSensor;
|
|
|
|
|
/**
|
|
|
|
|
* offset 3308
|
|
|
|
|
*/
|
2018-01-26 19:47:09 -08:00
|
|
|
|
brain_pin_e test557pin;
|
|
|
|
|
/**
|
2018-02-02 05:18:00 -08:00
|
|
|
|
* Optional timing advance table for Cranking (see useSeparateAdvanceForCranking)
|
2018-01-26 19:47:09 -08:00
|
|
|
|
* offset 3312
|
|
|
|
|
*/
|
2018-02-02 05:18:00 -08:00
|
|
|
|
float crankingAdvanceBins[CRANKING_ADVANCE_CURVE_SIZE];
|
|
|
|
|
/**
|
|
|
|
|
* Optional timing advance table for Cranking (see useSeparateAdvanceForCranking)
|
|
|
|
|
* offset 3328
|
|
|
|
|
*/
|
|
|
|
|
float crankingAdvance[CRANKING_ADVANCE_CURVE_SIZE];
|
|
|
|
|
/**
|
2018-02-25 17:51:34 -08:00
|
|
|
|
* todo: more comments
|
2018-02-02 05:18:00 -08:00
|
|
|
|
* offset 3344
|
|
|
|
|
*/
|
2018-02-25 17:51:34 -08:00
|
|
|
|
brain_pin_e servoOutputPins[SERVO_COUNT];
|
|
|
|
|
/**
|
|
|
|
|
* offset 3376
|
|
|
|
|
*/
|
2018-03-17 16:55:23 -07:00
|
|
|
|
int16_t coastingFuelCutRpmHigh;
|
|
|
|
|
/**
|
|
|
|
|
* offset 3378
|
|
|
|
|
*/
|
|
|
|
|
int16_t coastingFuelCutRpmLow;
|
|
|
|
|
/**
|
|
|
|
|
* percent between 0 and 100
|
|
|
|
|
* offset 3380
|
|
|
|
|
*/
|
|
|
|
|
int16_t coastingFuelCutTps;
|
|
|
|
|
/**
|
2018-03-22 05:13:17 -07:00
|
|
|
|
* Fuel cutoff is deactivated if CLT<threshold
|
2018-03-17 16:55:23 -07:00
|
|
|
|
* offset 3382
|
|
|
|
|
*/
|
2018-03-22 05:13:17 -07:00
|
|
|
|
int16_t coastingFuelCutClt;
|
2018-03-17 16:55:23 -07:00
|
|
|
|
/**
|
|
|
|
|
* offset 3384
|
|
|
|
|
*/
|
|
|
|
|
int unusedEnd[774];
|
2017-12-11 07:14:42 -08:00
|
|
|
|
/** total size 6480*/
|
2017-03-24 10:41:36 -07:00
|
|
|
|
} engine_configuration_s;
|
|
|
|
|
|
|
|
|
|
typedef struct {
|
2017-03-27 19:19:58 -07:00
|
|
|
|
/**
|
|
|
|
|
* offset 0
|
|
|
|
|
*/
|
|
|
|
|
engine_configuration_s engineConfiguration;
|
2017-12-11 07:14:42 -08:00
|
|
|
|
/**
|
|
|
|
|
* CLT-based cranking position multiplier for simple manual idle controller
|
|
|
|
|
* offset 6480
|
|
|
|
|
*/
|
|
|
|
|
float cltCrankingCorrBins[CLT_CRANKING_CURVE_SIZE];
|
|
|
|
|
/**
|
|
|
|
|
* CLT-based cranking position multiplier for simple manual idle controller
|
|
|
|
|
* offset 6512
|
|
|
|
|
*/
|
2017-12-11 08:23:53 -08:00
|
|
|
|
float cltCrankingCorr[CLT_CRANKING_CURVE_SIZE];
|
2017-12-11 07:14:42 -08:00
|
|
|
|
/**
|
|
|
|
|
* Optional timing advance table for Idle (see useSeparateAdvanceForIdle)
|
|
|
|
|
* offset 6544
|
|
|
|
|
*/
|
|
|
|
|
float idleAdvanceBins[IDLE_ADVANCE_CURVE_SIZE];
|
|
|
|
|
/**
|
|
|
|
|
* Optional timing advance table for Idle (see useSeparateAdvanceForIdle)
|
|
|
|
|
* offset 6576
|
|
|
|
|
*/
|
2017-12-11 08:23:53 -08:00
|
|
|
|
float idleAdvance[IDLE_ADVANCE_CURVE_SIZE];
|
2017-12-11 07:14:42 -08:00
|
|
|
|
/**
|
|
|
|
|
* Optional VE table for Idle (see useSeparateVEForIdle)
|
|
|
|
|
* offset 6608
|
|
|
|
|
*/
|
|
|
|
|
float idleVeBins[IDLE_VE_CURVE_SIZE];
|
|
|
|
|
/**
|
|
|
|
|
* Optional VE table for Idle (see useSeparateVEForIdle)
|
|
|
|
|
* offset 6640
|
|
|
|
|
*/
|
|
|
|
|
float idleVe[IDLE_VE_CURVE_SIZE];
|
2017-03-27 19:19:58 -07:00
|
|
|
|
/**
|
2017-11-19 11:22:14 -08:00
|
|
|
|
* offset 6672
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
2017-06-25 23:23:26 -07:00
|
|
|
|
le_formula_t fsioFormulas[FSIO_COMMAND_COUNT];
|
2017-03-27 19:19:58 -07:00
|
|
|
|
/**
|
2017-11-19 11:22:14 -08:00
|
|
|
|
* offset 9872
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
le_formula_t timingMultiplier;
|
|
|
|
|
/**
|
2017-11-19 11:22:14 -08:00
|
|
|
|
* offset 10072
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
le_formula_t timingAdditive;
|
|
|
|
|
/**
|
2017-11-19 11:22:14 -08:00
|
|
|
|
* offset 10272
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
2015-07-10 06:01:56 -07:00
|
|
|
|
float cltFuelCorrBins[CLT_CURVE_SIZE];
|
2017-03-27 19:19:58 -07:00
|
|
|
|
/**
|
2017-11-19 11:22:14 -08:00
|
|
|
|
* offset 10336
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
2015-07-10 06:01:56 -07:00
|
|
|
|
float cltFuelCorr[CLT_CURVE_SIZE];
|
2017-03-27 19:19:58 -07:00
|
|
|
|
/**
|
2017-11-19 11:22:14 -08:00
|
|
|
|
* offset 10400
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
2015-07-10 06:01:56 -07:00
|
|
|
|
float iatFuelCorrBins[IAT_CURVE_SIZE];
|
2017-03-27 19:19:58 -07:00
|
|
|
|
/**
|
2017-11-19 11:22:14 -08:00
|
|
|
|
* offset 10464
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
2015-07-10 06:01:56 -07:00
|
|
|
|
float iatFuelCorr[IAT_CURVE_SIZE];
|
2017-03-27 19:19:58 -07:00
|
|
|
|
/**
|
2017-11-19 11:22:14 -08:00
|
|
|
|
* offset 10528
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
2015-07-10 06:01:56 -07:00
|
|
|
|
float crankingFuelCoef[CRANKING_CURVE_SIZE];
|
2017-03-27 19:19:58 -07:00
|
|
|
|
/**
|
2017-11-19 11:22:14 -08:00
|
|
|
|
* offset 10560
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
2015-07-10 06:01:56 -07:00
|
|
|
|
float crankingFuelBins[CRANKING_CURVE_SIZE];
|
2017-03-27 19:19:58 -07:00
|
|
|
|
/**
|
2017-11-19 11:22:14 -08:00
|
|
|
|
* offset 10592
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
2015-07-10 06:01:56 -07:00
|
|
|
|
float crankingCycleCoef[CRANKING_CURVE_SIZE];
|
2017-03-27 19:19:58 -07:00
|
|
|
|
/**
|
2017-11-19 11:22:14 -08:00
|
|
|
|
* offset 10624
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
2015-07-10 06:01:56 -07:00
|
|
|
|
float crankingCycleBins[CRANKING_CURVE_SIZE];
|
2017-03-27 19:19:58 -07:00
|
|
|
|
/**
|
2017-11-24 12:40:52 -08:00
|
|
|
|
* CLT-based idle position multiplier for simple manual idle controller, or target RPM multiplier for PID-based idle
|
2017-11-19 11:22:14 -08:00
|
|
|
|
* offset 10656
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
2015-07-10 06:01:56 -07:00
|
|
|
|
float cltIdleCorrBins[CLT_CURVE_SIZE];
|
2017-03-27 19:19:58 -07:00
|
|
|
|
/**
|
2017-11-24 12:40:52 -08:00
|
|
|
|
* CLT-based idle position multiplier for simple manual idle controller, or target RPM multiplier for PID-based idle
|
2017-11-19 11:22:14 -08:00
|
|
|
|
* offset 10720
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
2015-07-10 06:01:56 -07:00
|
|
|
|
float cltIdleCorr[CLT_CURVE_SIZE];
|
2017-03-27 19:19:58 -07:00
|
|
|
|
/**
|
|
|
|
|
* kg/hour value.
|
|
|
|
|
* By the way 2.081989116 kg/h = 1 ft<EFBFBD>/m
|
2017-11-19 11:22:14 -08:00
|
|
|
|
* offset 10784
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
2015-07-10 06:01:56 -07:00
|
|
|
|
float mafDecoding[MAF_DECODING_COUNT];
|
2017-03-27 19:19:58 -07:00
|
|
|
|
/**
|
2017-11-19 11:22:14 -08:00
|
|
|
|
* offset 11808
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
2015-07-10 06:01:56 -07:00
|
|
|
|
float mafDecodingBins[MAF_DECODING_COUNT];
|
2017-03-27 19:19:58 -07:00
|
|
|
|
/**
|
2017-11-19 11:22:14 -08:00
|
|
|
|
* offset 12832
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
angle_table_t ignitionIatCorrTable;
|
|
|
|
|
/**
|
2017-11-19 11:22:14 -08:00
|
|
|
|
* offset 13856
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
2015-07-10 06:01:56 -07:00
|
|
|
|
float ignitionIatCorrLoadBins[IGN_LOAD_COUNT];
|
2017-03-27 19:19:58 -07:00
|
|
|
|
/**
|
2017-11-19 11:22:14 -08:00
|
|
|
|
* offset 13920
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
2015-07-10 06:01:56 -07:00
|
|
|
|
float ignitionIatCorrRpmBins[IGN_RPM_COUNT];
|
2017-03-27 19:19:58 -07:00
|
|
|
|
/**
|
2017-11-19 11:22:14 -08:00
|
|
|
|
* offset 13984
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
angle_table_t injectionPhase;
|
|
|
|
|
/**
|
2017-11-19 11:22:14 -08:00
|
|
|
|
* offset 15008
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
2015-07-10 06:01:56 -07:00
|
|
|
|
float injPhaseLoadBins[FUEL_LOAD_COUNT];
|
2017-03-27 19:19:58 -07:00
|
|
|
|
/**
|
2017-11-19 11:22:14 -08:00
|
|
|
|
* offset 15072
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
2015-07-10 06:01:56 -07:00
|
|
|
|
float injPhaseRpmBins[FUEL_RPM_COUNT];
|
2017-03-27 19:19:58 -07:00
|
|
|
|
/**
|
2017-11-19 11:22:14 -08:00
|
|
|
|
* offset 15136
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
fuel_table_t fuelTable;
|
|
|
|
|
/**
|
2017-11-19 11:22:14 -08:00
|
|
|
|
* offset 16160
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
2015-07-10 06:01:56 -07:00
|
|
|
|
float fuelLoadBins[FUEL_LOAD_COUNT];
|
2017-03-27 19:19:58 -07:00
|
|
|
|
/**
|
|
|
|
|
* RPM is float and not integer in order to use unified methods for interpolation
|
2017-11-19 11:22:14 -08:00
|
|
|
|
* offset 16224
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
2015-07-10 06:01:56 -07:00
|
|
|
|
float fuelRpmBins[FUEL_RPM_COUNT];
|
2017-03-27 19:19:58 -07:00
|
|
|
|
/**
|
2017-11-19 11:22:14 -08:00
|
|
|
|
* offset 16288
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
ignition_table_t ignitionTable;
|
|
|
|
|
/**
|
2017-11-19 11:22:14 -08:00
|
|
|
|
* offset 17312
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
2015-07-10 06:01:56 -07:00
|
|
|
|
float ignitionLoadBins[IGN_LOAD_COUNT];
|
2017-03-27 19:19:58 -07:00
|
|
|
|
/**
|
2017-11-19 11:22:14 -08:00
|
|
|
|
* offset 17376
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
2015-07-10 06:01:56 -07:00
|
|
|
|
float ignitionRpmBins[IGN_RPM_COUNT];
|
2017-03-27 19:19:58 -07:00
|
|
|
|
/**
|
2017-11-19 11:22:14 -08:00
|
|
|
|
* offset 17440
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
ve_table_t veTable;
|
|
|
|
|
/**
|
2017-11-19 11:22:14 -08:00
|
|
|
|
* offset 18464
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
2015-07-10 06:01:56 -07:00
|
|
|
|
float veLoadBins[FUEL_LOAD_COUNT];
|
2017-03-27 19:19:58 -07:00
|
|
|
|
/**
|
2017-11-19 11:22:14 -08:00
|
|
|
|
* offset 18528
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
2015-07-10 06:01:56 -07:00
|
|
|
|
float veRpmBins[FUEL_RPM_COUNT];
|
2017-03-27 19:19:58 -07:00
|
|
|
|
/**
|
2017-11-19 11:22:14 -08:00
|
|
|
|
* offset 18592
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
afr_table_t afrTable;
|
|
|
|
|
/**
|
2017-11-19 11:22:14 -08:00
|
|
|
|
* offset 18848
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
2015-07-10 06:01:56 -07:00
|
|
|
|
float afrLoadBins[FUEL_LOAD_COUNT];
|
2017-03-27 19:19:58 -07:00
|
|
|
|
/**
|
2017-11-19 11:22:14 -08:00
|
|
|
|
* offset 18912
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
2015-07-10 06:01:56 -07:00
|
|
|
|
float afrRpmBins[FUEL_RPM_COUNT];
|
2017-03-27 19:19:58 -07:00
|
|
|
|
/**
|
2017-11-19 11:22:14 -08:00
|
|
|
|
* offset 18976
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
tps_tps_table_t tpsTpsAccelTable;
|
|
|
|
|
/**
|
2017-11-19 11:22:14 -08:00
|
|
|
|
* offset 19232
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
2016-03-08 20:01:53 -08:00
|
|
|
|
float tpsTpsAccelFromRpmBins[TPS_TPS_ACCEL_TABLE];
|
2017-03-27 19:19:58 -07:00
|
|
|
|
/**
|
|
|
|
|
* RPM is float and not integer in order to use unified methods for interpolation
|
2017-11-19 11:22:14 -08:00
|
|
|
|
* offset 19264
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
2016-03-08 20:01:53 -08:00
|
|
|
|
float tpsTpsAccelToRpmBins[TPS_TPS_ACCEL_TABLE];
|
2017-03-27 19:19:58 -07:00
|
|
|
|
/**
|
2017-11-19 11:22:14 -08:00
|
|
|
|
* offset 19296
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
fsio_table_8x8_f32t fsioTable1;
|
|
|
|
|
/**
|
2017-11-19 11:22:14 -08:00
|
|
|
|
* offset 19552
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
2016-03-03 20:01:39 -08:00
|
|
|
|
float fsioTable1LoadBins[FSIO_TABLE_8];
|
2017-03-27 19:19:58 -07:00
|
|
|
|
/**
|
|
|
|
|
* RPM is float and not integer in order to use unified methods for interpolation
|
2017-11-19 11:22:14 -08:00
|
|
|
|
* offset 19584
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
2016-03-03 20:01:39 -08:00
|
|
|
|
float fsioTable1RpmBins[FSIO_TABLE_8];
|
2017-03-27 19:19:58 -07:00
|
|
|
|
/**
|
2017-11-19 11:22:14 -08:00
|
|
|
|
* offset 19616
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
fsio_table_8x8_u8t fsioTable2;
|
|
|
|
|
/**
|
2017-11-19 11:22:14 -08:00
|
|
|
|
* offset 19680
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
2016-03-03 20:01:39 -08:00
|
|
|
|
float fsioTable2LoadBins[FSIO_TABLE_8];
|
2017-03-27 19:19:58 -07:00
|
|
|
|
/**
|
|
|
|
|
* RPM is float and not integer in order to use unified methods for interpolation
|
2017-11-19 11:22:14 -08:00
|
|
|
|
* offset 19712
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
2016-03-03 20:01:39 -08:00
|
|
|
|
float fsioTable2RpmBins[FSIO_TABLE_8];
|
2017-03-27 19:19:58 -07:00
|
|
|
|
/**
|
2017-11-19 11:22:14 -08:00
|
|
|
|
* offset 19744
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
fsio_table_8x8_u8t fsioTable3;
|
|
|
|
|
/**
|
2017-11-19 11:22:14 -08:00
|
|
|
|
* offset 19808
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
2016-07-01 20:01:22 -07:00
|
|
|
|
float fsioTable3LoadBins[FSIO_TABLE_8];
|
2017-03-27 19:19:58 -07:00
|
|
|
|
/**
|
|
|
|
|
* RPM is float and not integer in order to use unified methods for interpolation
|
2017-11-19 11:22:14 -08:00
|
|
|
|
* offset 19840
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
2016-07-01 20:01:22 -07:00
|
|
|
|
float fsioTable3RpmBins[FSIO_TABLE_8];
|
2017-03-27 19:19:58 -07:00
|
|
|
|
/**
|
2017-11-19 11:22:14 -08:00
|
|
|
|
* offset 19872
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
|
|
|
|
fsio_table_8x8_u8t fsioTable4;
|
|
|
|
|
/**
|
2017-11-19 11:22:14 -08:00
|
|
|
|
* offset 19936
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
2016-07-01 20:01:22 -07:00
|
|
|
|
float fsioTable4LoadBins[FSIO_TABLE_8];
|
2017-03-27 19:19:58 -07:00
|
|
|
|
/**
|
|
|
|
|
* RPM is float and not integer in order to use unified methods for interpolation
|
2017-11-19 11:22:14 -08:00
|
|
|
|
* offset 19968
|
2017-03-27 19:19:58 -07:00
|
|
|
|
*/
|
2016-07-01 20:01:22 -07:00
|
|
|
|
float fsioTable4RpmBins[FSIO_TABLE_8];
|
2017-11-19 11:22:14 -08:00
|
|
|
|
/** total size 20000*/
|
2017-03-24 10:41:36 -07:00
|
|
|
|
} persistent_config_s;
|
|
|
|
|
|
2017-03-27 19:19:58 -07:00
|
|
|
|
#endif
|
|
|
|
|
// end
|
2018-03-22 05:13:17 -07:00
|
|
|
|
// this section was generated automatically by ConfigDefinition.jar based on rusefi_config.txt Thu Mar 22 08:12:47 EDT 2018
|