From 3094cc6be7987c403b5ebef0d8ab14c887d5c925 Mon Sep 17 00:00:00 2001 From: Andrey Date: Thu, 1 Sep 2022 20:15:46 -0400 Subject: [PATCH] tear down Engine god object #4511 just trying different things --- firmware/controllers/algo/fuel/dfco.cpp | 3 +-- firmware/pch/pch_util.h | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+), 2 deletions(-) create mode 100644 firmware/pch/pch_util.h diff --git a/firmware/controllers/algo/fuel/dfco.cpp b/firmware/controllers/algo/fuel/dfco.cpp index 3cd0b7d226..72c6abf6da 100644 --- a/firmware/controllers/algo/fuel/dfco.cpp +++ b/firmware/controllers/algo/fuel/dfco.cpp @@ -1,6 +1,5 @@ -#include "engine_configuration.h" -#include "sensor.h" +#include "pch_util.h" #include "dfco.h" diff --git a/firmware/pch/pch_util.h b/firmware/pch/pch_util.h new file mode 100644 index 0000000000..1bffa02eee --- /dev/null +++ b/firmware/pch/pch_util.h @@ -0,0 +1,18 @@ +/** + * just like pch.h just without full engine god object + */ + +#include +#include +#include + +#include "engine_configuration.h" + +#include "expected.h" +#include "error_handling.h" + +#include "engine_module.h" + +#include "sensor.h" + +#include "timer.h"