From 3a7da032ec18b2d5d36afb3fd9622c7d763257b7 Mon Sep 17 00:00:00 2001 From: riku <risaku@163.com> Date: 星期三, 17 十一月 2021 13:05:06 +0800 Subject: [PATCH] 1. 将用电量接口返回的参数动态化 --- src/main/kotlin/com/flightfeather/uav/domain/entity/BaseRealTimeData.kt | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/src/main/kotlin/com/flightfeather/uav/domain/entity/BaseRealTimeData.kt b/src/main/kotlin/com/flightfeather/uav/domain/entity/BaseRealTimeData.kt index e16d1f2..6b4b939 100644 --- a/src/main/kotlin/com/flightfeather/uav/domain/entity/BaseRealTimeData.kt +++ b/src/main/kotlin/com/flightfeather/uav/domain/entity/BaseRealTimeData.kt @@ -262,6 +262,7 @@ val avgU = u / c val avgV = v / c var a = atan(avgU / avgV) + a = Math.toDegrees(a) /** * avgU>0;avgV>0: 鐪熷疄瑙掑害澶勪簬绗竴璞¢檺锛屼慨姝e�间负+0掳 * avgU>0;avgV<0: 鐪熷疄瑙掑害澶勪簬绗簩璞¢檺锛屼慨姝e�间负+180掳 -- Gitblit v1.9.3