You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: boards/px4/fmu-v6xrt/init/rc.board_sensors
+33-9Lines changed: 33 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -85,19 +85,43 @@ else
85
85
fi
86
86
fi
87
87
88
-
# Internal SPI bus ICM42686p (hard-mounted)
89
-
icm42688p -6 -R 12 -b 1 -s start
88
+
if ver hwtypecmp V6XRT000 V6XRT001
89
+
then
90
+
# Internal SPI bus ICM42686p (hard-mounted)
91
+
icm42688p -6 -R 12 -b 1 -s start
92
+
93
+
# Internal on IMU SPI BMI088
94
+
bmi088 -A -R 4 -s start
95
+
bmi088 -G -R 4 -s start
96
+
97
+
# Internal on IMU SPI bus ICM42688p
98
+
icm42688p -R 6 -b 2 -s start
99
+
fi
90
100
91
-
# Internal on IMU SPI BMI088
92
-
bmi088 -A -R 4 -s start
93
-
bmi088 -G -R 4 -s start
101
+
if ver hwtypecmp V6XRT002
102
+
then
103
+
# Internal SPI bus icm45686 (hard-mounted)
104
+
icm45686 -R 12 -b 1 -s start
94
105
95
-
# Internal on IMU SPI bus ICM42688p
96
-
icm42688p -R 6 -b 2 -s start
106
+
# Internal on IMU SPI BMI088
107
+
bmi088 -A -R 4 -s start
108
+
bmi088 -G -R 4 -s start
97
109
98
-
# Internal magnetometer on I2c
99
-
bmm150 -I start
110
+
# Internal on IMU SPI bus icm45686
111
+
icm45686 -R 6 -b 2 -s start
112
+
fi
100
113
114
+
if ver hwtypecmp V6XRT000
115
+
then
116
+
# Internal magnetometer on I2c
117
+
bmm150 -I start
118
+
fi
119
+
120
+
if ver hwtypecmp V6XRT001 V6XRT002
121
+
then
122
+
# Internal magnetometer on I2c
123
+
bmm350 -I start
124
+
fi
101
125
102
126
# External compass on GPS1/I2C1 (the 3rd external bus): standard Holybro Pixhawk 4 or CUAV V5 GPS/compass puck (with lights, safety button, and buzzer)
0 commit comments