mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-30 15:52:12 +01:00
LP-548 Adds OPLInkRcvr to several more FCs, uncrustify, and fixes a few comments.
This commit is contained in:
parent
9356ac91da
commit
1627eb3882
@ -611,11 +611,8 @@ static void ProcessRadioStream(UAVTalkConnection inConnectionHandle, UAVTalkConn
|
|||||||
case OPLINKRECEIVER_OBJID:
|
case OPLINKRECEIVER_OBJID:
|
||||||
case MetaObjectId(OPLINKRECEIVER_OBJID):
|
case MetaObjectId(OPLINKRECEIVER_OBJID):
|
||||||
// Receive object locally
|
// Receive object locally
|
||||||
// These objects are received by the modem and are not transmitted to the telemetry port
|
|
||||||
// - OPLINKRECEIVER_OBJID : not sure why
|
|
||||||
// some objects will send back a response to the remote modem
|
|
||||||
UAVTalkReceiveObject(inConnectionHandle, true);
|
UAVTalkReceiveObject(inConnectionHandle, true);
|
||||||
// all other packets are relayed to the telemetry port
|
// Also send the packet to the telemetry point.
|
||||||
UAVTalkRelayPacket(inConnectionHandle, outConnectionHandle);
|
UAVTalkRelayPacket(inConnectionHandle, outConnectionHandle);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
@ -91,7 +91,7 @@ static void PIOS_oplinkrcvr_ppm_callback(uint32_t oplinkrcvr_id, const int16_t *
|
|||||||
// Link quality is 0-128, so scale it down to 0-100
|
// Link quality is 0-128, so scale it down to 0-100
|
||||||
oplinkrcvr_dev->oplinkreceiverdata.LinkQuality = quality * 100 / 128;
|
oplinkrcvr_dev->oplinkreceiverdata.LinkQuality = quality * 100 / 128;
|
||||||
|
|
||||||
//OPLinkReceiverSet(&oplinkrcvr_dev->oplinkreceiverdata);
|
OPLinkReceiverSet(&oplinkrcvr_dev->oplinkreceiverdata);
|
||||||
|
|
||||||
oplinkrcvr_dev->Fresh = true;
|
oplinkrcvr_dev->Fresh = true;
|
||||||
}
|
}
|
||||||
|
@ -107,8 +107,8 @@
|
|||||||
#define PIOS_INCLUDE_SRXL
|
#define PIOS_INCLUDE_SRXL
|
||||||
#define PIOS_INCLUDE_HOTT
|
#define PIOS_INCLUDE_HOTT
|
||||||
#define PIOS_INCLUDE_IBUS
|
#define PIOS_INCLUDE_IBUS
|
||||||
/* #define PIOS_INCLUDE_GCSRCVR */
|
#define PIOS_INCLUDE_GCSRCVR
|
||||||
/* #define PIOS_INCLUDE_OPLINKRCVR */
|
#define PIOS_INCLUDE_OPLINKRCVR
|
||||||
|
|
||||||
/* PIOS abstract receiver interface */
|
/* PIOS abstract receiver interface */
|
||||||
#define PIOS_INCLUDE_RCVR
|
#define PIOS_INCLUDE_RCVR
|
||||||
|
@ -105,7 +105,7 @@
|
|||||||
#define PIOS_INCLUDE_DSM
|
#define PIOS_INCLUDE_DSM
|
||||||
#define PIOS_INCLUDE_SBUS
|
#define PIOS_INCLUDE_SBUS
|
||||||
#define PIOS_INCLUDE_GCSRCVR
|
#define PIOS_INCLUDE_GCSRCVR
|
||||||
// #define PIOS_INCLUDE_OPLINKRCVR
|
#define PIOS_INCLUDE_OPLINKRCVR
|
||||||
|
|
||||||
/* PIOS abstract receiver interface */
|
/* PIOS abstract receiver interface */
|
||||||
#define PIOS_INCLUDE_RCVR
|
#define PIOS_INCLUDE_RCVR
|
||||||
|
@ -109,8 +109,8 @@
|
|||||||
#define PIOS_INCLUDE_SRXL
|
#define PIOS_INCLUDE_SRXL
|
||||||
#define PIOS_INCLUDE_HOTT
|
#define PIOS_INCLUDE_HOTT
|
||||||
#define PIOS_INCLUDE_IBUS
|
#define PIOS_INCLUDE_IBUS
|
||||||
/* #define PIOS_INCLUDE_GCSRCVR */
|
#define PIOS_INCLUDE_GCSRCVR
|
||||||
/* #define PIOS_INCLUDE_OPLINKRCVR */
|
#define PIOS_INCLUDE_OPLINKRCVR
|
||||||
|
|
||||||
/* PIOS abstract receiver interface */
|
/* PIOS abstract receiver interface */
|
||||||
#define PIOS_INCLUDE_RCVR
|
#define PIOS_INCLUDE_RCVR
|
||||||
|
@ -113,7 +113,7 @@
|
|||||||
#define PIOS_INCLUDE_EXBUS
|
#define PIOS_INCLUDE_EXBUS
|
||||||
#define PIOS_INCLUDE_IBUS
|
#define PIOS_INCLUDE_IBUS
|
||||||
#define PIOS_INCLUDE_GCSRCVR
|
#define PIOS_INCLUDE_GCSRCVR
|
||||||
// #define PIOS_INCLUDE_OPLINKRCVR
|
#define PIOS_INCLUDE_OPLINKRCVR
|
||||||
|
|
||||||
/* PIOS abstract receiver interface */
|
/* PIOS abstract receiver interface */
|
||||||
#define PIOS_INCLUDE_RCVR
|
#define PIOS_INCLUDE_RCVR
|
||||||
|
@ -100,7 +100,7 @@
|
|||||||
#define PIOS_INCLUDE_DSM
|
#define PIOS_INCLUDE_DSM
|
||||||
#define PIOS_INCLUDE_SBUS
|
#define PIOS_INCLUDE_SBUS
|
||||||
#define PIOS_INCLUDE_GCSRCVR
|
#define PIOS_INCLUDE_GCSRCVR
|
||||||
/* #define PIOS_INCLUDE_OPLINKRCVR */
|
#define PIOS_INCLUDE_OPLINKRCVR
|
||||||
|
|
||||||
/* PIOS abstract receiver interface */
|
/* PIOS abstract receiver interface */
|
||||||
#define PIOS_INCLUDE_RCVR
|
#define PIOS_INCLUDE_RCVR
|
||||||
|
@ -56,7 +56,7 @@ class UavtalkDemo():
|
|||||||
_port = int(port[3:]) - 1
|
_port = int(port[3:]) - 1
|
||||||
else:
|
else:
|
||||||
_port = port
|
_port = port
|
||||||
serPort = serial.Serial(port, 115200, timeout=.5)
|
serPort = serial.Serial(port, 57600, timeout=.5)
|
||||||
if not serPort.isOpen():
|
if not serPort.isOpen():
|
||||||
raise IOError("Failed to open serial port")
|
raise IOError("Failed to open serial port")
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user