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))