mirror of https://github.com/ArduPilot/ardupilot
AP_HAL_Linux: use SocketAPM_native
This commit is contained in:
parent
ef67fa4293
commit
931bae5b88
|
@ -1,7 +1,7 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "SerialDevice.h"
|
#include "SerialDevice.h"
|
||||||
#include <AP_HAL/utility/Socket.h>
|
#include <AP_HAL/utility/Socket_native.h>
|
||||||
|
|
||||||
class ConsoleDevice: public SerialDevice {
|
class ConsoleDevice: public SerialDevice {
|
||||||
public:
|
public:
|
||||||
|
|
|
@ -18,11 +18,15 @@
|
||||||
|
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
#include <AP_HAL/utility/Socket.h>
|
#include <AP_HAL/utility/Socket_native.h>
|
||||||
#include <AP_HAL/utility/sparse-endian.h>
|
#include <AP_HAL/utility/sparse-endian.h>
|
||||||
|
|
||||||
#include "RCInput.h"
|
#include "RCInput.h"
|
||||||
|
|
||||||
|
#ifndef AP_SOCKET_NATIVE_ENABLED
|
||||||
|
#error "need native"
|
||||||
|
#endif
|
||||||
|
|
||||||
namespace Linux {
|
namespace Linux {
|
||||||
|
|
||||||
class RCInput_SoloLink : public RCInput
|
class RCInput_SoloLink : public RCInput
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "RCInput.h"
|
#include "RCInput.h"
|
||||||
#include <AP_HAL/utility/Socket.h>
|
#include <AP_HAL/utility/Socket_native.h>
|
||||||
#include "RCInput_UDP_Protocol.h"
|
#include "RCInput_UDP_Protocol.h"
|
||||||
|
|
||||||
#define RCINPUT_UDP_DEF_PORT 777
|
#define RCINPUT_UDP_DEF_PORT 777
|
||||||
|
|
|
@ -1,7 +1,11 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
#include <AP_HAL/utility/Socket_native.h>
|
||||||
#include "SerialDevice.h"
|
#include "SerialDevice.h"
|
||||||
#include <AP_HAL/utility/Socket.h>
|
|
||||||
|
#ifndef AP_SOCKET_NATIVE_ENABLED
|
||||||
|
#error "need native"
|
||||||
|
#endif
|
||||||
|
|
||||||
class TCPServerDevice: public SerialDevice {
|
class TCPServerDevice: public SerialDevice {
|
||||||
public:
|
public:
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "SerialDevice.h"
|
#include "SerialDevice.h"
|
||||||
#include <AP_HAL/utility/Socket.h>
|
#include <AP_HAL/utility/Socket_native.h>
|
||||||
|
|
||||||
class UARTDevice: public SerialDevice {
|
class UARTDevice: public SerialDevice {
|
||||||
public:
|
public:
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
#include <AP_HAL/utility/Socket_native.h>
|
||||||
#include "SerialDevice.h"
|
#include "SerialDevice.h"
|
||||||
#include <AP_HAL/utility/Socket.h>
|
|
||||||
|
|
||||||
class UDPDevice: public SerialDevice {
|
class UDPDevice: public SerialDevice {
|
||||||
public:
|
public:
|
||||||
|
|
Loading…
Reference in New Issue