Updated UI for algorithm development convenience

This commit is contained in:
dsavvinov
2016-08-29 14:54:00 +03:00
parent 163a1782e6
commit f0e783531c
2 changed files with 12 additions and 12 deletions
+1 -1
View File
@@ -30,7 +30,7 @@
<!-- Control Pnael --> <!-- Control Pnael -->
<div class="col-md-1 center-block"> <div class="col-md-1 center-block">
<!-- Note that algoID should coincide with enums id in ModeChange --> <!-- Note that algoID should coincide with enums id in ModeChange -->
<button type="button" class="btn btn-primary center-block btn-block" id="perimeter-btn" onclick="changeMode(1)">Explore Room Perimeter</button> <button type="button" class="btn btn-primary center-block btn-block" id="perimeter-btn" onclick="changeMode(1)">Enter Room Exploration Mode</button>
<button type="button" class="btn btn-primary center-block btn-block" id="perimeter-btn" onclick="perimeterRequest()">Get Waypoints Info</button> <button type="button" class="btn btn-primary center-block btn-block" id="perimeter-btn" onclick="perimeterRequest()">Get Waypoints Info</button>
<button type="button" class="btn btn-primary center-block btn-block" id="manual-btn" onclick="changeMode(2)">Debug Room Exploration</button> <button type="button" class="btn btn-primary center-block btn-block" id="manual-btn" onclick="changeMode(2)">Debug Room Exploration</button>
<button type="button" class="btn btn-primary center-block btn-block" id="manual-btn" onclick="perimeterDebugRequest()">Draw algo state</button> <button type="button" class="btn btn-primary center-block btn-block" id="manual-btn" onclick="perimeterDebugRequest()">Draw algo state</button>
+11 -11
View File
@@ -130,16 +130,16 @@ function changeMode(modeId) {
} }
console.log("Got OK for changing request") console.log("Got OK for changing request")
switch(modeId) { // switch(modeId) {
case 0: // case 0:
enterManualMode(); // enterManualMode();
break; // break;
case 1: // case 1:
buildPerimeter(/* debug = */ false); // buildPerimeter( debug = false);
break; // break;
case 2: // case 2:
buildPerimeter(/* debug = */ true); // buildPerimeter(/* debug = */ true);
break; // break;
} // }
}); });
} }