From 166254b45737a7e907d5b251522c29908f1736ce Mon Sep 17 00:00:00 2001
From: Markus Quaritsch <markus.quaritsch@tugraz.at>
Date: Tue, 27 Sep 2016 08:42:56 +0200
Subject: [PATCH] fix in vehicle rofm

---
 VECTO/GUI/VehicleForm.vb                      | 11 +++++------
 VectoCommon/VectoCommon/Models/GearboxType.cs |  2 +-
 2 files changed, 6 insertions(+), 7 deletions(-)

diff --git a/VECTO/GUI/VehicleForm.vb b/VECTO/GUI/VehicleForm.vb
index 94be7b9c2f..8b1d45d3f6 100644
--- a/VECTO/GUI/VehicleForm.vb
+++ b/VECTO/GUI/VehicleForm.vb
@@ -358,12 +358,6 @@ Public Class VehicleForm
 		TbRtRatio.Text = retarder.Ratio.ToGUIFormat()
 		TbRtPath.Text = If(retarder.LossMap Is Nothing, "", GetRelativePath(retarder.LossMap.Source, basePath))
 
-
-		cbAngledriveType.SelectedValue = angledrive.Type
-		tbAngledriveRatio.Text = angledrive.Ratio.ToGUIFormat()
-		tbAngledriveLossMapPath.Text =
-			If(angledrive.LossMap Is Nothing, "", GetRelativePath(angledrive.LossMap.Source, basePath))
-
 		LvRRC.Items.Clear()
 		Dim i As Integer = 0
 		Dim a0 As IAxleEngineeringInputData
@@ -392,6 +386,11 @@ Public Class VehicleForm
 		tbPTOLossMap.Text = If(pto.PTOLossMap Is Nothing, "", GetRelativePath(pto.PTOLossMap.Source, basePath))
 		tbPTOCycle.Text = If(pto.PTOCycle Is Nothing, "", GetRelativePath(pto.PTOCycle.Source, basePath))
 
+		cbAngledriveType.SelectedValue = angledrive.Type
+		tbAngledriveRatio.Text = angledrive.Ratio.ToGUIFormat()
+		tbAngledriveLossMapPath.Text =
+			If(angledrive.LossMap Is Nothing, "", GetRelativePath(angledrive.LossMap.Source, basePath))
+
 		DeclInit()
 
 		VehicleFileBrowser.UpdateHistory(file)
diff --git a/VectoCommon/VectoCommon/Models/GearboxType.cs b/VectoCommon/VectoCommon/Models/GearboxType.cs
index 89b5949a6e..ab5fec0399 100644
--- a/VectoCommon/VectoCommon/Models/GearboxType.cs
+++ b/VectoCommon/VectoCommon/Models/GearboxType.cs
@@ -118,7 +118,7 @@ namespace TUGraz.VectoCommon.Models
 					return 1.SI<Second>();
 				case GearboxType.ATSerial:
 				case GearboxType.ATPowerSplit:
-					return 0.8.SI<Second>();
+					return 0.0.SI<Second>();
 			}
 			return 0.SI<Second>();
 		}
-- 
GitLab