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