RTCM: use MAVLINK_MSG_ID_GPS_RTCM_DATA mavlink message (supports fragmentation)

This commit is contained in:
Beat Küng
2016-06-02 09:26:03 +02:00
committed by Lorenz Meier
parent 0e3d660ccd
commit 25cff52019
4 changed files with 17 additions and 10 deletions
+5
View File
@@ -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;