TurboMarian is the ALS boss

This commit is contained in:
rusefillc 2022-12-16 23:31:51 -05:00
parent f8d4caec81
commit 37c35e08bb
4 changed files with 28 additions and 2 deletions

View File

@ -40,8 +40,7 @@ const launch_control_state_s* getLiveData(size_t) {
template<>
const antilag_system_state_s* getLiveData(size_t) {
#if EFI_ANTILAG_SYSTEM
return nullptr;
// return &engine->antilagController;
return &engine->antilagController;
#else
return nullptr;
#endif

View File

@ -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/wall_fuel.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/runtime_state.cpp \
$(PROJECT_DIR)/controllers/algo/engine_configuration.cpp \

View File

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

View File

@ -28,6 +28,7 @@
#include "idle_thread.h"
#include "injector_model.h"
#include "launch_control.h"
#include "antilag_system.h"
#include "trigger_scheduler.h"
#include "fuel_pump.h"
#include "main_relay.h"
@ -163,6 +164,11 @@ public:
SoftSparkLimiter softSparkLimiter;
#endif // EFI_LAUNCH_CONTROL
#if EFI_ANTILAG_SYSTEM
AntilagSystemBase antilagController;
SoftSparkLimiter ALSsoftSparkLimiter;
#endif // EFI_ANTILAG_SYSTEM
#if EFI_BOOST_CONTROL
BoostController boostController;
#endif // EFI_BOOST_CONTROL