From 3ee7f4895ce0602020bce6ce6c10c9cf1b42f1d0 Mon Sep 17 00:00:00 2001
From: Michael Krisper <michael.krisper@tugraz.at>
Date: Fri, 11 Dec 2015 16:13:58 +0100
Subject: [PATCH] corrected error message

---
 VECTO/GUI/F_MAINForm.vb                              | 2 +-
 VectoCore/Models/Simulation/Impl/SimulatorFactory.cs | 8 ++++----
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/VECTO/GUI/F_MAINForm.vb b/VECTO/GUI/F_MAINForm.vb
index a3de00d759..fd3cb1091f 100644
--- a/VECTO/GUI/F_MAINForm.vb
+++ b/VECTO/GUI/F_MAINForm.vb
@@ -48,7 +48,7 @@ Imports System.Text
 	Private DEVpage As TabPage
 	Private CmDEVitem As ListViewItem
 
-	Private CheckLock As Boolean
+	Public CheckLock As Boolean
 	Private GENchecked As Integer
 	Private DRIchecked As Integer
 	Private GENcheckAllLock As Boolean
diff --git a/VectoCore/Models/Simulation/Impl/SimulatorFactory.cs b/VectoCore/Models/Simulation/Impl/SimulatorFactory.cs
index 6dd459b664..bb7bee8536 100644
--- a/VectoCore/Models/Simulation/Impl/SimulatorFactory.cs
+++ b/VectoCore/Models/Simulation/Impl/SimulatorFactory.cs
@@ -121,8 +121,8 @@ namespace TUGraz.VectoCore.Models.Simulation.Impl
 							axleTorque = gear.Value.LossMap.GetOutTorque(angularVelocity, inTorque);
 						} catch (VectoException ex) {
 							throw new VectoException(
-								string.Format("Interpolation of LossMap failed for Gear {0} with torque={1} and angularSpeed={2}", gear,
-									inTorque, angularVelocity), ex);
+								string.Format("Interpolation of LossMap failed for Gear {0} with torque={1} and angularSpeed={2}",
+									gear.Key, inTorque, angularVelocity.ConvertTo().Rounds.Per.Minute), ex);
 						}
 
 						var axleAngularVelocity = angularVelocity / gear.Value.Ratio;
@@ -130,8 +130,8 @@ namespace TUGraz.VectoCore.Models.Simulation.Impl
 							gearboxData.AxleGearData.LossMap.GetOutTorque(axleAngularVelocity, axleTorque);
 						} catch (VectoException ex) {
 							throw new VectoException(
-								string.Format("Interpolation of LossMap failed for AxleGear with torque={1} and angularSpeed={2}", axleTorque,
-									axleAngularVelocity), ex);
+								string.Format("Interpolation of LossMap failed for AxleGear with torque={0} and angularSpeed={1}",
+									axleTorque, axleAngularVelocity.ConvertTo().Rounds.Per.Minute), ex);
 						}
 					}
 				}
-- 
GitLab