From 24dd3048c9a7aed6d266e06f93f840fcde861fa0 Mon Sep 17 00:00:00 2001 From: Felix Ruess Date: Mon, 4 Jul 2016 21:58:13 +0200 Subject: [PATCH] [modules] convert current_sensor subsystem to module --- .../subsystems/shared/current_sensor.makefile | 10 ---------- conf/modules/current_sensor.xml | 14 ++++++++++++++ 2 files changed, 14 insertions(+), 10 deletions(-) delete mode 100644 conf/firmwares/subsystems/shared/current_sensor.makefile create mode 100644 conf/modules/current_sensor.xml diff --git a/conf/firmwares/subsystems/shared/current_sensor.makefile b/conf/firmwares/subsystems/shared/current_sensor.makefile deleted file mode 100644 index 1d53e45510..0000000000 --- a/conf/firmwares/subsystems/shared/current_sensor.makefile +++ /dev/null @@ -1,10 +0,0 @@ -# Hey Emacs, this is a -*- makefile -*- - -# Activate current sensor - -# -# MilliAmpereOfAdc needs to be defined in the airframe file -# - -ap.CFLAGS += -DADC_CHANNEL_CURRENT=$(ADC_CURRENT_SENSOR) -DUSE_$(ADC_CURRENT_SENSOR) - diff --git a/conf/modules/current_sensor.xml b/conf/modules/current_sensor.xml new file mode 100644 index 0000000000..56dd1f329c --- /dev/null +++ b/conf/modules/current_sensor.xml @@ -0,0 +1,14 @@ + + + + + + Current sensor via onboard ADC. + + + + + + + +