mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-07 19:30:35 +08:00
Linux: Update mavlink files to track nuttx upstream
Modified LInux impl to track changes to nuttx impl. Signed-off-by: Mark Charlebois <charlebm@gmail.com>
This commit is contained in:
@@ -751,7 +751,7 @@ Mavlink::get_free_tx_buf()
|
||||
}
|
||||
|
||||
void
|
||||
Mavlink::send_message(const uint8_t msgid, const void *msg)
|
||||
Mavlink::send_message(const uint8_t msgid, const void *msg, uint8_t component_ID)
|
||||
{
|
||||
/* If the wait until transmit flag is on, only transmit after we've received messages.
|
||||
Otherwise, transmit all the time. */
|
||||
@@ -785,7 +785,7 @@ Mavlink::send_message(const uint8_t msgid, const void *msg)
|
||||
/* use mavlink's internal counter for the TX seq */
|
||||
buf[2] = mavlink_get_channel_status(_channel)->current_tx_seq++;
|
||||
buf[3] = mavlink_system.sysid;
|
||||
buf[4] = mavlink_system.compid;
|
||||
buf[4] = (component_ID == 0) ? mavlink_system.compid : component_ID;
|
||||
buf[5] = msgid;
|
||||
|
||||
/* payload */
|
||||
|
||||
Reference in New Issue
Block a user