File tree Expand file tree Collapse file tree 1 file changed +51
-0
lines changed
ROMFS/px4fmu_common/init.d Expand file tree Collapse file tree 1 file changed +51
-0
lines changed Original file line number Diff line number Diff line change @@ -114,6 +114,57 @@ then
114
114
adis16448 -S start
115
115
fi
116
116
117
+ # Hall effect sensors si7210
118
+ # Potentially remove the -k option if possible and improve the startup if possible
119
+ if param greater CAL_AV_AOA_ID -1
120
+ then
121
+ set AOA_I2C_ID 0
122
+ if param compare CAL_AV_AOA_ID 48
123
+ then
124
+ set AOA_I2C_ID 48
125
+ fi
126
+ if param compare CAL_AV_AOA_ID 49
127
+ then
128
+ set AOA_I2C_ID 49
129
+ fi
130
+ if param compare CAL_AV_AOA_ID 50
131
+ then
132
+ set AOA_I2C_ID 50
133
+ fi
134
+ if param compare CAL_AV_AOA_ID 51
135
+ then
136
+ set AOA_I2C_ID 51
137
+ fi
138
+
139
+ si7210 start -X -k -a ${AOA_I2C_ID}
140
+ unset AOA_I2C_ID
141
+ fi
142
+
143
+ if param greater CAL_AV_SLIP_ID -1
144
+ then
145
+ set SLIP_I2C_ID 0
146
+ if param compare CAL_AV_SLIP_ID 48
147
+ then
148
+ set SLIP_I2C_ID 48
149
+ fi
150
+ if param compare CAL_AV_SLIP_ID 49
151
+ then
152
+ set SLIP_I2C_ID 49
153
+ fi
154
+ if param compare CAL_AV_SLIP_ID 50
155
+ then
156
+ set SLIP_I2C_ID 50
157
+ fi
158
+ if param compare CAL_AV_SLIP_ID 51
159
+ then
160
+ set SLIP_I2C_ID 51
161
+ fi
162
+
163
+ si7210 start -X -k -a ${SLIP_I2C_ID}
164
+ unset SLIP_I2C_ID
165
+ fi
166
+
167
+
117
168
# probe for optional external I2C devices
118
169
if param compare SENS_EXT_I2C_PRB 1
119
170
then
You can’t perform that action at this time.
0 commit comments