aboutsummaryrefslogtreecommitdiff
path: root/ROMFS/px4fmu_common/init.d/900_bottle_drop_test
blob: 522f782108fa3dc1c6ea9d00dcd451fd9cc1d2e0 (plain) (blame)
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
46
#!nsh

echo "[init] bottle drop test

#
# Load default params for this platform
#
if param compare SYS_AUTOCONFIG 1
then
	# Set all params here, then disable autoconfig
	param set SYS_AUTOCONFIG 0

	param save
fi
 
#
# Force some key parameters to sane values
# MAV_TYPE     2 = quadrotor
#
param set MAV_TYPE 2

set EXIT_ON_END no

#
# Start and configure PX4IO and FMU interface
#
# Start MAVLink (depends on orb)
mavlink start
usleep 5000


sh /etc/init.d/rc.io

fmu mode_pwm

mixer load /dev/px4fmu /etc/mixers/FMU_pass.mix

pwm arm -d /dev/px4fmu

bottle_drop start


if [ $EXIT_ON_END == yes ]
then
	exit
fi