mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-01 02:55:07 +08:00
init.d-posix: rcS: allow to use a different startup config to the micrortps_client in UDP
This commit is contained in:
@@ -34,9 +34,10 @@
|
|||||||
add_subdirectory(airframes)
|
add_subdirectory(airframes)
|
||||||
|
|
||||||
px4_add_romfs_files(
|
px4_add_romfs_files(
|
||||||
px4-rc.params
|
|
||||||
px4-rc.simulator
|
|
||||||
px4-rc.mavlink
|
px4-rc.mavlink
|
||||||
|
px4-rc.params
|
||||||
|
px4-rc.rtps
|
||||||
|
px4-rc.simulator
|
||||||
rc.replay
|
rc.replay
|
||||||
rcS
|
rcS
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -0,0 +1,4 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
# shellcheck disable=SC2154
|
||||||
|
|
||||||
|
micrortps_client start -t UDP -r $((2019+2*px4_instance)) -s $((2020+2*px4_instance))
|
||||||
@@ -228,8 +228,7 @@ navigator start
|
|||||||
# Try to start the micrortps_client with UDP transport if module exists
|
# Try to start the micrortps_client with UDP transport if module exists
|
||||||
if px4-micrortps_client status > /dev/null 2>&1
|
if px4-micrortps_client status > /dev/null 2>&1
|
||||||
then
|
then
|
||||||
# shellcheck disable=SC2154
|
. px4-rc.rtps
|
||||||
micrortps_client start -t UDP -r $((2019+2*px4_instance)) -s $((2020+2*px4_instance))
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if param greater -s MNT_MODE_IN -1
|
if param greater -s MNT_MODE_IN -1
|
||||||
|
|||||||
Reference in New Issue
Block a user