Skip to content

Commit

Permalink
Lua aux gauge #4672
Browse files Browse the repository at this point in the history
  • Loading branch information
rusefillc committed Oct 17, 2022
1 parent 5b53e78 commit 5df4a19
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion firmware/console/binary/output_channels.txt
Expand Up @@ -364,5 +364,6 @@ bit injectorState12

uint32_t outputRequestPeriod
float mapFast
uint8_t[150 iterate] unusedAtTheEnd;;"",1, 0, 0, 0, 0
float[LUA_GAUGE_COUNT iterate] luaGauges;;"value",1, 0, 0, 50000, 3
uint8_t[142 iterate] unusedAtTheEnd;;"",1, 0, 0, 0, 0
end_struct
3 changes: 3 additions & 0 deletions firmware/controllers/sensors/sensor_type.h
Expand Up @@ -94,6 +94,9 @@ enum class SensorType : unsigned char {
AuxAnalog7,
AuxAnalog8,

LuaGauge1,
LuaGauge2,

AuxLinear1,
AuxLinear2,

Expand Down
1 change: 1 addition & 0 deletions firmware/integration/rusefi_config.txt
Expand Up @@ -116,6 +116,7 @@ struct_no_prefix engine_configuration_s

#define LUA_PWM_COUNT 8
#define LUA_ANALOG_INPUT_COUNT 8
#define LUA_GAUGE_COUNT 2

! V engines or flat engines would have pairs of shafts with same trigger shape and target position
#define BANKS_COUNT 2
Expand Down

0 comments on commit 5df4a19

Please sign in to comment.