rusefi/firmware/integration/LiveData.yaml

185 lines
5.4 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
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
2023-07-03 08:45:20 -07:00
cppFileName: status_loop
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"
2023-05-24 15:23:10 -07:00
conditional_compilation: "EFI_ENGINE_CONTROL"
- name: ignition_state
2023-07-03 08:45:20 -07:00
cppFileName: advance_map
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
2023-09-25 13:20:58 -07:00
prepend: integration/rusefi_config_shared.txt
output_name: knock
- 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
2023-07-03 09:26:47 -07:00
prepend: integration/rusefi_config_shared.txt
- name: launch_control_state
2023-07-03 08:45:20 -07:00
cppFileName: launch_control
java: LaunchControl.java
folder: controllers/algo
2022-12-16 15:48:59 -08:00
- name: antilag_system_state
2023-07-03 08:45:20 -07:00
cppFileName: antilag_system
2022-12-16 15:48:59 -08:00
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
2023-06-11 19:24:51 -07:00
engineModule: AcController
- name: fan_control
java: FanControl.java
folder: controllers/actuators
output_name: [ "fan1", "fan2" ]
- name: fuel_pump_control
2023-07-03 08:45:20 -07:00
cppFileName: fuel_pump
java: FuelPump.java
folder: controllers/actuators
output_name: fuelPump
engineModule: FuelPumpController
- 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
2023-07-03 08:45:20 -07:00
cppFileName: engine
java: EngineState.java
folder: controllers/algo
prepend: integration/rusefi_config_shared.txt
constexpr: "engine->engineState"
- name: tps_accel_state
2023-07-03 08:45:20 -07:00
cppFileName: accel_enrichment
java: TpsAccelState.java
folder: controllers/algo
prepend: integration/rusefi_config_shared.txt
- name: trigger_central
java: TriggerCentral.java
folder: controllers/trigger
withCDefines: true
# something special about 'error: "ts_show_vbatt" redefined'' why is trigger.h special?
# prepend: integration/rusefi_config.txt
constexpr: "engine->triggerCentral"
conditional_compilation: "EFI_SHAFT_POSITION_INPUT"
- name: trigger_state
2023-07-03 08:45:20 -07:00
cppFileName: trigger_decoder
java: TriggerState.java
folder: controllers/trigger
prepend: integration/rusefi_config_shared.txt
output_name: [ "trg", "vvt1i", "vvt1e", "vvt2i", "vvt2e" ]
- name: trigger_state_primary
2023-07-03 08:45:20 -07:00
cppFileName: trigger_decoder
java: TriggerStatePrimary.java
folder: controllers/trigger
prepend: integration/rusefi_config_shared.txt
- name: wall_fuel_state
2023-07-03 08:45:20 -07:00
cppFileName: wall_fuel
java: WallFuelState.java
folder: controllers/algo
- name: idle_state
2023-07-03 08:45:20 -07:00
cppFileName: idle_thread
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
2023-07-03 08:45:20 -07:00
cppFileName: AemXSeriesLambda
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
2023-07-03 08:45:20 -07:00
cppFileName: sent
2023-02-14 16:54:22 -08:00
java: SentState.java
2023-07-03 09:12:03 -07:00
folder: controllers/sensors
prepend: integration/rusefi_config_shared.txt
2023-07-03 09:12:03 -07:00
- name: vvt
java: VvtState.java
folder: controllers/actuators
- name: lambda_monitor
java: LambdaMonitor.java
folder: controllers/math
constexpr: "___engine.lambdaMonitor"