init.d-posix: delete rc.mavlink_override

This commit is contained in:
Daniel Agar 2021-02-25 14:19:30 -05:00 committed by David Sidrane
parent a63e25f581
commit ac5167b459
2 changed files with 0 additions and 31 deletions

View File

@ -36,5 +36,4 @@ add_subdirectory(airframes)
px4_add_romfs_files(
rc.replay
rcS
rc.mavlink_override
)

View File

@ -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