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
|
|
|
#
|
2019-08-31 19:54:45 -07:00
|
|
|
Usages:
|
2023-01-15 03:26:22 -08:00
|
|
|
# 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
|
2023-03-02 11:52:36 -08:00
|
|
|
prepend: integration/rusefi_config_shared.txt
|
2023-01-15 03:26:22 -08:00
|
|
|
constexpr: "engine->outputChannels"
|
|
|
|
|
2023-01-14 20:00:28 -08:00
|
|
|
- name: fuel_computer
|
|
|
|
java: FuelComputer.java
|
|
|
|
folder: controllers/algo/fuel
|
2023-03-02 11:52:36 -08:00
|
|
|
prepend: integration/rusefi_config_shared.txt
|
2023-01-14 20:00:28 -08:00
|
|
|
constexpr: "engine->fuelComputer"
|
|
|
|
|
2023-01-15 05:26:08 -08:00
|
|
|
- name: ignition_state
|
|
|
|
java: IgnitionState.java
|
2023-01-14 20:00:28 -08:00
|
|
|
folder: controllers/algo
|
2023-03-02 11:52:36 -08:00
|
|
|
prepend: integration/rusefi_config_shared.txt
|
2023-01-15 05:26:08 -08:00
|
|
|
constexpr: "engine->ignitionState"
|
2023-01-14 20:00:28 -08:00
|
|
|
|
2022-06-02 22:02:16 -07:00
|
|
|
- name: knock_controller
|
|
|
|
java: KnockController.java
|
|
|
|
folder: controllers/engine_cycle
|
2022-06-19 06:52:23 -07:00
|
|
|
output_name: knock
|
2022-06-02 22:02:16 -07:00
|
|
|
|
2023-03-14 20:12:35 -07:00
|
|
|
- name: throttle_model
|
|
|
|
java: ThrottleModel.java
|
|
|
|
folder: controllers/math
|
|
|
|
output_name: throttle_model
|
|
|
|
|
2022-06-02 22:02:16 -07:00
|
|
|
- name: high_pressure_fuel_pump
|
|
|
|
java: HighPressureFuelPump.java
|
|
|
|
folder: controllers/engine_cycle
|
2022-06-19 06:52:23 -07:00
|
|
|
output_name: hpfp
|
2022-06-02 22:02:16 -07:00
|
|
|
|
|
|
|
- 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
|
2023-03-02 11:52:36 -08:00
|
|
|
prepend: integration/rusefi_config_shared.txt
|
2022-12-16 15:48:59 -08:00
|
|
|
output_name: als
|
|
|
|
|
2022-06-02 22:02:16 -07:00
|
|
|
- name: boost_control
|
|
|
|
java: BoostControl.java
|
|
|
|
folder: controllers/actuators
|
2023-03-02 11:52:36 -08:00
|
|
|
prepend: integration/rusefi_config_shared.txt
|
2022-06-19 06:52:23 -07:00
|
|
|
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"
|
2022-06-02 22:02:16 -07:00
|
|
|
|
|
|
|
- name: ac_control
|
|
|
|
java: AcControl.java
|
|
|
|
folder: controllers/actuators
|
2023-03-02 11:52:36 -08:00
|
|
|
prepend: integration/rusefi_config_shared.txt
|
2022-06-19 06:52:23 -07:00
|
|
|
output_name: ac
|
2022-06-02 22:02:16 -07:00
|
|
|
|
|
|
|
- name: fan_control
|
|
|
|
java: FanControl.java
|
|
|
|
folder: controllers/actuators
|
2022-06-19 06:52:23 -07:00
|
|
|
output_name: [ "fan1", "fan2" ]
|
2022-06-02 22:02:16 -07:00
|
|
|
|
|
|
|
- name: fuel_pump_control
|
|
|
|
java: FuelPump.java
|
|
|
|
folder: controllers/actuators
|
2022-06-19 06:52:23 -07:00
|
|
|
output_name: fuelPump
|
2022-06-02 22:02:16 -07:00
|
|
|
|
|
|
|
- name: main_relay
|
|
|
|
java: MainRelay.java
|
|
|
|
folder: controllers/actuators
|
2022-06-19 06:52:23 -07:00
|
|
|
output_name: mainRelay
|
2022-06-02 22:02:16 -07:00
|
|
|
|
2022-01-06 12:20:58 -08:00
|
|
|
#todo: handle ETB pid and Idle pid which point at same pid_state.txt
|
2022-06-02 22:02:16 -07:00
|
|
|
# - name: pid_state
|
|
|
|
# java: PidState.java
|
|
|
|
# folder: util/math
|
|
|
|
|
|
|
|
- name: engine_state
|
|
|
|
java: EngineState.java
|
|
|
|
folder: controllers/algo
|
2023-03-02 11:52:36 -08:00
|
|
|
prepend: integration/rusefi_config_shared.txt
|
2022-10-26 19:07:24 -07:00
|
|
|
constexpr: "engine->engineState"
|
2022-06-02 22:02:16 -07:00
|
|
|
|
|
|
|
- name: tps_accel_state
|
|
|
|
java: TpsAccelState.java
|
|
|
|
folder: controllers/algo
|
2023-05-05 02:34:48 -07:00
|
|
|
prepend: integration/rusefi_config_shared.txt
|
2022-06-02 22:02:16 -07:00
|
|
|
|
|
|
|
- name: trigger_central
|
|
|
|
java: TriggerCentral.java
|
|
|
|
folder: controllers/trigger
|
|
|
|
withCDefines: true
|
2023-03-28 17:35:32 -07:00
|
|
|
# something special about 'error: "ts_show_vbatt" redefined'' why is trigger.h special?
|
|
|
|
# prepend: integration/rusefi_config.txt
|
2022-10-28 07:28:38 -07:00
|
|
|
constexpr: "engine->triggerCentral"
|
2023-05-23 20:48:40 -07:00
|
|
|
conditional_compilation: "EFI_SHAFT_POSITION_INPUT"
|
2022-06-02 22:02:16 -07:00
|
|
|
|
|
|
|
- name: trigger_state
|
|
|
|
java: TriggerState.java
|
|
|
|
folder: controllers/trigger
|
2023-03-02 11:52:36 -08:00
|
|
|
prepend: integration/rusefi_config_shared.txt
|
2022-06-02 22:02:16 -07:00
|
|
|
output_name: [ "trg", "vvt1i", "vvt1e", "vvt2i", "vvt2e" ]
|
|
|
|
|
2022-08-24 15:11:05 -07:00
|
|
|
- name: trigger_state_primary
|
|
|
|
java: TriggerStatePrimary.java
|
|
|
|
folder: controllers/trigger
|
2023-03-02 11:52:36 -08:00
|
|
|
prepend: integration/rusefi_config_shared.txt
|
2022-08-24 15:11:05 -07:00
|
|
|
|
2022-06-02 22:02:16 -07:00
|
|
|
- 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
|
2023-03-02 11:52:36 -08:00
|
|
|
prepend: integration/rusefi_config_shared.txt
|
2022-06-19 06:52:23 -07:00
|
|
|
output_name: [ "etb1", "etb2" ]
|
2022-06-23 17:04:26 -07:00
|
|
|
|
|
|
|
- name: wideband_state
|
|
|
|
java: WidebandController.java
|
|
|
|
folder: controllers/sensors/
|
|
|
|
output_name: [ "wb1", "wb2" ]
|
2023-02-13 15:01:54 -08:00
|
|
|
|
|
|
|
- name: dc_motors
|
|
|
|
java: DcMotors.java
|
|
|
|
folder: controllers/actuators
|
2023-03-02 11:52:36 -08:00
|
|
|
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/
|
2023-03-02 11:52:36 -08:00
|
|
|
prepend: integration/rusefi_config_shared.txt
|