-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrocket_hawk.sh
executable file
·45 lines (31 loc) · 954 Bytes
/
rocket_hawk.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#/bin/bash
timestamp() {
date +"%F %T.%3N"
}
picamera() {
raspivid -t 10000 -w 1920 -h 1080 -fps 30 -b 1200000 -p 0,0,1920,1080 -o pivideo.h264
MP4Box -add pivideo.h264 pivideo.mp4
rm pivideo.h264
}
NUMBEROFCYCLES=2
al_pids=""
ac_pids=""
echo Altimeter.txt:
stat -c %s /home/pi/rocket_hawk/logs/altimeters_logs/altimeter.txt
echo Accelerometer.txt:
stat -c %s /home/pi/rocket_hawk/logs/accelerometer_logs/accelerometer.txt
cd /home/pi/rocket_hawk/flight/altimeter/
# for x in $(seq $NUMBEROFCYCLES);
# do
/home/pi/rocket_hawk/flight/altimeter/bmp180 10 2 &
python /home/pi/rocket_hawk/flight/accelerometer/accelerometer.py 10 2 &
wait
# done
echo
echo
echo POST FLIGHT
echo Altimeter.txt:
stat -c %s /home/pi/rocket_hawk/logs/altimeters_logs/altimeter.txt
echo Accelerometer.txt:
stat -c %s /home/pi/rocket_hawk/logs/accelerometer_logs/accelerometer.txt
# python /home/pi/rocket_hawk/flight/accelerometer/accelerometer.py 10 &