File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3737#include <oplinkstatus.h>
3838#include <pios_oplinkrcvr_priv.h>
3939
40+ // Put receiver in failsafe if not updated within timeout
41+ #define PIOS_OPLINK_RCVR_TIMEOUT_MS 100
4042
4143/* Provide a RCVR driver */
4244static int32_t PIOS_OPLinkRCVR_Get (uint32_t rcvr_id , uint8_t channel );
Original file line number Diff line number Diff line change @@ -204,7 +204,6 @@ extern uint32_t pios_ws2811_id;
204204#define PIOS_RCVR_MAX_DEVS 3
205205#define PIOS_RCVR_MAX_CHANNELS 12
206206#define PIOS_GCSRCVR_TIMEOUT_MS 100
207- #define PIOS_OPLINK_RCVR_TIMEOUT_MS 100
208207
209208// -------------------------
210209// Receiver PPM input
Original file line number Diff line number Diff line change @@ -133,6 +133,8 @@ ifndef TESTAPP
133133 SRC += $(FLIGHT_UAVOBJ_DIR ) /txpidsettings.c
134134 SRC += $(FLIGHT_UAVOBJ_DIR ) /txpidstatus.c
135135 SRC += $(FLIGHT_UAVOBJ_DIR ) /mpugyroaccelsettings.c
136+ SRC += $(FLIGHT_UAVOBJ_DIR ) /gcsreceiver.c
137+ SRC += $(FLIGHT_UAVOBJ_DIR ) /oplinkreceiver.c
136138 # Command line option for Gcsreceiver module
137139 ifeq ($(GCSRECEIVER), YES)
138140 SRC += $(FLIGHT_UAVOBJ_DIR ) /gcsreceiver.c
Original file line number Diff line number Diff line change @@ -228,7 +228,6 @@ extern uint32_t pios_spi_flash_accel_adapter_id;
228228#define PIOS_RCVR_MAX_DEVS 3
229229#define PIOS_RCVR_MAX_CHANNELS 12
230230#define PIOS_GCSRCVR_TIMEOUT_MS 100
231- #define PIOS_OPLINK_RCVR_TIMEOUT_MS 100
232231
233232// -------------------------
234233// Receiver PPM input
Original file line number Diff line number Diff line change @@ -203,8 +203,6 @@ extern uint32_t pios_packet_handler;
203203#define PIOS_RCVR_MAX_DEVS 3
204204#define PIOS_RCVR_MAX_CHANNELS 12
205205#define PIOS_GCSRCVR_TIMEOUT_MS 100
206- #define PIOS_RFM22B_RCVR_TIMEOUT_MS 200
207- #define PIOS_OPLINK_RCVR_TIMEOUT_MS 100
208206
209207// -------------------------
210208// Receiver PPM input
Original file line number Diff line number Diff line change @@ -28,8 +28,7 @@ include $(FLIGHT_ROOT_DIR)/make/firmware-defs.mk
2828override USE_DSP_LIB := NO
2929
3030# List of mandatory modules to include
31- MODULES += \
32- RadioComBridge
31+ MODULES += RadioComBridge
3332
3433# List of optional modules to include
3534OPTMODULES =
Original file line number Diff line number Diff line change @@ -161,7 +161,6 @@ extern uint32_t pios_ws2811_id;
161161#define PIOS_RCVR_MAX_DEVS 3
162162#define PIOS_RCVR_MAX_CHANNELS 12
163163#define PIOS_GCSRCVR_TIMEOUT_MS 100
164- #define PIOS_OPLINK_RCVR_TIMEOUT_MS 100
165164
166165// -------------------------
167166// Receiver PPM input
Original file line number Diff line number Diff line change 1+
12/**
23 ******************************************************************************
34 * @addtogroup OpenPilotSystem OpenPilot System
@@ -223,8 +224,6 @@ extern uint32_t pios_packet_handler;
223224#define PIOS_RCVR_MAX_DEVS 3
224225#define PIOS_RCVR_MAX_CHANNELS 12
225226#define PIOS_GCSRCVR_TIMEOUT_MS 100
226- #define PIOS_RFM22B_RCVR_TIMEOUT_MS 200
227- #define PIOS_OPLINK_RCVR_TIMEOUT_MS 100
228227
229228// -------------------------
230229// Receiver PPM input
Original file line number Diff line number Diff line change @@ -218,8 +218,6 @@ extern uint32_t pios_packet_handler;
218218#define PIOS_RCVR_MAX_DEVS 3
219219#define PIOS_RCVR_MAX_CHANNELS 12
220220#define PIOS_GCSRCVR_TIMEOUT_MS 100
221- #define PIOS_RFM22B_RCVR_TIMEOUT_MS 200
222- #define PIOS_OPLINK_RCVR_TIMEOUT_MS 100
223221
224222// -------------------------
225223// Receiver PPM input
Original file line number Diff line number Diff line change @@ -196,7 +196,6 @@ extern uint32_t pios_ws2811_id;
196196#define PIOS_RCVR_MAX_DEVS 3
197197#define PIOS_RCVR_MAX_CHANNELS 12
198198#define PIOS_GCSRCVR_TIMEOUT_MS 100
199- #define PIOS_OPLINK_RCVR_TIMEOUT_MS 100
200199
201200// -------------------------
202201// Receiver PPM input
You can’t perform that action at this time.
0 commit comments