mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-31 08:11:36 +08:00
gps dump communication to file: include received RTCM messages
This commit is contained in:
@@ -452,6 +452,12 @@ void GPS::handleInjectDataTopic()
|
|||||||
|
|
||||||
bool GPS::injectData(uint8_t *data, size_t len)
|
bool GPS::injectData(uint8_t *data, size_t len)
|
||||||
{
|
{
|
||||||
|
if (_dump_to_gps_device_fd >= 0) {
|
||||||
|
if (write(_dump_to_gps_device_fd, data, len) != len) {
|
||||||
|
PX4_WARN("gps dump failed");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return ::write(_serial_fd, data, len) == len;
|
return ::write(_serial_fd, data, len) == len;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user