CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
Ardupilot

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.

GitHub Repository: Ardupilot/ardupilot
Path: blob/master/Tools/Frame_params/Parrot_Disco/start_ardupilot.sh
Views: 1799
1
#!/bin/sh
2
3
cd /data/ftp/internal_000/ardupilot
4
(
5
/bin/date
6
/bin/ls
7
8
/bin/dragon_ipc.sh dragon_shutdown
9
/bin/sleep 2
10
/usr/bin/killall -KILL dragon-prog
11
/bin/sleep 1
12
13
echo "step2"
14
# stop stock led daemon
15
/usr/bin/pstop ledd
16
17
# setup for video
18
/usr/bin/media-ctl -l '"mt9f002 0-0010":0->"avicam.0":0[1]'
19
/usr/bin/media-ctl -l '"avicam_dummy_dev.0":0->"avicam.0":0[0]'
20
/usr/bin/prestart dxowrapperd
21
/usr/bin/prestart pimp
22
23
echo "step3"
24
25
# startup fan
26
echo 1 > /sys/devices/platform/user_gpio/FAN/value
27
28
# setup GPS
29
echo 1 > /sys/devices/platform/user_gpio/RESET_GNSS/value
30
/bin/sleep 1
31
echo 0 > /sys/devices/platform/user_gpio/RESET_GNSS/value
32
33
echo "step4"
34
35
while :; do
36
echo "$(date) Starting arduplane"
37
./arduplane -A udp:192.168.42.255:14550:bcast -B /dev/ttyPA1 -C udp:192.168.43.255:14550:bcast --module-directory modules
38
done
39
) >> start_ardupilot.log 2>&1
40
41