[modules] convert rc_settings subsystem to module

This commit is contained in:
Gautier Hattenberger
2017-01-17 11:51:21 +01:00
parent aa7d24d92a
commit 5e6a7679d6
5 changed files with 4 additions and 10 deletions
@@ -1,6 +0,0 @@
# Hey Emacs, this is a -*- makefile -*-
# change settings via Remote Control, e.g. tune your aircraft
$(TARGET).srcs += rc_settings.c
$(TARGET).CFLAGS += -DRADIO_CONTROL_SETTINGS
+1 -1
View File
@@ -74,7 +74,7 @@ static void send_alive(struct transport_tx *trans, struct link_device *dev)
}
#if defined RADIO_CALIB && defined RADIO_CONTROL_SETTINGS
#include "rc_settings.h"
#include "modules/settings/rc_settings.h"
static void send_rc_settings(struct transport_tx *trans, struct link_device *dev)
{
if (!RcSettingsOff()) {
+1 -1
View File
@@ -74,7 +74,7 @@ PRINT_CONFIG_MSG_VALUE("USE_BARO_BOARD is TRUE, reading onboard baro: ", BARO_BO
#include "generated/modules.h"
#include "generated/settings.h"
#if defined RADIO_CONTROL || defined RADIO_CONTROL_AUTO1
#include "rc_settings.h"
#include "modules/settings/rc_settings.h"
#endif
#include "subsystems/abi.h"
@@ -24,7 +24,7 @@
#include <inttypes.h>
#include "generated/radio.h"
#include "rc_settings.h"
#include "modules/settings/rc_settings.h"
#include "autopilot.h"
#include "firmwares/fixedwing/nav.h"
#include "subsystems/sensors/infrared.h"
@@ -22,7 +22,7 @@
/**
* @file rc_settings.h
* @file modules/settings/rc_settings.h
* Variable setting though the radio control
*
* The 'rc_control' section of a XML flight plan allows the user to change the