diff --git a/ROMFS/px4fmu_common/init.d/rc.sensors b/ROMFS/px4fmu_common/init.d/rc.sensors index ce9e4264a0..245b9cd040 100644 --- a/ROMFS/px4fmu_common/init.d/rc.sensors +++ b/ROMFS/px4fmu_common/init.d/rc.sensors @@ -115,12 +115,15 @@ if px4flow start then fi -if pwm_input start -then -fi - -if ll40ls start pwm +if param compare SENS_ENABLE_LL40LS 1 then + if pwm_input start + then + fi + + if ll40ls start pwm + then + fi fi # diff --git a/src/modules/sensors/sensor_params.c b/src/modules/sensors/sensor_params.c index 6a127df0ea..6ed03f6606 100644 --- a/src/modules/sensors/sensor_params.c +++ b/src/modules/sensors/sensor_params.c @@ -1401,3 +1401,12 @@ PARAM_DEFINE_INT32(RC_RSSI_PWM_MAX, 1000); * */ PARAM_DEFINE_INT32(RC_RSSI_PWM_MIN, 2000); + +/** + * Enable Lidar-Lite (LL40LS) pwm driver + * + * @min 0 + * @max 1 + * @group Sensor Enable + */ +PARAM_DEFINE_INT32(SENS_ENABLE_LL40LS, 0);