Code development platform for open source projects from the European Union institutions

Skip to content
Snippets Groups Projects
Commit cc91a4ab authored by Raphael LUZ's avatar Raphael LUZ
Browse files

pre-merge commit

-small changes in User Manual
-update in .vecto JSON input: Parameters not needed in Engine Only are now optional
parent 7e21ca35
No related branches found
No related tags found
No related merge requests found
...@@ -235,8 +235,8 @@ input for Air Speed and Yaw Angle, see <a href="../fileformat/VDRI.html">.vdri f ...@@ -235,8 +235,8 @@ input for Air Speed and Yaw Angle, see <a href="../fileformat/VDRI.html">.vdri f
for .vcdv/.vcdb files</span><br> for .vcdv/.vcdb files</span><br>
</div> </div>
<br><br><div style="margin-left: 40px;"><img style="width: 22px; height: 22px;" alt="" src="../pics/misc/OpenFile.PNG"> <span style="font-weight: bold;">Open file</span> with <a href="../../GRAPHi/documentation/HTML%20Manual/mainwindow.html">GRAPHi</a> or an user-defined tool (see <a href="settings.html#opencmd">File Open Command)</a>.<br></div><br><br> <br><br><div style="margin-left: 40px;"><img style="width: 22px; height: 22px;" alt="" src="../pics/misc/OpenFile.PNG"> <span style="font-weight: bold;">Open file</span> with <a href="../../GRAPHi/documentation/HTML%20Manual/mainwindow.html">GRAPHi</a> or an user-defined tool (see <a href="settings.html#opencmd">File Open Command)</a>.<br></div><br><br>
<a name="retard"></a><span style="font-weight: bold;">Retarder</span><br> <a name="retard"></a><span style="font-weight: bold;">Retarder Losses</span><br>
<div style="margin-left: 40px;">If available a <span style="font-weight: bold;">Retarder Torque Loss Map</span> can be defined here. Three options are available:<br> <div style="margin-left: 40px;">If available a <span style="font-weight: bold;">Retarder Torque Loss Map</span> can be defined here to consider losses caused by the retarder (even if not actively in use). <br><span style="font-weight: bold; color: red;">Note: Do not use this function if the retarder's losses are already included in the <a href="GBX-Editor.html#gears">Transmission Loss Maps</a>!</span><br><br>Three options are available:<br>
<ul> <ul>
<li>None</li> <li>None</li>
<li>Primary (before gearbox): The rpm ratio is relative to the <li>Primary (before gearbox): The rpm ratio is relative to the
......
VECTO ?.? (future release) TODO VECTO ?.? (future release) TODO
- User Manual: - User Manual:
"Don't use secondary retarder if retarder losses are already defined in transmission loss maps"
Engine/FLD Editor Engine/FLD Editor
New Eco Roll New Eco Roll
GBX GBX
......
...@@ -557,6 +557,7 @@ lbEr: ...@@ -557,6 +557,7 @@ lbEr:
MsgSrc = "Main/ReadInp/GEN" MsgSrc = "Main/ReadInp/GEN"
'Flag for "File is not JSON" Warnings
NoJSON = False NoJSON = False
If sFilePath = "" Then Return False If sFilePath = "" Then Return False
...@@ -574,11 +575,11 @@ lbEr: ...@@ -574,11 +575,11 @@ lbEr:
End If End If
Try Try
stPathVEH.Init(MyPath, JSON.Content("VehicleFile")) If JSON.Content.ContainsKey("VehicleFile") Then stPathVEH.Init(MyPath, JSON.Content("VehicleFile"))
stPathENG.Init(MyPath, JSON.Content("EngineFile")) stPathENG.Init(MyPath, JSON.Content("EngineFile"))
stPathGBX.Init(MyPath, JSON.Content("GearboxFile")) If JSON.Content.ContainsKey("GearboxFile") Then stPathGBX.Init(MyPath, JSON.Content("GearboxFile"))
If JSON.Content.ContainsKey("Cycles") Then If JSON.Content.ContainsKey("Cycles") Then
For Each str In JSON.Content("Cycles") For Each str In JSON.Content("Cycles")
...@@ -610,7 +611,7 @@ lbEr: ...@@ -610,7 +611,7 @@ lbEr:
Next Next
End If End If
stDesMaxFile.Init(MyPath, JSON.Content("VACC")) If JSON.Content.ContainsKey("VACC") Then stDesMaxFile.Init(MyPath, JSON.Content("VACC"))
EngOnly = JSON.Content("EngineOnlyMode") EngOnly = JSON.Content("EngineOnlyMode")
...@@ -621,24 +622,29 @@ lbEr: ...@@ -621,24 +622,29 @@ lbEr:
End If End If
If JSON.Content.ContainsKey("StartStop") Then If JSON.Content.ContainsKey("StartStop") Then
boStartStop = JSON.Content("StartStop")("Enabled") dic = JSON.Content("StartStop")
siStStV = JSON.Content("StartStop")("MaxSpeed") boStartStop = dic("Enabled")
siStStT = JSON.Content("StartStop")("MinTime") siStStV = dic("MaxSpeed")
StStDelay = JSON.Content("StartStop")("Delay") siStStT = dic("MinTime")
StStDelay = dic("Delay")
Else Else
boStartStop = False boStartStop = False
End If End If
If JSON.Content.ContainsKey("LAC") Then If JSON.Content.ContainsKey("LAC") Then
LookAheadOn = JSON.Content("LAC")("Enabled") dic = JSON.Content("LAC")
a_lookahead = JSON.Content("LAC")("Dec") LookAheadOn = dic("Enabled")
vMinLA = JSON.Content("LAC")("MinSpeed") a_lookahead = dic("Dec")
vMinLA = dic("MinSpeed")
Else Else
LookAheadOn = False LookAheadOn = False
End If End If
If JSON.Content.ContainsKey("OverSpeedEcoRoll") Then If JSON.Content.ContainsKey("OverSpeedEcoRoll") Then
Select Case UCase(JSON.Content("OverSpeedEcoRoll")("Mode")).trim
dic = JSON.Content("OverSpeedEcoRoll")
Select Case UCase(dic("Mode")).Trim
Case "ECOROLL" Case "ECOROLL"
OverSpeedOn = False OverSpeedOn = False
EcoRollOn = True EcoRollOn = True
...@@ -652,13 +658,13 @@ lbEr: ...@@ -652,13 +658,13 @@ lbEr:
EcoRollOn = False EcoRollOn = False
Case Else Case Else
WorkerMsg(tMsgID.Err, "Value '" & JSON.Content("OverSpeedEcoRoll")("Mode") & "' is not valid for OverSpeedEcoRoll/Mode!", MsgSrc) WorkerMsg(tMsgID.Err, "Value '" & dic("Mode") & "' is not valid for OverSpeedEcoRoll/Mode!", MsgSrc)
Return False Return False
End Select End Select
vMin = JSON.Content("OverSpeedEcoRoll")("MinSpeed") vMin = dic("MinSpeed")
OverSpeed = JSON.Content("OverSpeedEcoRoll")("OverSpeed") OverSpeed = dic("OverSpeed")
UnderSpeed = JSON.Content("OverSpeedEcoRoll")("UnderSpeed") If dic.ContainsKey("UnderSpeed") Then UnderSpeed = dic("UnderSpeed")
Else Else
OverSpeedOn = False OverSpeedOn = False
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment