Annotations in C++ code to produce formulas in rusEfi console #807

This commit is contained in:
rusefi 2019-06-30 13:24:55 -04:00
parent b856256549
commit 2120e4827a
2 changed files with 5 additions and 0 deletions

View File

@ -80,6 +80,9 @@ float getTpsRateOfChange(void) {
percent_t getTpsValue(int adc DECLARE_ENGINE_PARAMETER_SUFFIX) { percent_t getTpsValue(int adc DECLARE_ENGINE_PARAMETER_SUFFIX) {
DISPLAY_TAG(TPS_SECTION); DISPLAY_TAG(TPS_SECTION);
DISPLAY_SENSOR(TPS)
DISPLAY_TEXT(EOL)
DISPLAY_TEXT(Analog_MCU_reads); DISPLAY_TEXT(Analog_MCU_reads);
engine->engineState.currentTpsAdc = adc; engine->engineState.currentTpsAdc = adc;

View File

@ -8,6 +8,8 @@ public class TpsMeta {
new ConfigRequest("throttlePedalPositionAdcChannel"), new ConfigRequest("throttlePedalPositionAdcChannel"),
}; };
public static final Request[] TPS_SECTION = new Request[]{ public static final Request[] TPS_SECTION = new Request[]{
new SensorRequest("TPS"),
new TextRequest("EOL"),
new TextRequest("Analog_MCU_reads"), new TextRequest("Analog_MCU_reads"),
new FieldRequest("tpsVoltageMCU"), new FieldRequest("tpsVoltageMCU"),
new TextRequest("Volts"), new TextRequest("Volts"),