Multimode communication and radar system resource allocation