summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorasanoaozora <fifitaneki@hotmail.com>2017-03-30 17:32:53 +0200
committerasanoaozora <fifitaneki@hotmail.com>2017-03-30 17:32:53 +0200
commit18601bfb4574b1aff5936e05f46b6c9e09f6cee2 (patch)
treee4165fc9ca839c52e311ba8d78ccc2fcc9caf906 /test
parentbc3328a4fcc3960a23c92eafee76d4cdf9997c90 (diff)
downloadnavigation-18601bfb4574b1aff5936e05f46b6c9e09f6cee2.tar.gz
some bug fixes of HMI and test script
Diffstat (limited to 'test')
-rw-r--r--test/resource/low-tank-level.log4
-rwxr-xr-xtest/script/simulation-dashboard.py3
2 files changed, 5 insertions, 2 deletions
diff --git a/test/resource/low-tank-level.log b/test/resource/low-tank-level.log
index 173c30d..c0bd98e 100644
--- a/test/resource/low-tank-level.log
+++ b/test/resource/low-tank-level.log
@@ -7,7 +7,7 @@
#vehicle speed 90 km/h so 2500 cm/1000 ms
#engine speed 2000 RPM
#ignition key ON (Not Applicable)
-#fuel level 15 l
+#fuel level 4 l
#fuel consumption 5.4 l/h so 1500 µl/1000 ms (6 l/100)
#step 1000 ms
#totalodo is used for simulating distance step in cm
@@ -17,6 +17,6 @@
1000,0$GVGNSP,1000,46.202038, 6.146845,0,0X03
1000,0$GVSNSVEHSP,1000,90.00,0X01
1000,0$GVVEHENGSPEED,2000,0X01
-1000,0$GVVEHFUELLEVEL,15,0X01
+1000,0$GVVEHFUELLEVEL,4,0X01
1000,0$GVVEHFUELCONS,1500,0X01
1000,0$GVVEHTOTALODO,2500,0x01
diff --git a/test/script/simulation-dashboard.py b/test/script/simulation-dashboard.py
index a569ae3..41470a2 100755
--- a/test/script/simulation-dashboard.py
+++ b/test/script/simulation-dashboard.py
@@ -114,6 +114,7 @@ def displayEngineSpeed(string):
logVerbose("EngineSpeed",string)
def displayFuelLevel(string):
+ display(' ',FUEL_LEVEL_LOCATION,YELLOW,BLACK)
display(string,FUEL_LEVEL_LOCATION,YELLOW,BLACK)
def displayFuelInstant(string):
@@ -138,9 +139,11 @@ def displayFuelStopAdvisorWarning(string):
display(string,FUEL_STOP_ADVISOR_WARNING_LOCATION,YELLOW,BLACK)
def displayFuelStopAdvisorTankDistance(string):
+ display(' ',FUEL_STOP_ADVISOR_TANK_DISTANCE_LOCATION,YELLOW,BLACK)
display(string,FUEL_STOP_ADVISOR_TANK_DISTANCE_LOCATION,YELLOW,BLACK)
def displayFuelStopAdvisorEnhancedTankDistance(string):
+ display(' ',FUEL_STOP_ADVISOR_ENHANCED_TANK_DISTANCE_LOCATION,YELLOW,BLACK)
display(string,FUEL_STOP_ADVISOR_ENHANCED_TANK_DISTANCE_LOCATION,YELLOW,BLACK)
def refresh():