source: trunk/script/md_test1.bas @ 515

Revision 515, 548 bytes checked in by reyalp, 5 years ago (diff)

set svn:eol-style and fix files that had mixed line endings. See http://chdk.setepontos.com/index.php/topic,2145.15.html

  • Property svn:eol-style set to LF
Line 
1@title mdt1
2@param a Columns
3@default a 3
4@param b Rows
5@default b 3
6@param c Threshold
7@default c 10
8@param d Measure Interval (millisec)
9@default d 100
10@param e Delay (seconds)
11@default e 0
12
13if a<1 then let a=1
14if b<1 then let b=1
15if c<0 then let c=0
16
17
18let e=e*1000
19 
20
21sleep e
22
23print_screen 1
24
25for i=0 to 10
26
27        let f=0
28        md_detect_motion a, b, 1, 30000, d, c, 0, f
29
30rem     if f>0 then shoot else print "Timeout"
31
32        print "cells: ", f
33
34        for g=1 to b
35                for x=1 to a
36                        md_get_cell_diff x, g, f
37                        print "[",x,",",g,"]=",f
38                next x
39        next g
40
41
42next i
43
44end
Note: See TracBrowser for help on using the repository browser.