mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-22 07:44:03 -04:00
AP_HAL_Linux: made UARTDriver use TCPClientDevice
This commit is contained in:
parent
244cdb3507
commit
34c1fe6e66
@ -27,6 +27,7 @@
|
||||
#include "UARTDevice.h"
|
||||
#include "UDPDevice.h"
|
||||
#include "ConsoleDevice.h"
|
||||
#include "TCPClientDevice.h"
|
||||
|
||||
extern const AP_HAL::HAL& hal;
|
||||
|
||||
@ -74,8 +75,9 @@ void LinuxUARTDriver::begin(uint32_t b, uint16_t rxS, uint16_t txS)
|
||||
switch (_parseDevicePath(device_path)){
|
||||
case DEVICE_TCP:
|
||||
{
|
||||
_device = new TCPClientDevice(_ip, _base_port);
|
||||
_device->open();
|
||||
_connected = false;
|
||||
::fprintf(stderr, "Please, use UDP instead\n");
|
||||
break;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user