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