From 4a4835ede2541c6fb634645fe443d8baa12571f5 Mon Sep 17 00:00:00 2001 From: Roman Dvorak Date: Mon, 26 Aug 2024 20:15:10 +0200 Subject: [PATCH] start driver by setting enable parameter --- ROMFS/px4fmu_common/init.d/rc.sensors | 6 ++++++ platforms/nuttx/NuttX/nuttx | 2 +- src/drivers/rpm/s35770/parameters.c | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ROMFS/px4fmu_common/init.d/rc.sensors b/ROMFS/px4fmu_common/init.d/rc.sensors index 5410d28beeb1..1b0f112c67c6 100644 --- a/ROMFS/px4fmu_common/init.d/rc.sensors +++ b/ROMFS/px4fmu_common/init.d/rc.sensors @@ -211,6 +211,12 @@ then pcf8583 start -X -a 0x51 fi +# S35770 counter (RPM sensor) +if param compare -S SENS_EN_S35770 1 +then + s35770 start -X +fi + # probe for optional external I2C devices if param compare SENS_EXT_I2C_PRB 1 then diff --git a/platforms/nuttx/NuttX/nuttx b/platforms/nuttx/NuttX/nuttx index d140f96627bd..39bb38d82b12 160000 --- a/platforms/nuttx/NuttX/nuttx +++ b/platforms/nuttx/NuttX/nuttx @@ -1 +1 @@ -Subproject commit d140f96627bd55edd24060cb90fe4c55ed3b9efd +Subproject commit 39bb38d82b128a57d0ca40c25ba3ad6601ec0a83 diff --git a/src/drivers/rpm/s35770/parameters.c b/src/drivers/rpm/s35770/parameters.c index 438e06bcde22..d6e8691b1801 100644 --- a/src/drivers/rpm/s35770/parameters.c +++ b/src/drivers/rpm/s35770/parameters.c @@ -1,6 +1,6 @@ /**************************************************************************** * - * Copyright (c) 2020 PX4 Development Team. All rights reserved. + * Copyright (c) 2024 PX4 Development Team. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions