AntennaTracker: use send_heartbeat wrapper

This commit is contained in:
Andrew Tridgell 2016-05-17 08:43:41 +10:00
parent 01caa7388a
commit 57c39cbfa0

View File

@ -53,13 +53,10 @@ void Tracker::send_heartbeat(mavlink_channel_t chan)
break;
}
mavlink_msg_heartbeat_send(
chan,
MAV_TYPE_ANTENNA_TRACKER,
MAV_AUTOPILOT_ARDUPILOTMEGA,
base_mode,
custom_mode,
system_status);
gcs[chan-MAVLINK_COMM_0].send_heartbeat(MAV_TYPE_ANTENNA_TRACKER,
base_mode,
custom_mode,
system_status);
}
void Tracker::send_attitude(mavlink_channel_t chan)