mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
Merge pull request #18170 from RocioRojas/zep_dispatch
tools/zep_dispatch: run dispatch with custom topology
This commit is contained in:
commit
e7ac109f0e
7
dist/tools/zep_dispatch/topogen.sh
vendored
7
dist/tools/zep_dispatch/topogen.sh
vendored
@ -22,9 +22,10 @@ RANGE=30 # base node radio range
|
||||
VARIANCE=15 # random offset to radio range
|
||||
NUM=10 # number of nodes
|
||||
|
||||
echo "writing to $FILE"
|
||||
|
||||
./bin/topogen -w $WIDTH -h $HEIGHT -r $RANGE -v $VARIANCE -n $NUM > "$FILE"
|
||||
if [ ! -f "$FILE" ]; then
|
||||
echo "writing to $FILE"
|
||||
./bin/topogen -w $WIDTH -h $HEIGHT -r $RANGE -v $VARIANCE -n $NUM > "$FILE"
|
||||
fi
|
||||
|
||||
if ! command -v gnuplot > /dev/null; then
|
||||
printf "${CWARN}%s${CRESET}\n" "gnuplot not installed"
|
||||
|
Loading…
Reference in New Issue
Block a user