218 lines
6.6 KiB
YAML
218 lines
6.6 KiB
YAML
#
|
|
# see live_data.cpp - you would have to add a method manually!
|
|
#
|
|
# 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
|
|
#
|
|
# here we have LiveData configuration file
|
|
# entry format, where 'key' is a unique ID:
|
|
# 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
|
|
#
|
|
# see docs_enums.mk where all the .txt files should be mentioned!
|
|
#
|
|
Usages:
|
|
# output_channels always goes first at least because it has protocol version at well-known offset
|
|
- name: output_channels
|
|
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"
|
|
conditional_compilation: "EFI_ENGINE_CONTROL"
|
|
|
|
- name: ignition_state
|
|
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
|
|
prepend: integration/rusefi_config_shared.txt
|
|
output_name: knock
|
|
constexpr: "___engine.module<KnockController>()"
|
|
isPtr: true
|
|
|
|
- name: tcu_controller
|
|
java: TcuController.java
|
|
folder: controllers/tcu
|
|
prepend: integration/rusefi_config_shared.txt
|
|
conditional_compilation: "EFI_TCU"
|
|
|
|
- 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
|
|
prepend: integration/rusefi_config_shared.txt
|
|
constexpr: "___engine.module<InjectorModelPrimary>()"
|
|
isPtr: true
|
|
# working around unmock() in simulator
|
|
conditional_compilation: "EFI_PROD_CODE && EFI_IDLE_CONTROL"
|
|
|
|
- name: launch_control_state
|
|
cppFileName: launch_control
|
|
java: LaunchControl.java
|
|
folder: controllers/algo
|
|
constexpr: "engine->launchController"
|
|
conditional_compilation: "EFI_LAUNCH_CONTROL"
|
|
|
|
- name: shift_torque_reduction_state
|
|
cppFileName: shift_torque_reduction_controller
|
|
java: ShiftTorqueReductionController.java
|
|
folder: controllers/algo
|
|
constexpr: "engine->shiftTorqueReductionController"
|
|
conditional_compilation: "EFI_LAUNCH_CONTROL"
|
|
|
|
- name: antilag_system_state
|
|
cppFileName: antilag_system
|
|
java: AntilagSystem.java
|
|
folder: controllers/algo
|
|
prepend: integration/rusefi_config_shared.txt
|
|
output_name: als
|
|
|
|
- name: boost_control
|
|
java: BoostControl.java
|
|
folder: controllers/actuators
|
|
prepend: integration/rusefi_config_shared.txt
|
|
output_name: boost
|
|
constexpr: "___engine.module<BoostController>()"
|
|
isPtr: true
|
|
conditional_compilation: "EFI_BOOST_CONTROL"
|
|
|
|
- name: ac_control
|
|
java: AcControl.java
|
|
folder: controllers/actuators
|
|
prepend: integration/rusefi_config_shared.txt
|
|
output_name: ac
|
|
engineModule: AcController
|
|
|
|
- name: fan_control
|
|
java: FanControl.java
|
|
folder: controllers/actuators
|
|
output_name: [ "fan1", "fan2" ]
|
|
constexpr: "___engine.module<FanControl1>()"
|
|
isPtr: true
|
|
|
|
- name: fuel_pump_control
|
|
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
|
|
|
|
#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
|
|
cppFileName: engine
|
|
java: EngineState.java
|
|
folder: controllers/algo
|
|
prepend: integration/rusefi_config_shared.txt
|
|
constexpr: "engine->engineState"
|
|
|
|
- name: tps_accel_state
|
|
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
|
|
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
|
|
cppFileName: trigger_decoder
|
|
java: TriggerStatePrimary.java
|
|
folder: controllers/trigger
|
|
prepend: integration/rusefi_config_shared.txt
|
|
|
|
- name: wall_fuel_state
|
|
cppFileName: wall_fuel
|
|
java: WallFuelState.java
|
|
folder: controllers/algo
|
|
|
|
- name: idle_state
|
|
cppFileName: idle_thread
|
|
java: IdleState.java
|
|
folder: controllers/actuators
|
|
prepend: integration/rusefi_config_shared.txt
|
|
constexpr: "___engine.module<IdleController>().unmock()"
|
|
output_name: idle
|
|
# working around unmock() in simulator
|
|
conditional_compilation: "EFI_PROD_CODE && EFI_IDLE_CONTROL"
|
|
|
|
- name: electronic_throttle
|
|
java: ElectronicThrottle.java
|
|
folder: controllers/actuators
|
|
prepend: integration/rusefi_config_shared.txt
|
|
output_name: [ "etb1", "etb2" ]
|
|
|
|
- name: wideband_state
|
|
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
|
|
constexpr: "engine->dc_motors"
|
|
|
|
- name: sent_state
|
|
cppFileName: sent
|
|
java: SentState.java
|
|
folder: controllers/sensors
|
|
prepend: integration/rusefi_config_shared.txt
|
|
|
|
- name: vvt
|
|
java: VvtState.java
|
|
folder: controllers/actuators
|
|
constexpr: "___engine.module<VvtController1>()"
|
|
isPtr: true
|
|
conditional_compilation: "EFI_VVT_PID"
|
|
|
|
- name: lambda_monitor
|
|
java: LambdaMonitor.java
|
|
folder: controllers/math
|
|
constexpr: "___engine.lambdaMonitor"
|
|
conditional_compilation: "EFI_SHAFT_POSITION_INPUT"
|