Skip to content

Commit

Permalink
Merge pull request #747 from Dronecode/fix-ignore-qgc
Browse files Browse the repository at this point in the history
core: hack to ignore messages from QGC for now
  • Loading branch information
julianoes committed May 15, 2019
2 parents e175cb4 + 6e0dbe9 commit 5fcfbb1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/udp_connection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,8 @@ void UdpConnection::receive()
while (_mavlink_receiver->parse_message()) {
const uint8_t sysid = _mavlink_receiver->get_last_message().sysid;

if (!saved_remote && sysid != 0) {
// FIXME: We ignore messages from QGC (255) for now.
if (!saved_remote && sysid != 0 && sysid != 255) {
saved_remote = true;

std::lock_guard<std::mutex> lock(_remote_mutex);
Expand Down

0 comments on commit 5fcfbb1

Please sign in to comment.