-
Notifications
You must be signed in to change notification settings - Fork 5
/
index.html
executable file
·161 lines (153 loc) · 5.06 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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
<!DOCTYPE HTML>
<html>
<head>
<title>DriverStation.js</title>
<link rel="stylesheet" type="text/css" href="css/mainstyle.css" />
<script type="text/javascript" src="js/lib/jquery-2.0.3.min.js"></script>
<script type="text/javascript" src="js/lib/mousetrap.min.js"></script>
<script type="text/javascript" src="js/main.js"></script>
<script type="text/javascript" src="js/states.js"></script>
<script type="text/javascript" src="js/setup.js"></script>
<script type="text/javascript" src="js/diagnostics.js"></script>
<script type="text/javascript" src="js/utilities.js"></script>
<script type="text/javascript" src="js/dstimer.js"></script>
<script type="text/javascript" src="js/links.js"></script>
<script type="text/javascript" src="js/debug.js"></script>
</head>
<body>
<div id="container">
<div id="tabs">
<div id="tab_operation" selected="true">
<h2>Operation</h2>
</div>
<div id="tab_diagnostics">
<h2>Diagnostics</h2>
</div>
<div id="tab_setup">
<h2>Setup</h2>
</div>
<div id="tab_io">
<h2>I/O</h2>
</div>
<div id="tab_charts">
<h2>Charts</h2>
</div>
<div id="tab_about">
<h2>About</h2>
</div>
</div>
<div id="content">
<div id="operation">
<div class="collumn">
<div id="robot_status">
<div id="voltage">Volts: 0.00</div>
<div id="connections">
<p id="communications">Communications</p>
<p id="robot-code">Robot Code</p>
<p id="joysticks">Joysticks</p>
</div>
</div>
<div id="mode">
<p>Teleoperated</p>
<p>Disabled</p>
</div>
</div>
<div class="collumn">
<div id="mode_select">
<input type="radio" name="mode" value="Teleoperated" id="1" checked>
<label for="1">Teleoperated</label><br />
<input type="radio" name="mode" value="Autonomous" id="2">
<label for="2">Autonomous</label><br />
<input type="radio" name="mode" value="Practice" id="3">
<label for="3">Practice</label><br />
<input type="radio" name="mode" value="Test" id="4">
<label for="4">Test</label>
</div>
<div id="trigger">Enable</div>
</div>
<div class="collumn">
<div id="time">
<p>Elapsed Time: 0:00.0</p>
</div>
<div id="team_station">
<p>Team Station</p>
</div>
</div>
<div class="collumn">
<div id="user-messages">
<p>User Messages:</p>
<pre id="textbox"></pre>
</div>
</div>
</div>
<div id="diagnostics" class="hidden">
<div>
<form>
<p>If you are getting inaccurate values for Robot Code, you can reset the test:<br>
Currently, there should be:</p>
<input type="radio" value="empty" id="code-empty" name="robot-code"><label for="code-empty"> No Robot Code (more accurate)</label><br>
<input type="radio" value="full" id="code-full" name="robot-code"><label for="code-full">Robot Code</label><br>
<input type="submit" value="Reset Value">
</form>
</div>
<span class="link" id="reboot">Reboot cRIO</span>
</div>
<div id="setup" class="hidden">
<div class="collumn">
<div id="team_number">
<p>Team Number</p>
<input id="setup_teamID"></input>
</div>
<div id="driverstation_mode">
<p>DriverStation Protocol</p>
<div><div style="float: left;" class="ds_mode" id="ds_mode_2009">Legacy</div><div style="float: right;" class="ds_mode" id="ds_mode_2015">2015</div></div>
<input type="range" name="mode" id="ds_protocol" min="2009" max="2015" step="1"></input>
</div>
</div>
<div class="collumn">
<div id="joystick_config">
<p>Joystick Setup</p>
<div class="joystick_config">
1: <select id="joystick_setup_0" class="joystick_setup" name="0">
<option value="null">No Joystick</option>
</select>
</div>
<div class="joystick_config">
2: <select id="joystick_setup_1" class="joystick_setup" name="1">
<option value="null">No Joystick</option>
</select>
</div>
<div class="joystick_config">
3: <select id="joystick_setup_2" class="joystick_setup" name="2">
<option value="null">No Joystick</option>
</select>
</div>
<div class="joystick_config">
4: <select id="joystick_setup_3" class="joystick_setup" name="3">
<option value="null">No Joystick</option>
</select>
</div>
</div>
</div>
</div>
<div id="io" class="hidden">
<p>We're not done with page yet. Sorry. :(</p>
</div>
<div id="charts" class="hidden">
<p>We're not done with page yet. Sorry. :(</p>
</div>
<div id="about" class="hidden">
<p>This open source FRC robot control application<br /> was created by
<span class="link" id="178_homepage">Team 178, The Second Law Enforcers.</span></p>
<p>We challenge you to <span class="link" id="dreamfirst">Dream, Explore, Aspire</span></p>
<p>Contributors:<br />
Brandon Cheng (<span class="link" id="contrib_gluxon">@gluxon</span>)<br />
Luke Young (<span class="link" id="contrib_innoying">innoying</span>)<br />
Gustave Michel III (<span class="link" id="contrib_gixxy">gixxy</span>)<br />
</p>
<span class="link" id="debug">Enter Debug Mode</span>
</div>
</div>
</div>
</body>
</html>