parent
1a1372ffe9
commit
a0264f4740
|
@ -162,6 +162,11 @@ const sent_state_s* getLiveData(size_t) {
|
|||
return &engine->sent_state;
|
||||
}
|
||||
|
||||
template<>
|
||||
const throttle_model_s* getLiveData(size_t) {
|
||||
return &engine->module<ThrottleModel>().unmock();
|
||||
}
|
||||
|
||||
static const FragmentEntry fragments[] = {
|
||||
// This header is generated - do not edit by hand!
|
||||
#include "live_data_fragments.h"
|
||||
|
|
|
@ -47,6 +47,7 @@
|
|||
#include "sensor_checker.h"
|
||||
#include "fuel_schedule.h"
|
||||
#include "prime_injection.h"
|
||||
#include "throttle_model.h"
|
||||
|
||||
#ifndef EFI_UNIT_TEST
|
||||
#error EFI_UNIT_TEST must be defined!
|
||||
|
@ -130,6 +131,7 @@ public:
|
|||
#if EFI_HPFP && EFI_ENGINE_CONTROL
|
||||
HpfpController,
|
||||
#endif // EFI_HPFP && EFI_ENGINE_CONTROL
|
||||
ThrottleModel,
|
||||
#if EFI_ALTERNATOR_CONTROL
|
||||
AlternatorController,
|
||||
#endif /* EFI_ALTERNATOR_CONTROL */
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
#pragma once
|
||||
|
||||
struct ThrottleModelBase {
|
||||
#include "throttle_model_generated.h"
|
||||
|
||||
struct ThrottleModelBase : public throttle_model_s {
|
||||
public:
|
||||
float estimateThrottleFlow(float tip, float tps, float map, float iat);
|
||||
expected<float> estimateThrottleFlow(float map, float tps);
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
struct_no_prefix throttle_model_s
|
||||
|
||||
end_struct
|
|
@ -0,0 +1,12 @@
|
|||
// this section was generated automatically by rusEFI tool ConfigDefinition.jar based on (unknown script) controllers/math/throttle_model.txt Tue Mar 14 20:09:59 PDT 2023
|
||||
// by class com.rusefi.output.CHeaderConsumer
|
||||
// begin
|
||||
#pragma once
|
||||
#include "rusefi_types.h"
|
||||
// start of throttle_model_s
|
||||
struct throttle_model_s {
|
||||
};
|
||||
static_assert(sizeof(throttle_model_s) == 0);
|
||||
|
||||
// end
|
||||
// this section was generated automatically by rusEFI tool ConfigDefinition.jar based on (unknown script) controllers/math/throttle_model.txt Tue Mar 14 20:09:59 PDT 2023
|
|
@ -37,6 +37,11 @@ Usages:
|
|||
folder: controllers/engine_cycle
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue