From b3608d75b6dd9d74aa1a71e1a2ef2a970e6a050c Mon Sep 17 00:00:00 2001
From: fctom1215 <fctom1215@outlook.com>
Date: 星期三, 18 三月 2020 23:29:48 +0800
Subject: [PATCH] 挡位匹配.
---
lib/src/main/cpp/utils/xconvert.cpp | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/lib/src/main/cpp/utils/xconvert.cpp b/lib/src/main/cpp/utils/xconvert.cpp
index 0232370..a4e524b 100644
--- a/lib/src/main/cpp/utils/xconvert.cpp
+++ b/lib/src/main/cpp/utils/xconvert.cpp
@@ -18,6 +18,16 @@
#define DAYS_PER_WEEK 7
#define DAYS_PER_YEAR 365
+double ConvertKMh2Ms(int kmh)
+{
+ return ((double)kmh) * 1000.0 / 3600.0;
+}
+
+double ConvertMs2KMs(double ms)
+{
+ return ms * 3600.0 / 1000.0;
+}
+
void ConvertPhoneNum(uint8_t *dst, int length, const char *src)
{
int p = length - 1;
--
Gitblit v1.8.0