mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-21 15:23:57 -04:00
Copter: move mavlink msg handling into library
This commit is contained in:
parent
b6810006eb
commit
06b64000e1
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user