TPS#2 calibration & fixing ETB in TS

This commit is contained in:
rusefi 2019-12-08 00:37:33 -05:00
parent 120e771b2c
commit 90492dd423
3 changed files with 19 additions and 9 deletions

View File

@ -328,7 +328,7 @@ bit issue_294_30;
bit issue_294_31;
int16_t tpsMin;Closed throttle. todo: extract these two fields into a structure\ntodo: we need two sets of TPS parameters - modern ETBs have two sensors\nSee also tps1_1AdcChannel\nset tps_min X;"ADC", 1, 0, 0, 1023, 0
int16_t tpsMin;Closed throttle. todo: extract these two fields into a structure\nSee also tps1_1AdcChannel\nset tps_min X;"ADC", 1, 0, 0, 1023, 0
int16_t tpsMax;Full throttle. tpsMax value as 10 bit ADC value. Not Voltage!\nSee also tps1_1AdcChannel\nset tps_max X;"ADC", 1, 0, 0, 1023, 0
int16_t tpsErrorDetectionTooLow;+TPS error detection, what TPS % value is unrealistically low;"%", 1, 0, -40, 200, 0
@ -859,7 +859,9 @@ custom pin_mode_e 1 bits, U08, @OFFSET@, [0:7], @@pin_mode_e_enum@@
float fuelRailPressure;; "kPa", 1, 0.0, 0, 1000.0, 2
float alternator_derivativeFilterLoss;; "x", 1, 0.0, -1000000, 1000000, 4
float alternator_antiwindupFreq;; "x", 1, 0.0, -1000000, 1000000, 4
uint8_t[8] unusedFormerWarmupAfrPid;
int16_t tps2Min;Closed throttle#2. todo: extract these two fields into a structure\nSee also tps2_1AdcChannel\nset tps2_min X;"ADC", 1, 0, 0, 1023, 0
int16_t tps2Max;Full throttle#2. tpsMax value as 10 bit ADC value. Not Voltage!\nSee also tps1_1AdcChannel\nset tps2_max X;"ADC", 1, 0, 0, 1023, 0
uint8_t[4] unusedFormerWarmupAfrPid;
! todo: mapErrorDetectionIdleTooLow? 30kPa is usually lowest on idle
float mapErrorDetectionTooLow;kPa value which is too low to be true;"kPa", 1, 0, -100.0, 100.0, 2

View File

@ -2500,12 +2500,14 @@ cmd_set_engine_type_default = "w\x00\x31\x00\x00"
field = "Two-wire mode", etb_use_two_wires, {throttlePedalPositionAdcChannel != 16}
field = "PWM Frequency", etbFreq, {throttlePedalPositionAdcChannel != 16}
field = etbCalibrationOnStart, etbCalibrationOnStart
field = "No1 Direction #1", etb1_directionPin1, {throttlePedalPositionAdcChannel != 16}
field = "No1 Direction #2", etb1_directionPin2, {throttlePedalPositionAdcChannel != 16}
field = "No1 Control #1", etb1_controlPin1, {throttlePedalPositionAdcChannel != 16 && etb_use_two_wires == 0}
field = "No2 Direction #1", etb2_directionPin1, {throttlePedalPositionAdcChannel != 16}
field = "No2 Direction #2", etb2_directionPin2, {throttlePedalPositionAdcChannel != 16}
field = "No1 Direction #1", etbIo1_directionPin1, {throttlePedalPositionAdcChannel != 16}
field = "No1 Direction #2", etbIo1_directionPin2, {throttlePedalPositionAdcChannel != 16}
field = "No1 Control #1", etbIo1_controlPin1, {throttlePedalPositionAdcChannel != 16 && etb_use_two_wires == 0}
field = "No2 Direction #1", etbIo2_directionPin1, {throttlePedalPositionAdcChannel != 16}
field = "No2 Direction #2", etbIo2_directionPin2, {throttlePedalPositionAdcChannel != 16}
field = "No2 Control #1", etb2_controlPin1, {throttlePedalPositionAdcChannel != 16 && etb_use_two_wires == 0}
field = "TPS#2 min", tps2Min, {etbIo2_directionPin1 != 0}
field = "TPS#2 max", tps2Max, {etbIo2_directionPin1 != 0}
panel = etbPidDialog
dialog = etbDialogRight

View File

@ -1,6 +1,6 @@
package com.rusefi.config.generated;
// this file was generated automatically by rusEfi tool ConfigDefinition.jar based on integration\rusefi_config.txt Wed Dec 04 00:37:59 EST 2019
// this file was generated automatically by rusEfi tool ConfigDefinition.jar based on integration\rusefi_config.txt Sun Dec 08 00:20:37 EST 2019
// by class com.rusefi.output.FileJavaFieldsConsumer
import com.rusefi.config.*;
@ -1187,6 +1187,8 @@ public class Fields {
public static final int tps1_1AdcChannel_offset_hex = 200;
public static final int tps2_1AdcChannel_offset = 515;
public static final int tps2_1AdcChannel_offset_hex = 203;
public static final int tps2Max_offset = 1770;
public static final int tps2Min_offset = 1768;
public static final int TPS_TPS_ACCEL_TABLE = 8;
public static final int tpsAccelEnrichmentThreshold_offset = 2048;
public static final int tpsAccelEnrichmentThreshold_offset_hex = 800;
@ -1267,7 +1269,7 @@ public class Fields {
public static final int unusedAtOldBoardConfigurationEnd_offset = 988;
public static final int unusedErrorPin_offset = 2040;
public static final int unusedFlexFuelSensor_offset = 3100;
public static final int unusedFormerWarmupAfrPid_offset = 1768;
public static final int unusedFormerWarmupAfrPid_offset = 1772;
public static final int unusedHereo_wires_offset = 76;
public static final int unusedOldWarmupAfr_offset = 744;
public static final int unusedSpiPadding4_offset = 2593;
@ -1876,6 +1878,8 @@ public class Fields {
public static final Field FUELRAILPRESSURE = Field.create("FUELRAILPRESSURE", 1756, FieldType.FLOAT);
public static final Field ALTERNATOR_DERIVATIVEFILTERLOSS = Field.create("ALTERNATOR_DERIVATIVEFILTERLOSS", 1760, FieldType.FLOAT);
public static final Field ALTERNATOR_ANTIWINDUPFREQ = Field.create("ALTERNATOR_ANTIWINDUPFREQ", 1764, FieldType.FLOAT);
public static final Field TPS2MIN = Field.create("TPS2MIN", 1768, FieldType.INT16);
public static final Field TPS2MAX = Field.create("TPS2MAX", 1770, FieldType.INT16);
public static final Field MAPERRORDETECTIONTOOLOW = Field.create("MAPERRORDETECTIONTOOLOW", 1776, FieldType.FLOAT);
public static final Field MAPERRORDETECTIONTOOHIGH = Field.create("MAPERRORDETECTIONTOOHIGH", 1780, FieldType.FLOAT);
public static final Field STEP1RPMWINDOW = Field.create("STEP1RPMWINDOW", 1784, FieldType.INT);
@ -2680,6 +2684,8 @@ public class Fields {
FUELRAILPRESSURE,
ALTERNATOR_DERIVATIVEFILTERLOSS,
ALTERNATOR_ANTIWINDUPFREQ,
TPS2MIN,
TPS2MAX,
MAPERRORDETECTIONTOOLOW,
MAPERRORDETECTIONTOOHIGH,
STEP1RPMWINDOW,