stub throttle model generated

This commit is contained in:
Matthew Kennedy 2023-03-14 20:12:35 -07:00
parent f7c7f20eea
commit 4e619c5494
6 changed files with 30 additions and 1 deletions

View File

@ -162,6 +162,11 @@ const sent_state_s* getLiveData(size_t) {
return &engine->sent_state; return &engine->sent_state;
} }
template<>
const throttle_model_s* getLiveData(size_t) {
return &engine->module<ThrottleModel>().unmock();
}
static const FragmentEntry fragments[] = { static const FragmentEntry fragments[] = {
// This header is generated - do not edit by hand! // This header is generated - do not edit by hand!
#include "live_data_fragments.h" #include "live_data_fragments.h"

View File

@ -48,6 +48,7 @@
#include "sensor_checker.h" #include "sensor_checker.h"
#include "fuel_schedule.h" #include "fuel_schedule.h"
#include "prime_injection.h" #include "prime_injection.h"
#include "throttle_model.h"
#ifndef EFI_UNIT_TEST #ifndef EFI_UNIT_TEST
#error EFI_UNIT_TEST must be defined! #error EFI_UNIT_TEST must be defined!
@ -131,6 +132,7 @@ public:
#if EFI_HPFP && EFI_ENGINE_CONTROL #if EFI_HPFP && EFI_ENGINE_CONTROL
HpfpController, HpfpController,
#endif // EFI_HPFP && EFI_ENGINE_CONTROL #endif // EFI_HPFP && EFI_ENGINE_CONTROL
ThrottleModel,
#if EFI_ALTERNATOR_CONTROL #if EFI_ALTERNATOR_CONTROL
AlternatorController, AlternatorController,
#endif /* EFI_ALTERNATOR_CONTROL */ #endif /* EFI_ALTERNATOR_CONTROL */

View File

@ -1,6 +1,8 @@
#pragma once #pragma once
struct ThrottleModelBase { #include "throttle_model_generated.h"
struct ThrottleModelBase : public throttle_model_s {
public: public:
float estimateThrottleFlow(float tip, float tps, float map, float iat); float estimateThrottleFlow(float tip, float tps, float map, float iat);
expected<float> estimateThrottleFlow(float map, float tps); expected<float> estimateThrottleFlow(float map, float tps);

View File

@ -0,0 +1,3 @@
struct_no_prefix throttle_model_s
end_struct

View File

@ -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

View File

@ -37,6 +37,11 @@ Usages:
folder: controllers/engine_cycle folder: controllers/engine_cycle
output_name: knock output_name: knock
- name: throttle_model
java: ThrottleModel.java
folder: controllers/math
output_name: throttle_model
- name: high_pressure_fuel_pump - name: high_pressure_fuel_pump
java: HighPressureFuelPump.java java: HighPressureFuelPump.java
folder: controllers/engine_cycle folder: controllers/engine_cycle