move tachometer to modules dir

This commit is contained in:
Matthew Kennedy 2024-09-03 16:28:54 -07:00
parent 3b2a136a75
commit c3e1435f39
7 changed files with 10 additions and 5 deletions

View File

@ -22,7 +22,6 @@
#include "idle_thread.h"
#include "idle_hardware.h"
#include "gppwm.h"
#include "tachometer.h"
#include "speedometer.h"
#include "dynoview.h"
#include "boost_control.h"

View File

@ -22,7 +22,6 @@ CONTROLLERS_SRC_CPP = \
$(CONTROLLERS_DIR)/actuators/vvt.cpp \
$(CONTROLLERS_DIR)/actuators/gppwm/gppwm_channel.cpp \
$(CONTROLLERS_DIR)/actuators/gppwm/gppwm.cpp \
$(CONTROLLERS_DIR)/gauges/tachometer.cpp \
$(CONTROLLERS_DIR)/gauges/speedometer.cpp \
$(CONTROLLERS_DIR)/gauges/malfunction_indicator.cpp \
$(CONTROLLERS_DIR)/system/timer/single_timer_executor.cpp \

View File

@ -44,7 +44,6 @@
#include "vvt.h"
#include "boost_control.h"
#include "launch_control.h"
#include "tachometer.h"
#include "speedometer.h"
#include "gppwm.h"
#include "date_stamp.h"

View File

@ -1,6 +1,7 @@
include $(PROJECT_DIR)/controllers/modules/fan/fan.mk
include $(PROJECT_DIR)/controllers/modules/fuel_pump/fuel_pump.mk
include $(PROJECT_DIR)/controllers/modules/gear_detector/gear_detector.mk
include $(PROJECT_DIR)/controllers/modules/tachometer/tachometer.mk
include $(PROJECT_DIR)/controllers/modules/trip_odometer/trip_odometer.mk
ifeq ($(NO_MAP_AVERAGING),)

View File

@ -10,8 +10,6 @@
#include "pch.h"
#include "tachometer.h"
static SimplePwm tachControl("tach");
static float tachFreq;
static float duty;

View File

@ -9,3 +9,6 @@
void initTachometer();
void tachUpdate();
// TODO
struct TachometerModule : public EngineModule { };

View File

@ -0,0 +1,6 @@
MODULES_INC += $(PROJECT_DIR)/controllers/modules/tachometer
MODULES_CPPSRC += $(PROJECT_DIR)/controllers/modules/tachometer/tachometer.cpp
MODULES_INCLUDE += \#include "tachometer.h"\n
MODULES_LIST += TachometerModule,
DDEFS += -DMODULE_TACHOMETER