File tree Expand file tree Collapse file tree 1 file changed +17
-13
lines changed
ROMFS/px4fmu_common/init.d Expand file tree Collapse file tree 1 file changed +17
-13
lines changed Original file line number Diff line number Diff line change 21
21
# Begin Optional drivers #
22
22
# ##############################################################################
23
23
24
+ # ADIS16448 spi external IMU
25
+ if param compare -s SENS_EN_ADIS164X 1
26
+ then
27
+ if param compare -s SENS_OR_ADIS164X 0
28
+ then
29
+ adis16448 -S start
30
+ fi
31
+ if param compare -s SENS_OR_ADIS164X 4
32
+ then
33
+ adis16448 -S start -R 4
34
+ fi
35
+
36
+ # add a sleep to make sure the mag is the priority one
37
+ usleep 1000000
38
+ fi
39
+
40
+
24
41
if param compare -s SENS_EN_BATT 1
25
42
then
26
43
batt_smbus start -X
@@ -108,19 +125,6 @@ then
108
125
vl53l1x start -X
109
126
fi
110
127
111
- # ADIS16448 spi external IMU
112
- if param compare -s SENS_EN_ADIS164X 1
113
- then
114
- if param compare -s SENS_OR_ADIS164X 0
115
- then
116
- adis16448 -S start
117
- fi
118
- if param compare -s SENS_OR_ADIS164X 4
119
- then
120
- adis16448 -S start -R 4
121
- fi
122
- fi
123
-
124
128
# Hall effect sensors si7210
125
129
# Potentially remove the -k option if possible and improve the startup if possible
126
130
if param greater CAL_AV_AOA_ID -1
You can’t perform that action at this time.
0 commit comments