aboutsummaryrefslogtreecommitdiff
path: root/ROMFS/scripts/rc.PX4IO
blob: 3a5ccbc5c69f19965b7c5cbe8bc9a72bca5c9274 (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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#!nsh

set USB no

#
# Start the object request broker
#
uorb start

#
# Init the EEPROM
#
echo "[init] eeprom"
eeprom start
if [ -f /eeprom/parameters ]
then
	param load
fi

#
# Enable / connect to PX4IO
#
px4io start

#
# Start the sensors.
#
sh /etc/init.d/rc.sensors

#
# Start MAVLink on UART1 (dev/ttyS0) at 57600 baud (CLI is now unusable)
#
mavlink start -d /dev/ttyS0 -b 57600
usleep 5000

#
# Start the commander.
#
commander start

#
# Start the attitude estimator
#
attitude_estimator_ekf start

#
# Start the attitude and position controller
#
fixedwing_att_control start
fixedwing_pos_control start

#
# Start GPS capture
#
#gps start

#
# startup is done; we don't want the shell because we
# use the same UART for telemetry
#
echo "[init] startup done"
exit