mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-21 01:12:11 +00:00
init.d-posix: delete rc.mavlink_override
This commit is contained in:
committed by
David Sidrane
parent
a63e25f581
commit
ac5167b459
@@ -36,5 +36,4 @@ add_subdirectory(airframes)
|
|||||||
px4_add_romfs_files(
|
px4_add_romfs_files(
|
||||||
rc.replay
|
rc.replay
|
||||||
rcS
|
rcS
|
||||||
rc.mavlink_override
|
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -1,30 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
. px4-alias.sh
|
|
||||||
|
|
||||||
# using parameters to open mavlink channels
|
|
||||||
|
|
||||||
for i in 0 1 2
|
|
||||||
do
|
|
||||||
if param greater MAV_${i}_BROADCAST 0
|
|
||||||
then
|
|
||||||
set MAV_ARGS "-u p:MAV_${i}_UDP_PRT -o p:MAV_${i}_REMOTE_PRT -m p:MAV_${i}_MODE -r p:MAV_${i}_RATE"
|
|
||||||
|
|
||||||
if param compare MAV_${i}_BROADCAST 1
|
|
||||||
then
|
|
||||||
set MAV_ARGS "${MAV_ARGS} -p"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if param compare MAV_${i}_BROADCAST 2
|
|
||||||
then
|
|
||||||
set MAV_ARGS "${MAV_ARGS} -c"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if param compare MAV_${i}_FORWARD 1
|
|
||||||
then
|
|
||||||
set MAV_ARGS "${MAV_ARGS} -f"
|
|
||||||
fi
|
|
||||||
|
|
||||||
mavlink start ${MAV_ARGS}
|
|
||||||
echo "Starting mavlink with command: mavlink start ${MAV_ARGS}"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
Reference in New Issue
Block a user