mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-03 08:38:53 +08:00
Specify orientaiton of ADIS16448 IMU from rc.sensors
Specify orientaiton of ADIS16448 IMU for from the rc.sensors WIP: Currently only handling one orientation
This commit is contained in:
committed by
Daniel Agar
parent
d87cd171f4
commit
e45b862f1d
@@ -117,7 +117,14 @@ fi
|
||||
# ADIS16448 spi external IMU
|
||||
if param compare -s SENS_EN_ADIS164X 1
|
||||
then
|
||||
adis16448 -S start
|
||||
if param compare -s SENS_OR_ADIS164X 0
|
||||
then
|
||||
adis16448 -S start
|
||||
fi
|
||||
if param compare -s SENS_OR_ADIS164X 4
|
||||
then
|
||||
adis16448 -S start -R 4
|
||||
fi
|
||||
fi
|
||||
|
||||
# probe for optional external I2C devices
|
||||
|
||||
@@ -42,3 +42,15 @@
|
||||
* @value 1 Enabled
|
||||
*/
|
||||
PARAM_DEFINE_INT32(SENS_EN_ADIS164X, 0);
|
||||
|
||||
/**
|
||||
* Analog Devices ADIS16448 IMU Orientation(external SPI)
|
||||
*
|
||||
* @reboot_required true
|
||||
* @min 0
|
||||
* @max 101
|
||||
* @group Sensors
|
||||
* @value 0 ROTATION_NONE
|
||||
* @value 4 ROTATION_YAW_180
|
||||
*/
|
||||
PARAM_DEFINE_INT32(SENS_OR_ADIS164X, 0);
|
||||
|
||||
Reference in New Issue
Block a user