my first Lua
This commit is contained in:
parent
5aeac671c3
commit
b917394354
|
@ -449,10 +449,6 @@ static void configureInputs(void) {
|
|||
|
||||
addChannel("AUXF#1", engineConfiguration->auxFastSensor1_adcChannel, ADC_FAST);
|
||||
|
||||
for (int i = 0;i < LUA_ANALOG_INPUT_COUNT;i++) {
|
||||
addChannel("LUA", engineConfiguration->luaAnalogInputs[i], ADC_FAST);
|
||||
}
|
||||
|
||||
setAdcChannelOverrides();
|
||||
}
|
||||
|
||||
|
|
|
@ -75,6 +75,7 @@ struct_no_prefix engine_configuration_s
|
|||
! see 'blockingFactor' in rusefi.ini
|
||||
#define BLOCKING_FACTOR 256
|
||||
|
||||
#define AUX_ANALOG_INPUT_COUNT 4
|
||||
#define FSIO_ANALOG_INPUT_COUNT 4
|
||||
|
||||
#define LUA_PWM_COUNT 8
|
||||
|
@ -910,8 +911,8 @@ output_pin_e acFanPin;+Optional Radiator Fan used with A/C
|
|||
|
||||
|
||||
pin_output_mode_e[FSIO_COMMAND_COUNT iterate] gpioPinModes;
|
||||
uint8_t[2] unusedpinModesWhereHere;;"", 1, 0, 0, 255, 0
|
||||
adc_channel_e[LUA_ANALOG_INPUT_COUNT iterate] luaAnalogInputs;
|
||||
uint8_t[10] unusedpinModesWhereHere;;"", 1, 0, 0, 255, 0
|
||||
uint8_t[8] luaAnalogInputs;
|
||||
output_pin_e[FSIO_COMMAND_COUNT iterate] fsioOutputPins;todo: more comments
|
||||
uint8_t[10] unusedOutputWhereHere;;"", 1, 0, 0, 255, 0
|
||||
brain_pin_e[EGT_CHANNEL_COUNT iterate] max31855_cs;
|
||||
|
|
|
@ -1542,7 +1542,6 @@ menuDialog = main
|
|||
|
||||
subMenu = std_separator
|
||||
subMenu = luaOutputs, "Lua PWM Outputs"
|
||||
subMenu = luaAnalogInputs, "Lua Analog Inputs"
|
||||
|
||||
subMenu = std_separator
|
||||
subMenu = tcuControls, "Transmission Settings"
|
||||
|
@ -3326,16 +3325,6 @@ cmd_set_engine_type_default = "@@TS_IO_TEST_COMMAND_char@@\x00\x31\x00\x00"
|
|||
field = "output #6", luaOutputPins7
|
||||
field = "output #7", luaOutputPins8
|
||||
|
||||
dialog = luaAnalogInputs, "Lua Analog Inputs"
|
||||
field = "Input #0", luaAnalogInputs1
|
||||
field = "Input #1", luaAnalogInputs2
|
||||
field = "Input #2", luaAnalogInputs3
|
||||
field = "Input #3", luaAnalogInputs4
|
||||
field = "Input #4", luaAnalogInputs5
|
||||
field = "Input #5", luaAnalogInputs6
|
||||
field = "Input #6", luaAnalogInputs7
|
||||
field = "Input #7", luaAnalogInputs8
|
||||
|
||||
dialog = transmissionPanel
|
||||
field = "TCU Enabled" tcuEnabled
|
||||
|
||||
|
|
Loading…
Reference in New Issue