This commit is contained in:
parent
e53c14a301
commit
b5a888998c
|
@ -133,7 +133,8 @@ public class EquipmentCommon : MonoBehaviour
|
|||
replaceInfoDic.Add("device_name", equipmentCommon.equipmentType);
|
||||
replaceInfoDic.Add("para_list", paraListJson);
|
||||
replaceInfoDic.Add("r1", $"{transform.position.x},{transform.position.y},{transform.position.z},{transform.eulerAngles.x},{transform.eulerAngles.y},{transform.eulerAngles.z}");
|
||||
replaceInfoDic.Add("r2", ((int)gameObject.GetComponent<UnmannedAerialVehicleManage>().wrjModel).ToString());
|
||||
if (gameObject.GetComponent<UnmannedAerialVehicleManage>())
|
||||
replaceInfoDic.Add("r2", ((int)gameObject.GetComponent<UnmannedAerialVehicleManage>().wrjModel).ToString());
|
||||
StartCoroutine(AsyncWebReq.PostData2(Url_AddDeviceAndGetDeviceId, replaceInfoDic, ResultsInfo =>
|
||||
{
|
||||
ReturnDeviceID returnID = JsonConvert.DeserializeObject<ReturnDeviceID>(ResultsInfo);
|
||||
|
|
|
@ -450,9 +450,9 @@ public class UnmannedAerialVehicleManage : MonoBehaviour
|
|||
}
|
||||
|
||||
///根据风得速度改变无人机得速度
|
||||
FireSpeed = float.Parse(maximumFlyingSpeed) / int.Parse(currentSceneInfo.EnvWindSpeed);
|
||||
///如果风速大于6级,无人机停止飞行
|
||||
if (int.Parse(currentSceneInfo.EnvWindSpeed) > 6)
|
||||
FireSpeed = float.Parse(maximumFlyingSpeed) / float.Parse(currentSceneInfo.EnvWindSpeed);
|
||||
/////如果风速大于6级,无人机停止飞行
|
||||
if (float.Parse(currentSceneInfo.EnvWindSpeed) * 10 > 6)
|
||||
{
|
||||
FireSpeed = 0;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue