forked from ArduPilot/APWeb
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmavlink_core.h
More file actions
33 lines (23 loc) · 799 Bytes
/
mavlink_core.h
File metadata and controls
33 lines (23 loc) · 799 Bytes
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
29
30
31
32
33
/*
core mavlink functionality
*/
#pragma once
#define MAVLINK_SEPARATE_HELPERS
#define MAVLINK_NO_CONVERSION_HELPERS
#define MAVLINK_SEND_UART_BYTES(chan, buf, len) comm_send_buffer(chan, buf, len)
// allow two mavlink ports
#define MAVLINK_COMM_NUM_BUFFERS 1
#include "generated/mavlink/ardupilotmega/version.h"
#include "generated/mavlink/mavlink_types.h"
extern mavlink_system_t mavlink_system;
/*
Send a byte to the nominated MAVLink channel
*/
void comm_send_ch(mavlink_channel_t chan, uint8_t ch);
#define MAVLINK_USE_CONVENIENCE_FUNCTIONS
#include "generated/mavlink/ardupilotmega/mavlink.h"
// alias for link to flight controller
#define MAVLINK_COMM_FC MAVLINK_COMM_0
#define MAVLINK_SYSTEM_ID 67
#define MAVLINK_TARGET_SYSTEM_ID 1
#define MAVLINK_COMPONENT_ID_REMOTE_LOG 72