-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
119 lines (114 loc) · 3.22 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
<html>
<head>
<title>FIRST RoboSimulator</title>
<link rel="stylesheet" type="text/css" href="css/robosim.css" />
<link rel="stylesheet" type="text/css" href="js/libs/jqwidgets/styles/jqx.base.css"/>
<script src="js/libs/ace/ace.js" type="text/javascript" charset="utf-8"></script>
<script src="js/libs/ace/ext-language_tools.js"></script>
<script data-main="js/main" src="js/libs/require.js"></script>
</head>
<body>
<div id="mainSplitter">
<div>
<div id="mainTabs">
<ul>
<li>Code Editor</li>
<li>Environment Setup</li>
</ul>
<div>
<div id="codeArea">
<div id="controlArea">
<button id="btnCompile">Compile</button>
<div id="loader"></div>
<button id="btnStartStop">Start</button>
<span style="width: 150px"> </span>
<button id="btnReset">Reset Simulation</button>
<span style="width: 200px"> </span>
<label>Load Sample
<select id="cboSamples"></select>
</label>
<button id="btnLoadSample">Load</button>
</div>
<div id="editorArea"></div>
</div>
</div>
<div id="envSetupArea">
<h3>Field Setup</h3>
<div class="horizontalLayout">
<span>Field Dimensions: (W)</span>
<input type="number" id="txtFieldWidth"/>
<span> X (H)</span>
<input type="number" id="txtFieldHeight"/>
<button id="btnUpdateField">Update Dimensions</button>
</div>
<hr/>
<!-- Robot Environment -->
<h3>Robot Setup</h3>
<label>Show Robot Bounding Box
<input type="checkbox" id="chkBoundingBox"/>
</label>
<h4>Sensors</h4>
<div id="sensorList"></div>
<button id="btnDeleteSensor">Delete Selected Sensor</button>
<div id="addSensorPanel">
<div>Add Sensor</div>
<div style="padding: 5px">
<div>
<label>Sensor Name:
<input type="text" id="txtSensorName"/>
</label>
</div>
<div>
<label>Sensor Type:
<select id="cboSensorType">
<option value="RangeFinder">Range Finder</option>
<option value="Gyro">Gyro</option>
</select>
</label>
</div>
<div>
<label>Position:
<select id="cboSensorPosition">
<option value="0">Chassis</option>
<option value="1">Front</option>
<option value="2">Right</option>
<option value="3">Back</option>
<option value="4">Left</option>
</select>
</label>
</div>
<button id="btnAddSensor">Add Sensor</button>
</div>
</div>
<hr/>
</div>
</div>
</div>
<div>
<div id="outputSplitter">
<div id="playingField"></div>
<div id="outputTabs">
<ul>
<li>Compiler Output</li>
<li>Console Output</li>
<li>Network Tables</li>
</ul>
<div id="compilerOutputArea">
<div id="compilerOutput"></div>
</div>
<div id="outputArea">
<div id="outputHeader">
<div id="outputTitle">Output</div>
<button id="btnClearOutput">Clear Output</button>
</div>
<div id="outputList"></div>
</div>
<div id="networkTablesOutputArea">
<div id="networkTable"></div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>