From e3729db9e5b77d253666d9c7287bf2ea84c05132 Mon Sep 17 00:00:00 2001
From: chenluhua1980 <Chenluhua@qq.com>
Date: 星期三, 17 十二月 2025 16:48:10 +0800
Subject: [PATCH] 1.添加生产面板框架;
---
SourceCode/Bond/Servo/CParam.cpp | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/SourceCode/Bond/Servo/CParam.cpp b/SourceCode/Bond/Servo/CParam.cpp
index 4935b4e..57a8f0c 100644
--- a/SourceCode/Bond/Servo/CParam.cpp
+++ b/SourceCode/Bond/Servo/CParam.cpp
@@ -65,7 +65,12 @@
double CParam::getDoubleValue()
{
- return m_fValue;
+ if(m_nValueType == PVT_DOUBLE)
+ return m_fValue;
+ if (m_nValueType == PVT_INT)
+ return (double)m_nValue;
+
+ return 0.0;
}
void CParam::setDoubleValue(double value)
--
Gitblit v1.9.3