mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-22 09:33:35 +08:00
RTCM: use MAVLINK_MSG_ID_GPS_RTCM_DATA mavlink message (supports fragmentation)
This commit is contained in:
@@ -441,6 +441,11 @@ void GPS::handleInjectDataTopic()
|
||||
if (updated) {
|
||||
struct gps_inject_data_s msg;
|
||||
orb_copy(ORB_ID(gps_inject_data), orb_inject_data_cur_fd, &msg);
|
||||
|
||||
/* Write the message to the gps device. Note that the message could be fragmented.
|
||||
* But as we don't write anywhere else to the device during operation, we don't
|
||||
* need to assemble the message first.
|
||||
*/
|
||||
injectData(msg.data, msg.len);
|
||||
|
||||
_orb_inject_data_next = (_orb_inject_data_next + 1) % _orb_inject_data_fd_count;
|
||||
|
||||
Reference in New Issue
Block a user