File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4343#include "gpspositionsensor.h"
4444#include "manualcontrolcommand.h"
4545#include "manualcontrolsettings.h"
46- #include "oplinkreceiver .h"
46+ #include "oplinkstatus .h"
4747#include "accessorydesired.h"
4848#include "attitudestate.h"
4949#include "airspeedstate.h"
@@ -479,9 +479,10 @@ static void msp_send_analog(struct msp_bridge *m)
479479 ManualControlSettingsChannelGroupsGet (& channelGroups );
480480
481481#ifdef PIOS_INCLUDE_OPLINKRCVR
482- if (channelGroups .Throttle == MANUALCONTROLSETTINGS_CHANNELGROUPS_OPLINK ) {
482+ if ((channelGroups .Throttle == MANUALCONTROLSETTINGS_CHANNELGROUPS_OPLINK ) ||
483+ (channelGroups .Throttle == MANUALCONTROLSETTINGS_CHANNELGROUPS_OPENLRS )) {
483484 int8_t rssi ;
484- OPLinkReceiverRSSIGet (& rssi );
485+ OPLinkStatusRSSIGet (& rssi );
485486
486487 // MSP values have no units, and OSD rssi display requires calibration anyway, so we will translate OPLINK_LOW_RSSI to OPLINK_HIGH_RSSI -> 0-1023
487488 if (rssi < OPLINK_LOW_RSSI ) {
Original file line number Diff line number Diff line change 5252#include "taskinfo.h"
5353#include "mavlink.h"
5454#include "hwsettings.h"
55- #include "oplinkreceiver .h"
55+ #include "oplinkstatus .h"
5656#include "receiverstatus.h"
5757#include "manualcontrolsettings.h"
5858
@@ -248,9 +248,10 @@ static void mavlink_send_rc_channels()
248248 ManualControlSettingsChannelGroupsGet (& channelGroups );
249249
250250#ifdef PIOS_INCLUDE_OPLINKRCVR
251- if (channelGroups .Throttle == MANUALCONTROLSETTINGS_CHANNELGROUPS_OPLINK ) {
251+ if ((channelGroups .Throttle == MANUALCONTROLSETTINGS_CHANNELGROUPS_OPLINK ) ||
252+ (channelGroups .Throttle == MANUALCONTROLSETTINGS_CHANNELGROUPS_OPENLRS )) {
252253 int8_t rssi ;
253- OPLinkReceiverRSSIGet (& rssi );
254+ OPLinkStatusRSSIGet (& rssi );
254255
255256 if (rssi < OPLINK_LOW_RSSI ) {
256257 rssi = OPLINK_LOW_RSSI ;
You can’t perform that action at this time.
0 commit comments