dune
dune copied to clipboard
Feature/ardupilot
Already tested with a UDP MavLink stream.
Hi,
In the near future, I also want to bring back the option of using a raw serial link (in stead of going via SerialOverTcp). Maybe a new abstraction layer for choosing link type is nescessary?
Kristian
I'd use IO::Handle to get an abstract for TCP/Serial. One more member variable for a possible UDP connection. Assuming there won't multiple connections at the same time three arguments could be used to define everything: string to identify interface, address/device and port unsigned for baud rate unsigned for udp port