diff --git a/backend/config.ini b/backend/config.ini index f84a9c3f..125af762 100644 --- a/backend/config.ini +++ b/backend/config.ini @@ -39,7 +39,7 @@ fourcc = MJPG backend = directshow [FEMTOBOLT] -enable = False +enable = True algorithm_type = plt color_resolution = 1080P depth_mode = NFOV_2X2BINNED @@ -54,9 +54,9 @@ imu_enable = True imu_use_mock = False imu_ble_name = WT901BLE67 imu_mac_address = FA:E8:88:06:FE:F3 -pressure_enable = False +pressure_enable = True pressure_use_mock = False -pressure_port = COM5 +pressure_port = COM3 pressure_baudrate = 115200 [REMOTE] diff --git a/backend/main.py b/backend/main.py index 6d981aac..cb1ba4ba 100644 --- a/backend/main.py +++ b/backend/main.py @@ -1366,10 +1366,8 @@ class AppServer: for item in session_data['videos']: item_copy = item.copy() item_copy['type'] = 'video' - result_data.append(item_copy) + result_data.append(item_copy) - # 按时间戳排序 - result_data.sort(key=lambda x: x.get('timestamp', ''), reverse=False) return jsonify({ 'success': True, diff --git a/frontend/src/renderer/src/views/Detection.vue b/frontend/src/renderer/src/views/Detection.vue index a2b19a32..48052cc8 100644 --- a/frontend/src/renderer/src/views/Detection.vue +++ b/frontend/src/renderer/src/views/Detection.vue @@ -39,7 +39,7 @@
-
+
@@ -806,7 +806,7 @@
-
相机参数设置
+
设备参数设置
@@ -824,7 +824,7 @@
-
+
足部相机
@@ -854,20 +854,9 @@
-
-
-
遥控器
-
-
-
串口号
- - - - + -
- -
+
IMU设备
@@ -881,7 +870,30 @@
- + +
+
+
足底压力板
+
+
+
串口号
+ + + + +
+
+
+
遥控器
+
+
+
串口号
+ + + + + +
退出 { if (response.ok) { const result = await response.json() if (result.success) { - console.log('相机参数加载成功:', result.data) + console.log('设备参数加载成功:', result.data) cameraForm.value = result.data cameraDialogVisible.value = true // console.log('相机参数加载成功:', patientInfo.value) @@ -2441,8 +2462,8 @@ const getDevicesInit = async () => { throw new Error(`HTTP ${response.status}: ${response.statusText}`) } } catch (error) { - console.error('加载相机参数失败:', error) - ElMessage.warning('加载相机参数失败,请检查网络连接') + console.error('加载设备参数失败:', error) + ElMessage.warning('加载设备参数失败,请检查网络连接') } } @@ -3362,7 +3383,7 @@ function viewClick(e){ } .pop-up-camera-container{ width: 668px; - height:630px; + height:700px; position: absolute; top: 0; right: 0;