Updated UI for algorithm development convenience
This commit is contained in:
+1
-1
@@ -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
@@ -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;
|
||||||
}
|
// }
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user