fome-fw/firmware/integration/LiveData.yaml

155 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
java: FuelComputer.java
folder: controllers/algo/fuel
prepend: integration/rusefi_config_shared.txt
constexpr: "engine->fuelComputer"
- name: ignition_state
java: IgnitionState.java
folder: controllers/algo
prepend: integration/rusefi_config_shared.txt
constexpr: "engine->ignitionState"
- name: knock_controller
java: KnockController.java
folder: controllers/engine_cycle
output_name: knock
2023-03-14 20:12:35 -07:00
- name: throttle_model
java: ThrottleModel.java
folder: controllers/math
output_name: throttle_model
- name: high_pressure_fuel_pump
java: HighPressureFuelPump.java
folder: controllers/engine_cycle
output_name: hpfp
- name: injector_model
java: InjectorModel.java
folder: controllers/algo/fuel
- name: launch_control_state
java: LaunchControl.java
folder: controllers/algo
2022-12-16 15:48:59 -08:00
- name: antilag_system_state
java: AntilagSystem.java
folder: controllers/algo
prepend: integration/rusefi_config_shared.txt
2022-12-16 15:48:59 -08:00
output_name: als
- name: boost_control
java: BoostControl.java
folder: controllers/actuators
prepend: integration/rusefi_config_shared.txt
output_name: boost
2023-01-16 13:10:14 -08:00
constexpr: "engine->boostController"
2023-01-16 13:39:08 -08:00
conditional_compilation: "EFI_BOOST_CONTROL"
- name: ac_control
java: AcControl.java
folder: controllers/actuators
prepend: integration/rusefi_config_shared.txt
output_name: ac
- name: fan_control
java: FanControl.java
folder: controllers/actuators
output_name: [ "fan1", "fan2" ]
- name: fuel_pump_control
java: FuelPump.java
folder: controllers/actuators
output_name: fuelPump
- name: main_relay
java: MainRelay.java
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
# java: PidState.java
# folder: util/math
- name: engine_state
java: EngineState.java
folder: controllers/algo
prepend: integration/rusefi_config_shared.txt
constexpr: "engine->engineState"
- name: tps_accel_state
java: TpsAccelState.java
folder: controllers/algo
- name: trigger_central
java: TriggerCentral.java
folder: controllers/trigger
withCDefines: true
constexpr: "engine->triggerCentral"
- name: trigger_state
java: TriggerState.java
folder: controllers/trigger
prepend: integration/rusefi_config_shared.txt
output_name: [ "trg", "vvt1i", "vvt1e", "vvt2i", "vvt2e" ]
- name: trigger_state_primary
java: TriggerStatePrimary.java
folder: controllers/trigger
prepend: integration/rusefi_config_shared.txt
- name: wall_fuel_state
java: WallFuelState.java
folder: controllers/algo
- name: idle_state
java: IdleState.java
folder: controllers/actuators
output_name: idle
- name: electronic_throttle
java: ElectronicThrottle.java
folder: controllers/actuators
prepend: integration/rusefi_config_shared.txt
output_name: [ "etb1", "etb2" ]
- name: wideband_state
java: WidebandController.java
folder: controllers/sensors/
output_name: [ "wb1", "wb2" ]
- name: dc_motors
java: DcMotors.java
folder: controllers/actuators
prepend: integration/rusefi_config_shared.txt
2023-02-14 16:54:22 -08:00
constexpr: "engine->dc_motors"
- name: sent_state
java: SentState.java
folder: controllers/sensors/
prepend: integration/rusefi_config_shared.txt