GCS_MAVLink: send ais message

This commit is contained in:
Iampete1 2021-08-14 22:29:41 +01:00 committed by Andrew Tridgell
parent 30fffb491c
commit e8607c09f1
1 changed files with 10 additions and 0 deletions

View File

@ -5579,6 +5579,16 @@ bool GCS_MAVLINK::try_send_message(const enum ap_message id)
#endif // HAL_HIGH_LATENCY2_ENABLED
break;
case MSG_AIS_VESSEL: {
#if AP_AIS_ENABLED
AP_AIS *ais = AP_AIS::get_singleton();
if (ais) {
ais->send(chan);
}
#endif
break;
}
case MSG_UAVIONIX_ADSB_OUT_STATUS:
CHECK_PAYLOAD_SIZE(UAVIONIX_ADSB_OUT_STATUS);