Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
1681fe49
Commit
1681fe49
authored
Jan 26, 2012
by
LM
Browse files
Merge branch 'v10release' of github.com:pixhawk/qgroundcontrol
parents
cf5e8e4d
4ce3ce38
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
thirdParty/mavlink/include/mavlink_protobuf_manager.hpp
View file @
1681fe49
...
...
@@ -42,6 +42,18 @@ public:
registerType
(
msg
);
}
// register ObstacleList
{
std
::
tr1
::
shared_ptr
<
px
::
ObstacleList
>
msg
(
new
px
::
ObstacleList
);
registerType
(
msg
);
}
// register ObstacleMap
{
std
::
tr1
::
shared_ptr
<
px
::
ObstacleMap
>
msg
(
new
px
::
ObstacleMap
);
registerType
(
msg
);
}
srand
(
time
(
NULL
));
mStreamID
=
rand
()
+
1
;
}
...
...
@@ -186,6 +198,11 @@ public:
if
(
offset
==
0
)
{
queue
.
push_back
(
msg
);
if
((
flags
&
0x1
)
!=
0x1
)
{
reassemble
=
true
;
}
}
else
{
...
...
thirdParty/mavlink/include/mavlink_types.h
View file @
1681fe49
...
...
@@ -15,10 +15,21 @@
#define MAVLINK_MAX_PACKET_LEN (MAVLINK_MAX_PAYLOAD_LEN + MAVLINK_NUM_NON_PAYLOAD_BYTES) ///< Maximum packet length
#if (defined __GNUC__) || (defined _MSC_VER) || (defined __MINGW32__) || (defined __WATCOMC__) || (defined __CMB__) || (defined __BORLANDC__) || (defined __clang__)
#define MAVLINK_EXTENDED_MESSAGES_ENABLED
#endif
// EXTENDED message definition - the extended message set is compatible to standard MAVLink message passing
// but does NOT have to be supported by the platform. The extended message set will NOT consume
// any memory if the messages are not explicitely used
#ifdef MAVLINK_EXTENDED_MESSAGES_ENABLED
#define MAVLINK_MSG_ID_EXTENDED_MESSAGE 255
#define MAVLINK_EXTENDED_HEADER_LEN 14
#define MAVLINK_MAX_EXTENDED_PACKET_LEN 65507
#define MAVLINK_MAX_EXTENDED_PAYLOAD_LEN (MAVLINK_MAX_EXTENDED_PACKET_LEN - MAVLINK_EXTENDED_HEADER_LEN - MAVLINK_NUM_NON_PAYLOAD_BYTES)
#endif
typedef
struct
param_union
{
union
{
...
...
@@ -51,12 +62,13 @@ typedef struct __mavlink_message {
uint64_t
payload64
[(
MAVLINK_MAX_PAYLOAD_LEN
+
MAVLINK_NUM_CHECKSUM_BYTES
+
7
)
/
8
];
}
mavlink_message_t
;
#ifdef MAVLINK_EXTENDED_MESSAGES_ENABLED
typedef
struct
__mavlink_extended_message
{
mavlink_message_t
base_msg
;
int32_t
extended_payload_len
;
///< Length of extended payload if any
uint8_t
extended_payload
[
MAVLINK_MAX_EXTENDED_PAYLOAD_LEN
];
}
mavlink_extended_message_t
;
#endif
typedef
enum
{
...
...
thirdParty/mavlink/include/pixhawk/pixhawk.pb.h
View file @
1681fe49
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment