fome-fw/firmware/integration/LiveData.yaml

152 lines
4.5 KiB
YAML
Raw Normal View History

2022-04-13 14:29:44 -07:00
#
2022-04-23 06:29:58 -07:00
# Here we facilitate monitoring by exposing model/transfer object of each individual controller. While some entries are only
# useful for monitoring the big idea is to bring calculation and monitoring as close to each other as possible by exposing
# many calculation fields directly
#
2022-04-13 14:29:44 -07:00
# here we have LiveData configuration file
2022-04-23 06:29:58 -07:00
# entry format, where 'key' is a unique ID:
2022-04-22 19:48:07 -07:00
# key: [NameOfJavaToGenerate.java, folder_where_key.txt_is located, (optional advanced options)]
# Naming convention: top level struct in .txt file should be called key_s
2022-04-22 19:54:53 -07:00
# at the moment new line would need to be added into StateDictionary.java manually todo: Add code generation of StateDictionary.java
2022-04-22 19:48:07 -07:00
#
# see gen_live_documentation.sh which is the main generation script
# todo: what is sequence of events in terms of 'live_data_e' code generation?
2022-04-13 14:29:44 -07:00
#
Usages:
# output_channels always goes first at least because it has protocol version at well-known offset
- name: output_channels
java: TsOutputs.java
folder: console/binary
prepend: integration/rusefi_config_shared.txt
constexpr: "engine->outputChannels"
- name: fuel_computer
folder: controllers/algo/fuel
prepend: integration/rusefi_config_shared.txt
constexpr: "engine->fuelComputer"
- name: ignition_state
folder: controllers/algo
prepend: integration/rusefi_config_shared.txt
constexpr: "engine->ignitionState"
- name: knock_controller
folder: controllers/engine_cycle
prepend: integration/rusefi_config_shared.txt
output_name: knock
constexpr: "___engine.module<KnockController>()"
isPtr: true
- name: high_pressure_fuel_pump
folder: controllers/engine_cycle
output_name: hpfp
- name: injector_model
folder: controllers/algo/fuel
2023-07-01 20:51:01 -07:00
prepend: integration/rusefi_config_shared.txt
# constexpr: "___engine.module<InjectorModel>()"
# isPtr: true
- name: launch_control_state
folder: controllers/algo
2022-12-16 15:48:59 -08:00
- name: antilag_system_state
folder: controllers/algo
prepend: integration/rusefi_config_shared.txt
2022-12-16 15:48:59 -08:00
output_name: als
- name: boost_control
folder: controllers/actuators
prepend: integration/rusefi_config_shared.txt
output_name: boost
2023-09-07 12:41:56 -07:00
constexpr: "___engine.module<BoostController>()"
isPtr: true
2023-01-16 13:39:08 -08:00
conditional_compilation: "EFI_BOOST_CONTROL"
- name: ac_control
folder: controllers/actuators
prepend: integration/rusefi_config_shared.txt
output_name: ac
- name: fan_control
folder: controllers/actuators
output_name: [ "fan1", "fan2" ]
constexpr: "___engine.module<FanControl1>()"
isPtr: true
- name: fuel_pump_control
folder: controllers/actuators
output_name: fuelPump
- name: main_relay
folder: controllers/actuators
output_name: mainRelay
2022-01-06 12:20:58 -08:00
#todo: handle ETB pid and Idle pid which point at same pid_state.txt
# - name: pid_state
# folder: util/math
- name: engine_state
folder: controllers/algo
prepend: integration/rusefi_config_shared.txt
constexpr: "engine->engineState"
- name: tps_accel_state
folder: controllers/algo
2023-05-05 02:34:48 -07:00
prepend: integration/rusefi_config_shared.txt
- name: trigger_central
folder: controllers/trigger
withCDefines: true
constexpr: "engine->triggerCentral"
2023-08-29 00:57:57 -07:00
conditional_compilation: "EFI_SHAFT_POSITION_INPUT"
- name: trigger_state
folder: controllers/trigger
prepend: integration/rusefi_config_shared.txt
output_name: [ "trg", "vvt1i", "vvt1e", "vvt2i", "vvt2e" ]
- name: trigger_state_primary
folder: controllers/trigger
prepend: integration/rusefi_config_shared.txt
- name: wall_fuel_state
folder: controllers/algo
- name: idle_state
folder: controllers/actuators
2023-05-05 12:48:38 -07:00
prepend: integration/rusefi_config_shared.txt
output_name: idle
- name: electronic_throttle
folder: controllers/actuators
prepend: integration/rusefi_config_shared.txt
output_name: [ "etb1", "etb2" ]
- name: wideband_state
folder: controllers/sensors/
output_name: [ "wb1", "wb2" ]
- name: dc_motors
folder: controllers/actuators
prepend: integration/rusefi_config_shared.txt
2023-02-14 16:54:22 -08:00
constexpr: "engine->dc_motors"
- name: sent_state
2023-07-01 21:08:50 -07:00
folder: controllers/sensors
prepend: integration/rusefi_config_shared.txt
2023-07-01 21:08:50 -07:00
2023-07-01 21:45:50 -07:00
- name: throttle_model
folder: controllers/math
output_name: throttle_model
2023-07-01 21:08:50 -07:00
- name: vvt
folder: controllers/actuators
constexpr: "___engine.module<VvtController1>()"
isPtr: true
conditional_compilation: "EFI_VVT_PID"
2023-07-25 23:59:00 -07:00
- name: lambda_monitor
folder: controllers/math
constexpr: "___engine.lambdaMonitor"