Skip to content

Commit

Permalink
GCS_MAVLink: do not re-broadcast heartbeat msgs originated from the g…
Browse files Browse the repository at this point in the history
…imbal

This is required because with the current implementation on the handset(artoo) it causes a bug.
  • Loading branch information
arthurbenemann committed Mar 11, 2015
1 parent 9e791de commit 664e2b1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions libraries/GCS_MAVLink/MAVLink_routing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,12 @@ void MAVLink_routing::learn_route(mavlink_channel_t in_channel, const mavlink_me
*/
void MAVLink_routing::handle_heartbeat(mavlink_channel_t in_channel, const mavlink_message_t* msg)
{
if (msg->compid == MAV_COMP_ID_GIMBAL)
{
//Mask out gimbal messages, since those are causing problems for the controller
return;
}

uint16_t mask = GCS_MAVLINK::active_channel_mask();

// don't send on the incoming channel. This should only matter if
Expand Down

0 comments on commit 664e2b1

Please sign in to comment.