1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-01-18 03:52:11 +01:00

LP-548 Removes OPLinkReceiver from coptercontrol and fixes setting of OPLinkReceiver RSSI and quality on revolution and sparky2.

This commit is contained in:
Brian Webb 2017-09-04 12:16:48 -07:00
parent 59d20ee752
commit 4e6077ca2a
3 changed files with 5 additions and 7 deletions

View File

@ -86,10 +86,10 @@ static void PIOS_oplinkrcvr_ppm_callback(uint32_t oplinkrcvr_id, const int16_t *
// Update the RSSI and quality fields.
int8_t rssi;
OPLinkReceiverRSSIGet(&rssi);
OPLinkStatusRSSIGet(&rssi);
oplinkrcvr_dev->oplinkreceiverdata.RSSI = rssi;
uint8_t quality;
OPLinkReceiverLinkQualityGet(&quality);
uint16_t quality;
OPLinkStatusLinkQualityGet(&quality);
// Link quality is 0-128, so scale it down to 0-100
oplinkrcvr_dev->oplinkreceiverdata.LinkQuality = quality * 100 / 128;

View File

@ -133,8 +133,6 @@ ifndef TESTAPP
SRC += $(FLIGHT_UAVOBJ_DIR)/txpidsettings.c
SRC += $(FLIGHT_UAVOBJ_DIR)/txpidstatus.c
SRC += $(FLIGHT_UAVOBJ_DIR)/mpugyroaccelsettings.c
SRC += $(FLIGHT_UAVOBJ_DIR)/gcsreceiver.c
SRC += $(FLIGHT_UAVOBJ_DIR)/oplinkreceiver.c
# Command line option for Gcsreceiver module
ifeq ($(GCSRECEIVER), YES)
SRC += $(FLIGHT_UAVOBJ_DIR)/gcsreceiver.c

View File

@ -107,8 +107,8 @@
#define PIOS_INCLUDE_SRXL
#define PIOS_INCLUDE_HOTT
#define PIOS_INCLUDE_IBUS
#define PIOS_INCLUDE_GCSRCVR
#define PIOS_INCLUDE_OPLINKRCVR
/* #define PIOS_INCLUDE_GCSRCVR */
/* #define PIOS_INCLUDE_OPLINKRCVR */
/* PIOS abstract receiver interface */
#define PIOS_INCLUDE_RCVR