Rover: send AIS

This commit is contained in:
Peter Hall 2020-03-17 20:57:23 +00:00 committed by Randy Mackay
parent d0fc5210c8
commit 5ad69fc5a3
1 changed files with 9 additions and 1 deletions

View File

@ -342,6 +342,13 @@ bool GCS_MAVLINK_Rover::try_send_message(enum ap_message id)
break;
}
case MSG_AIS_VESSEL: {
#if HAL_AIS_ENABLED
rover.g2.ais.send(chan);
#endif
break;
}
default:
return GCS_MAVLINK::try_send_message(id);
}
@ -517,7 +524,8 @@ static const ap_message STREAM_PARAMS_msgs[] = {
MSG_NEXT_PARAM
};
static const ap_message STREAM_ADSB_msgs[] = {
MSG_ADSB_VEHICLE
MSG_ADSB_VEHICLE,
MSG_AIS_VESSEL,
};
const struct GCS_MAVLINK::stream_entries GCS_MAVLINK::all_stream_entries[] = {