Skip to content

Commit 4a590c5

Browse files
committed
Specify orientaiton of ADIS16448 IMU for EZG from autostart script
Specify orientaiton of ADIS16448 IMU for EZG from autostart script
1 parent 0f4eaec commit 4a590c5

File tree

3 files changed

+21
-1
lines changed

3 files changed

+21
-1
lines changed

ROMFS/px4fmu_common/init.d/airframes/22000_asl_easyglider

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ then
4545
param set PWM_DISARMED 1000
4646

4747
param set-default SENS_EN_ADIS164X 1
48+
param set SENS_EN_ADIS164X 4
4849
fi
4950

5051
set MIXER asl_easyglider

ROMFS/px4fmu_common/init.d/rc.sensors

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,14 @@ fi
111111
# ADIS16448 spi external IMU
112112
if param compare -s SENS_EN_ADIS164X 1
113113
then
114-
adis16448 -S start
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
115122
fi
116123

117124
# Hall effect sensors si7210

src/drivers/imu/analog_devices/adis16448/parameters.c

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,15 @@
4242
* @value 1 Enabled
4343
*/
4444
PARAM_DEFINE_INT32(SENS_EN_ADIS164X, 0);
45+
46+
/**
47+
* Analog Devices ADIS16448 IMU Orientation(external SPI)
48+
*
49+
* @reboot_required true
50+
* @min 0
51+
* @max 101
52+
* @group Sensors
53+
* @value 0 ROTATION_NONE
54+
* @value 4 ROTATION_YAW_180
55+
*/
56+
PARAM_DEFINE_INT32(SENS_OR_ADIS164X, 0);

0 commit comments

Comments
 (0)