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
|
||||
|
||||
#include "SerialDevice.h"
|
||||
#include <AP_HAL/utility/Socket.h>
|
||||
#include <AP_HAL/utility/Socket_native.h>
|
||||
|
||||
class ConsoleDevice: public SerialDevice {
|
||||
public:
|
||||
|
|
|
@ -18,11 +18,15 @@
|
|||
|
||||
#include <unistd.h>
|
||||
|
||||
#include <AP_HAL/utility/Socket.h>
|
||||
#include <AP_HAL/utility/Socket_native.h>
|
||||
#include <AP_HAL/utility/sparse-endian.h>
|
||||
|
||||
#include "RCInput.h"
|
||||
|
||||
#ifndef AP_SOCKET_NATIVE_ENABLED
|
||||
#error "need native"
|
||||
#endif
|
||||
|
||||
namespace Linux {
|
||||
|
||||
class RCInput_SoloLink : public RCInput
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#pragma once
|
||||
|
||||
#include "RCInput.h"
|
||||
#include <AP_HAL/utility/Socket.h>
|
||||
#include <AP_HAL/utility/Socket_native.h>
|
||||
#include "RCInput_UDP_Protocol.h"
|
||||
|
||||
#define RCINPUT_UDP_DEF_PORT 777
|
||||
|
|
|
@ -1,7 +1,11 @@
|
|||
#pragma once
|
||||
|
||||
#include <AP_HAL/utility/Socket_native.h>
|
||||
#include "SerialDevice.h"
|
||||
#include <AP_HAL/utility/Socket.h>
|
||||
|
||||
#ifndef AP_SOCKET_NATIVE_ENABLED
|
||||
#error "need native"
|
||||
#endif
|
||||
|
||||
class TCPServerDevice: public SerialDevice {
|
||||
public:
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#pragma once
|
||||
|
||||
#include "SerialDevice.h"
|
||||
#include <AP_HAL/utility/Socket.h>
|
||||
#include <AP_HAL/utility/Socket_native.h>
|
||||
|
||||
class UARTDevice: public SerialDevice {
|
||||
public:
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#pragma once
|
||||
|
||||
#include <AP_HAL/utility/Socket_native.h>
|
||||
#include "SerialDevice.h"
|
||||
#include <AP_HAL/utility/Socket.h>
|
||||
|
||||
class UDPDevice: public SerialDevice {
|
||||
public:
|
||||
|
|
Loading…
Reference in New Issue