mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-31 18:47:21 +08:00
Move uavcan start to end of rcS to prevent sd card read lock
This commit is contained in:
@@ -264,23 +264,6 @@ else
|
|||||||
. $FCONFIG
|
. $FCONFIG
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#
|
|
||||||
# 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
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Start IO for PWM output or RC input if enabled
|
# Start IO for PWM output or RC input if enabled
|
||||||
#
|
#
|
||||||
@@ -527,6 +510,23 @@ else
|
|||||||
fi
|
fi
|
||||||
unset BOARD_BOOTLOADER_UPGRADE
|
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
|
||||||
|
|
||||||
#
|
#
|
||||||
# End of autostart.
|
# End of autostart.
|
||||||
#
|
#
|
||||||
|
|||||||
Reference in New Issue
Block a user