/alps/ipecamera

To get this branch, use:
bzr branch http://darksoft.org/webbzr/alps/ipecamera

« back to all changes in this revision

Viewing changes to tests/grab.sh

  • Committer: Suren A. Chilingaryan
  • Date: 2015-04-27 00:28:57 UTC
  • Revision ID: csa@suren.me-20150427002857-82fk6r3e8rfgy4wr
First stand-alone ipecamera implementation

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#! /bin/bash
2
 
 
3
 
function pci {
4
 
    PCILIB_PATH="/root/pcitool"
5
 
    LD_LIBRARY_PATH="$PCILIB_PATH" $PCILIB_PATH/pci $*
6
 
}
7
 
 
8
 
rm -f images.raw
9
 
 
10
 
 
11
 
echo "Starting the grabber"
12
 
pci -g -o images.raw --run-time 3000000 &
13
 
pid=$!
14
 
 
15
 
usleep 1000000
16
 
 
17
 
for i in `seq 1 1000`; do
18
 
    echo "Trigger $i"
19
 
    pci --trigger
20
 
    usleep 100000
21
 
done
22
 
 
23
 
echo "Waiting grabber to finish"
24
 
wait $pid