diff --git a/ROMFS/px4fmu_common/init.d/rcS b/ROMFS/px4fmu_common/init.d/rcS index 57e77cd269..80749fbe8c 100644 --- a/ROMFS/px4fmu_common/init.d/rcS +++ b/ROMFS/px4fmu_common/init.d/rcS @@ -479,6 +479,19 @@ else pwm_out start fi + # + # Optional UAVCAN/DroneCAN or Cyphal + # + if param greater -s UAVCAN_ENABLE 0 + then + uavcan start + else + if param greater -s CYPHAL_ENABLE 0 + then + cyphal start + fi + fi + # # Configure vehicle type specific parameters. # Note: rc.vehicle_setup is the entry point for all vehicle type specific setup. @@ -507,6 +520,11 @@ else # . ${R}etc/init.d/rc.serial + if param greater -s ZENOH_ENABLE 0 + then + zenoh start + fi + # Must be started after the serial config is read rc_input start $RC_INPUT_ARGS @@ -638,27 +656,6 @@ else fi unset BOARD_BOOTLOADER_UPGRADE - # - # Check if UAVCAN is enabled, default to it for ESCs. - # - if param greater -s UAVCAN_ENABLE 0 - then - # Start core UAVCAN module. - if ! uavcan start - then - tune_control play error - fi - else - if param greater -s CYPHAL_ENABLE 0 - then - cyphal start - fi - fi - if param greater -s ZENOH_ENABLE 0 - then - zenoh start - fi - # # End of autostart. #