mirror of https://github.com/rusefi/rusefi.git
ETB overheats due to constant isTpsError true/false/true/false jitter: this seems obvious enough to disable ETB at least on non running engine #4832
better default for 16 bit fields
This commit is contained in:
parent
a6a111c649
commit
511a6be63c
|
@ -1349,7 +1349,7 @@ custom stepper_num_micro_steps_e 1 bits, U08, @OFFSET@, [0:3], @@stepper_num_mic
|
|||
|
||||
int8_t launchFuelAdderPercent
|
||||
int8_t[1 iterate] sorryUnused
|
||||
int16_t etbExpAverageLength
|
||||
uint16_t etbExpAverageLength
|
||||
float etbDutyThreshold
|
||||
|
||||
int16_t coastingFuelCutRpmHigh;This sets the RPM above which fuel cut is active.;"rpm", 1, 0, 0, 5000, 0
|
||||
|
|
Binary file not shown.
|
@ -267,6 +267,9 @@ public class ConfigField {
|
|||
return name;
|
||||
}
|
||||
|
||||
/**
|
||||
* @see com.rusefi.newparse.parsing.Type
|
||||
*/
|
||||
public String getType() {
|
||||
return type;
|
||||
}
|
||||
|
|
|
@ -4,6 +4,7 @@ import com.opensr5.ini.field.IniField;
|
|||
import com.rusefi.ConfigField;
|
||||
import com.rusefi.ReaderState;
|
||||
import com.rusefi.TypesHelper;
|
||||
import com.rusefi.newparse.parsing.Type;
|
||||
|
||||
import java.util.TreeSet;
|
||||
|
||||
|
@ -156,8 +157,11 @@ public class TsOutput {
|
|||
private String handleTsInfo(ConfigField configField, String tsInfo, int multiplierIndex) {
|
||||
if (tsInfo == null || tsInfo.trim().isEmpty()) {
|
||||
// default units and scale
|
||||
if (isConstantsSection)
|
||||
if (isConstantsSection) {
|
||||
if (configField.getType().equalsIgnoreCase(Type.U16.cType) || configField.getType().equalsIgnoreCase(Type.S16.cType))
|
||||
return quote("") + ", 1, 0, 0, 32000, 0";
|
||||
return quote("") + ", 1, 0, 0, 100, 0";
|
||||
}
|
||||
return quote("") + ", 1, 0";
|
||||
}
|
||||
try {
|
||||
|
|
|
@ -82,7 +82,7 @@ public class ConfigFieldParserTest {
|
|||
"custom ego_sensor_e 1 bits, S08, @OFFSET@, [0:1], @@ego_sensor_e_enum@@\n" +
|
||||
"ego_sensor_e afr_type1;\n" +
|
||||
"ego_sensor_e afr_type2;\n" +
|
||||
"int8_t int\n" +
|
||||
"int16_t int\n" +
|
||||
"end_struct\n";
|
||||
ReaderState state = new ReaderState();
|
||||
|
||||
|
@ -90,7 +90,7 @@ public class ConfigFieldParserTest {
|
|||
state.readBufferedReader(test, tsProjectConsumer);
|
||||
assertEquals("afr_type1 = bits, S08, 0, [0:1], \"BPSX\", \"Innovate\", \"14Point7\"\n" +
|
||||
"afr_type2 = bits, S08, 1, [0:1], \"BPSX\", \"Innovate\", \"14Point7\"\n" +
|
||||
"int = scalar, S08, 2, \"\", 1, 0, 0, 100, 0\n" +
|
||||
"int = scalar, S16, 2, \"\", 1, 0, 0, 32000, 0\n" +
|
||||
"; total TS size = 4\n", tsProjectConsumer.getContent());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue