Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
elphel-web-393
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Elphel
elphel-web-393
Commits
35a5345c
Commit
35a5345c
authored
Jan 18, 2018
by
Oleg Dzhimiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleanup
parent
81b2cde5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
18 deletions
+7
-18
raw.py
src/python_tests/raw.py
+7
-18
No files found.
src/python_tests/raw.py
View file @
35a5345c
...
...
@@ -135,11 +135,6 @@ print("TRIG MASTER = "+str(trig_master))
print
(
"TRIG PERIOD = "
+
str
(
trig_period
)
+
" us"
)
# Stop master trigger (not needed)
#cmd = "wget -qO- 'http://127.0.0.1:"+str(trig_master_port)+"/trig/pointers' &> /dev/null"
#print("Stop trigger:")
#subprocess.call(cmd,shell=True)
#
# First set the buffer size and mmap once
#
...
...
@@ -150,6 +145,7 @@ for i in sensors:
print
(
"mmap buffer "
+
str
(
i
))
mmap_data
.
append
(
mmap_pixel_array
(
i
,
BUF_SIZE
*
PAGE_SIZE
))
#
# Get pixel data to from fpga(=video) memory to system memory
# repeat if needed
...
...
@@ -161,16 +157,12 @@ for i in sensors:
print
(
"Port "
+
str
(
i
)
+
":"
)
#frame_num = p.get_frame_number()+1
#print(" frame number: "+str(frame_num))
# set video buf position: 0 or 1
set_vbuf_position
(
i
,
0
)
# waiting for frame is built-in in the driver
copy_vbuf_to_sbuf
(
i
,
tmp_frame_num
+
1
)
# get timestamp
#ts = get_timestamp_from_meta(i,0)
#print(" timestamp: "+ts)
# after copying is done frame parameters are available in sysfs:
# /sys/devices/soc0/elphel393-videomem@0/raw_frame_infoX
#
...
...
@@ -184,13 +176,10 @@ for i in sensors:
else
:
save_pixel_array
(
i
,
"/tmp/port"
+
str
(
i
)
+
".raw"
)
# Restore trigger
#print("Restore trigger")
#cmd = "wget -qO- 'http://127.0.0.1/parsedit.php?sensor_port="+str(trig_master)+"&immediate&TRIG_PERIOD="+str(trig_period)+"*1' &> /dev/null"
#subprocess.call(cmd,shell=True)
# debug info (might be useful for some standard raw format headers)
#
# Debug info (might be useful for some standard raw format headers)
#
print
(
"Debug, stored raw frames parameters:"
)
# read raw frames parameters
for
i
in
sensors
:
...
...
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