TurboMarian is the ALS boss
This commit is contained in:
parent
f8d4caec81
commit
37c35e08bb
|
@ -40,8 +40,7 @@ const launch_control_state_s* getLiveData(size_t) {
|
||||||
template<>
|
template<>
|
||||||
const antilag_system_state_s* getLiveData(size_t) {
|
const antilag_system_state_s* getLiveData(size_t) {
|
||||||
#if EFI_ANTILAG_SYSTEM
|
#if EFI_ANTILAG_SYSTEM
|
||||||
return nullptr;
|
return &engine->antilagController;
|
||||||
// return &engine->antilagController;
|
|
||||||
#else
|
#else
|
||||||
return nullptr;
|
return nullptr;
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -8,6 +8,7 @@ CONTROLLERS_ALGO_SRC_CPP = $(PROJECT_DIR)/controllers/algo/advance_map.cpp \
|
||||||
$(PROJECT_DIR)/controllers/algo/accel_enrichment.cpp \
|
$(PROJECT_DIR)/controllers/algo/accel_enrichment.cpp \
|
||||||
$(PROJECT_DIR)/controllers/algo/wall_fuel.cpp \
|
$(PROJECT_DIR)/controllers/algo/wall_fuel.cpp \
|
||||||
$(PROJECT_DIR)/controllers/algo/launch_control.cpp \
|
$(PROJECT_DIR)/controllers/algo/launch_control.cpp \
|
||||||
|
$(PROJECT_DIR)/controllers/algo/antilag_system.cpp \
|
||||||
$(PROJECT_DIR)/controllers/algo/dynoview.cpp \
|
$(PROJECT_DIR)/controllers/algo/dynoview.cpp \
|
||||||
$(PROJECT_DIR)/controllers/algo/runtime_state.cpp \
|
$(PROJECT_DIR)/controllers/algo/runtime_state.cpp \
|
||||||
$(PROJECT_DIR)/controllers/algo/engine_configuration.cpp \
|
$(PROJECT_DIR)/controllers/algo/engine_configuration.cpp \
|
||||||
|
|
|
@ -0,0 +1,20 @@
|
||||||
|
/*
|
||||||
|
* @file antilag_system.cpp
|
||||||
|
*
|
||||||
|
* @date 26. nov. 2022
|
||||||
|
* Author: Turbo Marian
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "pch.h"
|
||||||
|
|
||||||
|
#if EFI_ANTILAG_SYSTEM
|
||||||
|
#include "antilag_system.h"
|
||||||
|
#include "periodic_task.h"
|
||||||
|
#include "advance_map.h"
|
||||||
|
#include "engine_state.h"
|
||||||
|
#include "advance_map.h"
|
||||||
|
|
||||||
|
AntilagSystemBase::AntilagSystemBase() {
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif /* EFI_ANTILAG_SYSTEM */
|
|
@ -28,6 +28,7 @@
|
||||||
#include "idle_thread.h"
|
#include "idle_thread.h"
|
||||||
#include "injector_model.h"
|
#include "injector_model.h"
|
||||||
#include "launch_control.h"
|
#include "launch_control.h"
|
||||||
|
#include "antilag_system.h"
|
||||||
#include "trigger_scheduler.h"
|
#include "trigger_scheduler.h"
|
||||||
#include "fuel_pump.h"
|
#include "fuel_pump.h"
|
||||||
#include "main_relay.h"
|
#include "main_relay.h"
|
||||||
|
@ -163,6 +164,11 @@ public:
|
||||||
SoftSparkLimiter softSparkLimiter;
|
SoftSparkLimiter softSparkLimiter;
|
||||||
#endif // EFI_LAUNCH_CONTROL
|
#endif // EFI_LAUNCH_CONTROL
|
||||||
|
|
||||||
|
#if EFI_ANTILAG_SYSTEM
|
||||||
|
AntilagSystemBase antilagController;
|
||||||
|
SoftSparkLimiter ALSsoftSparkLimiter;
|
||||||
|
#endif // EFI_ANTILAG_SYSTEM
|
||||||
|
|
||||||
#if EFI_BOOST_CONTROL
|
#if EFI_BOOST_CONTROL
|
||||||
BoostController boostController;
|
BoostController boostController;
|
||||||
#endif // EFI_BOOST_CONTROL
|
#endif // EFI_BOOST_CONTROL
|
||||||
|
|
Loading…
Reference in New Issue