Skip to content

Commit

Permalink
CLOiSim-2.7.3(HotFix)
Browse files Browse the repository at this point in the history
* Hot fix for missing rear wheel name in MicomPlugin
  • Loading branch information
hyunseok-yang authored Jan 17, 2022
1 parent 6e1d7f6 commit 64e0337
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Assets/Scripts/CLOiSimPlugins/MicomPlugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -83,16 +83,16 @@ private void SetupMicom()

var wheelLeftName = GetPluginParameters().GetValue<string>("wheel/location[@type='left']", String.Empty);
var wheelRightName = GetPluginParameters().GetValue<string>("wheel/location[@type='right']", String.Empty);
var rearWheelLeftName = GetPluginParameters().GetValue<string>("wheel/location[@type='rear_left']", String.Empty);
var rearWheelRightName = GetPluginParameters().GetValue<string>("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<string>("wheel/location[@type='rear_left']", String.Empty);
var rearWheelRightName = GetPluginParameters().GetValue<string>("wheel/location[@type='rear_right']", String.Empty);
micomSensor.SetWheel(wheelLeftName, wheelRightName, rearWheelLeftName, rearWheelRightName);
micomSensor.SetWheel(wheelLeftName, wheelRightName);
}

if (GetPluginParameters().GetValues<string>("uss/sensor", out var ussList))
Expand Down

0 comments on commit 64e0337

Please sign in to comment.