Skip to content

Commit 59d20ee

Browse files
committed
LP-548 Moves PIOS_OPLINK_RCVR_TIMEOUT_MS to pios_oplinkrcvr.c and adds oplinkreceiver and gcsreceiver modules to coptercontrol.
1 parent 1627eb3 commit 59d20ee

15 files changed

Lines changed: 8 additions & 18 deletions

File tree

flight/pios/common/pios_oplinkrcvr.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@
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 */
4244
static int32_t PIOS_OPLinkRCVR_Get(uint32_t rcvr_id, uint8_t channel);

flight/targets/boards/ccf3d/pios_board.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff 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

flight/targets/boards/coptercontrol/firmware/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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

flight/targets/boards/coptercontrol/pios_board.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff 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

flight/targets/boards/discoveryf4bare/pios_board.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff 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

flight/targets/boards/oplinkmini/firmware/Makefile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@ include $(FLIGHT_ROOT_DIR)/make/firmware-defs.mk
2828
override 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
3534
OPTMODULES =

flight/targets/boards/pikoblx/pios_board.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff 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

flight/targets/boards/revolution/pios_board.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
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

flight/targets/boards/revonano/pios_board.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff 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

flight/targets/boards/revoproto/pios_board.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)