diff --git a/ROMFS/px4fmu_common/init.d/rcS b/ROMFS/px4fmu_common/init.d/rcS index 4f101e89f7..c89b4bf84d 100644 --- a/ROMFS/px4fmu_common/init.d/rcS +++ b/ROMFS/px4fmu_common/init.d/rcS @@ -593,6 +593,12 @@ then sf0x start fi + # mb12xx sonar sensor + if param compare SENS_EN_MB12XX 1 + then + mb12xx start + fi + if ver hwcmp PX4FMU_V4 then frsky_telemetry start -d /dev/ttyS6 diff --git a/src/modules/sensors/sensor_params.c b/src/modules/sensors/sensor_params.c index b4e8983f2a..710b4154d2 100644 --- a/src/modules/sensors/sensor_params.c +++ b/src/modules/sensors/sensor_params.c @@ -3054,6 +3054,16 @@ PARAM_DEFINE_INT32(SENS_EN_LL40LS, 0); */ PARAM_DEFINE_INT32(SENS_EN_SF0X, 0); +/** + * Maxbotix Soanr (mb12xx) + * + * @reboot_required true + * + * @boolean + * @group Sensor Enable + */ +PARAM_DEFINE_INT32(SENS_EN_MB12XX, 0); + /** * Set the minimum PWM for the MAIN outputs *