Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
Baitboat
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OpenSource
Baitboat
Commits
a6c1a86c
Commit
a6c1a86c
authored
13 years ago
by
Andrew Tridgell
Browse files
Options
Downloads
Patches
Plain Diff
mavlink: fixed build with uart resend
parent
1ad17bc7
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
libraries/GCS_MAVLink/include/mavlink/v1.0/mavlink_helpers.h
+2
-2
2 additions, 2 deletions
libraries/GCS_MAVLink/include/mavlink/v1.0/mavlink_helpers.h
libraries/GCS_MAVLink/include/mavlink/v1.0/protocol.h
+1
-0
1 addition, 0 deletions
libraries/GCS_MAVLink/include/mavlink/v1.0/protocol.h
with
3 additions
and
2 deletions
libraries/GCS_MAVLink/include/mavlink/v1.0/mavlink_helpers.h
+
2
−
2
View file @
a6c1a86c
...
@@ -137,7 +137,7 @@ MAVLINK_HELPER void _mav_finalize_message_chan_send(mavlink_channel_t chan, uint
...
@@ -137,7 +137,7 @@ MAVLINK_HELPER void _mav_finalize_message_chan_send(mavlink_channel_t chan, uint
* @brief re-send a message over a uart channel
* @brief re-send a message over a uart channel
* this is more stack efficient than re-marshalling the message
* this is more stack efficient than re-marshalling the message
*/
*/
MAVLINK_HELPER
void
mav_uart_resend
(
mavlink_channel_t
chan
,
const
mavlink_message_t
*
msg
)
MAVLINK_HELPER
void
mav
link
_uart_resend
(
mavlink_channel_t
chan
,
const
mavlink_message_t
*
msg
)
{
{
uint8_t
ck
[
2
];
uint8_t
ck
[
2
];
...
@@ -147,7 +147,7 @@ MAVLINK_HELPER void mav_uart_resend(mavlink_channel_t chan, const mavlink_messag
...
@@ -147,7 +147,7 @@ MAVLINK_HELPER void mav_uart_resend(mavlink_channel_t chan, const mavlink_messag
MAVLINK_START_UART_SEND
(
chan
,
MAVLINK_NUM_NON_PAYLOAD_BYTES
+
msg
->
len
);
MAVLINK_START_UART_SEND
(
chan
,
MAVLINK_NUM_NON_PAYLOAD_BYTES
+
msg
->
len
);
_mavlink_send_uart
(
chan
,
(
const
char
*
)
&
msg
->
magic
,
MAVLINK_NUM_HEADER_BYTES
);
_mavlink_send_uart
(
chan
,
(
const
char
*
)
&
msg
->
magic
,
MAVLINK_NUM_HEADER_BYTES
);
_mavlink_send_uart
(
chan
,
_MAV_PAYLOAD
(
msg
),
msg
->
len
);
_mavlink_send_uart
(
chan
,
_MAV_PAYLOAD
(
msg
),
msg
->
len
);
_mavlink_send_uart
(
chan
,
ck
,
2
);
_mavlink_send_uart
(
chan
,
(
const
char
*
)
ck
,
2
);
MAVLINK_END_UART_SEND
(
chan
,
MAVLINK_NUM_NON_PAYLOAD_BYTES
+
msg
->
len
);
MAVLINK_END_UART_SEND
(
chan
,
MAVLINK_NUM_NON_PAYLOAD_BYTES
+
msg
->
len
);
}
}
...
...
This diff is collapsed.
Click to expand it.
libraries/GCS_MAVLink/include/mavlink/v1.0/protocol.h
+
1
−
0
View file @
a6c1a86c
...
@@ -60,6 +60,7 @@ MAVLINK_HELPER uint16_t mavlink_finalize_message(mavlink_message_t* msg, uint8_t
...
@@ -60,6 +60,7 @@ MAVLINK_HELPER uint16_t mavlink_finalize_message(mavlink_message_t* msg, uint8_t
MAVLINK_HELPER
void
_mav_finalize_message_chan_send
(
mavlink_channel_t
chan
,
uint8_t
msgid
,
const
char
*
packet
,
uint8_t
length
);
MAVLINK_HELPER
void
_mav_finalize_message_chan_send
(
mavlink_channel_t
chan
,
uint8_t
msgid
,
const
char
*
packet
,
uint8_t
length
);
#endif // MAVLINK_CRC_EXTRA
#endif // MAVLINK_CRC_EXTRA
MAVLINK_HELPER
uint16_t
mavlink_msg_to_send_buffer
(
uint8_t
*
buffer
,
const
mavlink_message_t
*
msg
);
MAVLINK_HELPER
uint16_t
mavlink_msg_to_send_buffer
(
uint8_t
*
buffer
,
const
mavlink_message_t
*
msg
);
MAVLINK_HELPER
void
mavlink_uart_resend
(
mavlink_channel_t
chan
,
const
mavlink_message_t
*
msg
);
MAVLINK_HELPER
void
mavlink_start_checksum
(
mavlink_message_t
*
msg
);
MAVLINK_HELPER
void
mavlink_start_checksum
(
mavlink_message_t
*
msg
);
MAVLINK_HELPER
void
mavlink_update_checksum
(
mavlink_message_t
*
msg
,
uint8_t
c
);
MAVLINK_HELPER
void
mavlink_update_checksum
(
mavlink_message_t
*
msg
,
uint8_t
c
);
MAVLINK_HELPER
uint8_t
mavlink_parse_char
(
uint8_t
chan
,
uint8_t
c
,
mavlink_message_t
*
r_message
,
mavlink_status_t
*
r_mavlink_status
);
MAVLINK_HELPER
uint8_t
mavlink_parse_char
(
uint8_t
chan
,
uint8_t
c
,
mavlink_message_t
*
r_message
,
mavlink_status_t
*
r_mavlink_status
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment