Cooperative Channel Sensing, Relaying And Computing In Uav And Vehicular Networks