mirror of
https://github.com/OpenSolo/OpenSolo.git
synced 2025-04-29 22:24:32 +02:00
28 lines
490 B
C++
28 lines
490 B
C++
#ifndef _MAVLINK_WRITER_H
|
|
#define _MAVLINK_WRITER_H
|
|
|
|
#include <vector>
|
|
|
|
#include "../mavlink/c_library/ardupilotmega/mavlink.h"
|
|
#include "INIReader.h"
|
|
#include "telem_client.h"
|
|
|
|
#define UNUSED __attribute__((unused))
|
|
|
|
class MAVLink_Writer
|
|
{
|
|
public:
|
|
MAVLink_Writer(INIReader *config UNUSED)
|
|
{
|
|
}
|
|
void send_message(const mavlink_message_t &msg);
|
|
|
|
void add_client(Telem_Client *);
|
|
bool any_data_to_send();
|
|
|
|
private:
|
|
std::vector< Telem_Client * > clients;
|
|
};
|
|
|
|
#endif
|