blob: a6326bad1a0b6d403eb9b9d8f8eeeb567b28f0ae (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
/*
* mavlink_messages.h
*
* Created on: 25.02.2014
* Author: ton
*/
#ifndef MAVLINK_MESSAGES_H_
#define MAVLINK_MESSAGES_H_
#include "mavlink_stream.h"
#define MAX_TOPICS_PER_MAVLINK_STREAM 4
struct msgs_list_s {
char *name;
void (*callback)(const MavlinkStream *);
const struct orb_metadata *topics[MAX_TOPICS_PER_MAVLINK_STREAM+1];
size_t sizes[MAX_TOPICS_PER_MAVLINK_STREAM+1];
};
extern struct msgs_list_s msgs_list[];
static void msg_heartbeat(const MavlinkStream *stream);
static void msg_sys_status(const MavlinkStream *stream);
static void msg_highres_imu(const MavlinkStream *stream);
#endif /* MAVLINK_MESSAGES_H_ */
|