Commit 357b02d6 authored by Oleg Dzhimiev's avatar Oleg Dzhimiev

more comments

parent 9f686319
...@@ -88,6 +88,8 @@ if($cmd=="run"){ ...@@ -88,6 +88,8 @@ if($cmd=="run"){
// STEP 2: run // STEP 2: run
for($i=0;$i<count($ports);$i++){ for($i=0;$i<count($ports);$i++){
// second argument: 0 or 1 - location in video buffer // second argument: 0 or 1 - location in video buffer
// setting to 0 here and waiting frame_num+1, but
// if frame_num+2 is also of interest - it needs to be set to 1
set_vbuf_position($ports[$i],0); set_vbuf_position($ports[$i],0);
// waiting for frame is built-in in the driver // waiting for frame is built-in in the driver
copy_vbuf_to_sbuf($ports[$i],$frame_num+1); copy_vbuf_to_sbuf($ports[$i],$frame_num+1);
......
...@@ -157,7 +157,7 @@ for i in sensors: ...@@ -157,7 +157,7 @@ for i in sensors:
print("Port "+str(i)+":") print("Port "+str(i)+":")
# set video buf position: 0 or 1 # set video buf position: 0 or 1 - need to manually alterate for each frame (if have time)
set_vbuf_position(i,0) set_vbuf_position(i,0)
# waiting for frame is built-in in the driver # waiting for frame is built-in in the driver
copy_vbuf_to_sbuf(i,tmp_frame_num+1) copy_vbuf_to_sbuf(i,tmp_frame_num+1)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment