forked from Archive/PX4-Autopilot
Limit the number of vehicles
This commit is contained in:
parent
c89766c8ab
commit
01b280f7ae
|
@ -35,6 +35,12 @@ then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ $num_vehicles -gt 255 ]
|
||||||
|
then
|
||||||
|
echo "Tried spawning $num_vehicles vehicles. The maximum number of supported vehicles is 255"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||||
src_path="$SCRIPT_DIR/.."
|
src_path="$SCRIPT_DIR/.."
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue