mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
Limit the number of vehicles
This commit is contained in:
parent
c89766c8ab
commit
01b280f7ae
@ -35,6 +35,12 @@ then
|
||||
exit 1
|
||||
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 )"
|
||||
src_path="$SCRIPT_DIR/.."
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user