From 64e0337bc03dbdaf8b0c62002f646fe2342a8998 Mon Sep 17 00:00:00 2001 From: Hyunseok Date: Mon, 17 Jan 2022 23:50:19 +0900 Subject: [PATCH] CLOiSim-2.7.3(HotFix) * Hot fix for missing rear wheel name in MicomPlugin --- Assets/Scripts/CLOiSimPlugins/MicomPlugin.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Assets/Scripts/CLOiSimPlugins/MicomPlugin.cs b/Assets/Scripts/CLOiSimPlugins/MicomPlugin.cs index 0b448171..924ab458 100644 --- a/Assets/Scripts/CLOiSimPlugins/MicomPlugin.cs +++ b/Assets/Scripts/CLOiSimPlugins/MicomPlugin.cs @@ -83,16 +83,16 @@ private void SetupMicom() var wheelLeftName = GetPluginParameters().GetValue("wheel/location[@type='left']", String.Empty); var wheelRightName = GetPluginParameters().GetValue("wheel/location[@type='right']", String.Empty); + var rearWheelLeftName = GetPluginParameters().GetValue("wheel/location[@type='rear_left']", String.Empty); + var rearWheelRightName = GetPluginParameters().GetValue("wheel/location[@type='rear_right']", String.Empty); - if (!wheelLeftName.Equals(String.Empty) && !wheelRightName.Equals(String.Empty)) + if (!rearWheelLeftName.Equals(String.Empty) && !rearWheelRightName.Equals(String.Empty)) { - micomSensor.SetWheel(wheelLeftName, wheelRightName); + micomSensor.SetWheel(wheelLeftName, wheelRightName, rearWheelLeftName, rearWheelRightName); } else { - var rearWheelLeftName = GetPluginParameters().GetValue("wheel/location[@type='rear_left']", String.Empty); - var rearWheelRightName = GetPluginParameters().GetValue("wheel/location[@type='rear_right']", String.Empty); - micomSensor.SetWheel(wheelLeftName, wheelRightName, rearWheelLeftName, rearWheelRightName); + micomSensor.SetWheel(wheelLeftName, wheelRightName); } if (GetPluginParameters().GetValues("uss/sensor", out var ussList))