Copter: move mavlink msg handling into library

This commit is contained in:
Tom Pittenger 2016-08-16 16:19:48 -07:00
parent b6810006eb
commit 06b64000e1

View File

@ -2114,14 +2114,11 @@ void GCS_MAVLINK_Copter::handleMessage(mavlink_message_t* msg)
}
case MAVLINK_MSG_ID_ADSB_VEHICLE:
#if ADSB_ENABLED == ENABLED
copter.adsb.update_vehicle(msg);
#endif
break;
case MAVLINK_MSG_ID_UAVIONIX_ADSB_OUT_CFG:
case MAVLINK_MSG_ID_UAVIONIX_ADSB_OUT_DYNAMIC:
case MAVLINK_MSG_ID_UAVIONIX_ADSB_TRANSCEIVER_HEALTH_REPORT:
#if ADSB_ENABLED == ENABLED
copter.adsb.transceiver_report(chan, msg);
copter.adsb.handle_message(chan, msg);
#endif
break;