Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
arthurbenemann committed Apr 19, 2015
1 parent 77fa090 commit e9f08aa
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
@@ -201,6 +201,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

0 comments on commit e9f08aa

Please sign in to comment.