54#if __linux__ || __APPLE__
59 #include <mavlink/common/mavlink.h>
79 bool cabelCheck =
false;
81 Generic_Port() =
default;
83 virtual ~Generic_Port() =
default;
85 Generic_Port(
const Generic_Port&) =
delete;
87 Generic_Port(Generic_Port&&) =
delete;
89 Generic_Port& operator=(
const Generic_Port&) =
delete;
91 Generic_Port& operator=(Generic_Port&&) =
delete;
95 virtual int read_message(mavlink_message_t& message) = 0;
99 virtual int write_message(
const mavlink_message_t& message) = 0;
102 virtual bool is_running() = 0;
105 virtual void start() = 0;
108 virtual void stop() = 0;
void start()
Starts the Thread.
void stop()
Stops the Thread.