From 91f7b9dd29e6e0b57b2e84859b8ee012f390d074 Mon Sep 17 00:00:00 2001 From: Jukka Laitinen Date: Wed, 11 Dec 2024 10:26:53 +0200 Subject: [PATCH 1/2] Update NuttX submodule to support ADIS IMU on MPFS Signed-off-by: Jukka Laitinen --- platforms/nuttx/NuttX/nuttx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platforms/nuttx/NuttX/nuttx b/platforms/nuttx/NuttX/nuttx index 800c295ab807..68195830d5e1 160000 --- a/platforms/nuttx/NuttX/nuttx +++ b/platforms/nuttx/NuttX/nuttx @@ -1 +1 @@ -Subproject commit 800c295ab807522f13ee9cb8c62b86c09dd8dcf3 +Subproject commit 68195830d5e10bcfd7807095aca5ba83f9752b49 From 5a0192a4462db65b697666733bec7b479101103e Mon Sep 17 00:00:00 2001 From: Jukka Laitinen Date: Wed, 11 Dec 2024 13:25:50 +0200 Subject: [PATCH 2/2] ADIS16470: Enable DRDY interrupt The call to px4_arch_gpiosetevent didn't set the "event" flag to "true". Some platforms just ignore this flag and always enable the event, which is the reason that this happened to work on those. Signed-off-by: Jukka Laitinen --- src/drivers/imu/analog_devices/adis16470/ADIS16470.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/drivers/imu/analog_devices/adis16470/ADIS16470.cpp b/src/drivers/imu/analog_devices/adis16470/ADIS16470.cpp index a345aaf23002..71de4791beea 100644 --- a/src/drivers/imu/analog_devices/adis16470/ADIS16470.cpp +++ b/src/drivers/imu/analog_devices/adis16470/ADIS16470.cpp @@ -407,7 +407,7 @@ bool ADIS16470::DataReadyInterruptConfigure() } // Setup data ready on falling edge - return px4_arch_gpiosetevent(_drdy_gpio, false, true, false, &DataReadyInterruptCallback, this) == 0; + return px4_arch_gpiosetevent(_drdy_gpio, false, true, true, &DataReadyInterruptCallback, this) == 0; } bool ADIS16470::DataReadyInterruptDisable()