Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
829f1820
Commit
829f1820
authored
Feb 17, 2005
by
Leigh B. Stoller
Browse files
Fix a few nits for Jay.
parent
f433ddca
Changes
4
Hide whitespace changes
Inline
Side-by-side
robots/tracker/RoboTrack.java
View file @
829f1820
...
...
@@ -468,8 +468,9 @@ public class RoboTrack extends JApplet {
static
class
MyTableModel
extends
AbstractTableModel
{
private
String
[]
columnNames
=
{
"Pname"
,
"Vname"
,
"X"
,
"Y"
,
"O"
,
"DX"
,
"DY"
,
"DO"
,
"X (meters)"
,
"Y (meters)"
,
"O (degrees)"
,
"Dest-X"
,
"Dest-Y"
,
"Dest-O"
,
"Battery %"
,
"Voltage"
};
...
...
www/robotrack/robopipe.php3
View file @
829f1820
...
...
@@ -61,25 +61,26 @@ if (isset($fake)) {
return
;
}
$last_stamp
=
0
;
$base_query_string
=
"select loc.*,r.pid,r.eid,r.vname, "
.
" n.battery_voltage,n.battery_percentage, "
.
" n.destination_x,n.destination_y, "
.
" n.destination_orientation "
.
" from location_info as loc "
.
"left join reserved as r on r.node_id=loc.node_id "
.
"left join nodes as n on n.node_id=loc.node_id "
.
"where loc.building='
$building
' and "
.
" loc.floor='
$floor
' "
;
$last_stamp
=
0
;
# Loop forever.
while
(
1
)
{
if
(
$last_stamp
)
$
query_string
=
$base_query_string
.
"and stamp>
$last_stamp
"
;
$
stamp_clause
=
"
and stamp>
$last_stamp
"
;
else
$query_string
=
$base_query_string
;
$stamp_clause
=
""
;
$query_string
=
"select loc.*,r.pid,r.eid,r.vname, "
.
" n.battery_voltage,n.battery_percentage, "
.
" n.destination_x,n.destination_y, "
.
" n.destination_orientation "
.
" from location_info as loc "
.
"left join reserved as r on r.node_id=loc.node_id "
.
"left join nodes as n on n.node_id=loc.node_id "
.
"where loc.building='
$building
' and "
.
" loc.floor='
$floor
'
$stamp_clause
"
.
"order by n.type,n.node_id"
;
$query_result
=
DBQueryFatal
(
$query_string
);
...
...
www/robotrack/robotrack.php3
View file @
829f1820
...
...
@@ -51,8 +51,11 @@ echo "<table cellspacing=5 cellpadding=5 border=0 class=\"stealth\">
<td class=stealth>This applet allows you to view the robots
as they move around. The table at the bottom
shows the current position (x, y, orientation),
the destination position
(dx, dy, dorientation)
,
the destination position,
and the battery level (percentage and voltage).
The shaded areas (blue border) are <em>exclusion</em>
zones where robots
are not allowed to go.
</td>
</tr>
</table><hr>
\n
"
;
...
...
www/robotrack/tracker.jar
View file @
829f1820
No preview for this file type
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment