From 50192d18f1bc1f5fd6f5e8a58f734f5ed7a08457 Mon Sep 17 00:00:00 2001 From: gaoduo <1453062510@qq.com> Date: Thu, 14 May 2026 10:30:10 +0800 Subject: [PATCH] 1 --- Assets/SensorModule/Scripts/SensorManager.cs | 3 ++- Assets/_Scenes/daoNiaoShu.unity | 10 ++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/Assets/SensorModule/Scripts/SensorManager.cs b/Assets/SensorModule/Scripts/SensorManager.cs index 07e56b6..9447869 100644 --- a/Assets/SensorModule/Scripts/SensorManager.cs +++ b/Assets/SensorModule/Scripts/SensorManager.cs @@ -418,7 +418,7 @@ public class SensorManager : MonoBehaviour /*MonoSingleton*/ sensor.Init(this); } } - Debug.Log($"获取传感器 {typeof(T).Name} 成功"); + //Debug.Log($"获取传感器 {typeof(T).Name} 成功"); return allSensor[name] as T; } catch (Exception ex) @@ -442,6 +442,7 @@ public class SensorManager : MonoBehaviour /*MonoSingleton*/ SerialPort sp = serialPorts[i]; if (sp != null && !sp.IsOpen) { + sp.RtsEnable = true; sp.Open(); Debug.Log($"串口 {sp.PortName} 打开成功"); } diff --git a/Assets/_Scenes/daoNiaoShu.unity b/Assets/_Scenes/daoNiaoShu.unity index ef1378f..4943448 100644 --- a/Assets/_Scenes/daoNiaoShu.unity +++ b/Assets/_Scenes/daoNiaoShu.unity @@ -86507,6 +86507,16 @@ PrefabInstance: propertyPath: jpgQuality value: 1 objectReference: {fileID: 0} + - target: {fileID: 5367677083586103749, guid: b2133fadb8982f34f83197fd2359c080, + type: 3} + propertyPath: _modeSelection + value: 2 + objectReference: {fileID: 0} + - target: {fileID: 5367677083586103749, guid: b2133fadb8982f34f83197fd2359c080, + type: 3} + propertyPath: _desiredModeIndex + value: 45 + objectReference: {fileID: 0} - target: {fileID: 6315013461938804625, guid: b2133fadb8982f34f83197fd2359c080, type: 3} propertyPath: m_Name