Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emulab
emulab-devel
Commits
cb66c26d
Commit
cb66c26d
authored
Jan 19, 2005
by
Timothy Stack
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Initialize the camera boundaries.
parent
1803d68f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
4 deletions
+11
-4
robots/vmcd/vmcd.c
robots/vmcd/vmcd.c
+11
-4
No files found.
robots/vmcd/vmcd.c
View file @
cb66c26d
...
...
@@ -300,10 +300,17 @@ int main(int argc, char *argv[])
vmc_config
.
cameras
.
cameras_val
[
lpc
].
hostname
;
vmc_clients
[
vmc_client_count
].
vc_port
=
vmc_config
.
cameras
.
cameras_val
[
lpc
].
port
;
vmc_clients
[
vmc_client_count
].
vc_left
=
FLT_MAX
;
vmc_clients
[
vmc_client_count
].
vc_top
=
FLT_MAX
;
vmc_clients
[
vmc_client_count
].
vc_right
=
0
;
vmc_clients
[
vmc_client_count
].
vc_bottom
=
0
;
vmc_clients
[
vmc_client_count
].
vc_left
=
vmc_config
.
cameras
.
cameras_val
[
lpc
].
x
;
vmc_clients
[
vmc_client_count
].
vc_top
=
vmc_config
.
cameras
.
cameras_val
[
lpc
].
y
;
vmc_clients
[
vmc_client_count
].
vc_right
=
vmc_config
.
cameras
.
cameras_val
[
lpc
].
x
+
vmc_config
.
cameras
.
cameras_val
[
lpc
].
width
;
vmc_clients
[
vmc_client_count
].
vc_bottom
=
vmc_config
.
cameras
.
cameras_val
[
lpc
].
y
+
vmc_config
.
cameras
.
cameras_val
[
lpc
].
height
;
vmc_client_count
+=
1
;
info
(
" camera[%d] = %s:%d
\n
"
,
...
...
Write
Preview
Markdown
is supported
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