mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-01 02:55:07 +08:00
Check for bebop ip as environment variable
This commit is contained in:
committed by
Lorenz Meier
parent
847562f5d7
commit
0d9c031a2c
@@ -1,6 +1,12 @@
|
||||
#!/bin/bash
|
||||
|
||||
ip=192.168.42.1
|
||||
if [ -z ${BEBOP_IP+x} ]; then
|
||||
ip=192.168.42.1
|
||||
echo "\$BEBOP_IP is not set (use default: $ip)"
|
||||
else
|
||||
ip=$BEBOP_IP
|
||||
echo "\$BEBOP_IP is set to $ip"
|
||||
fi
|
||||
port=9050
|
||||
|
||||
echo "Connecting to bebop: $ip:$port"
|
||||
|
||||
Reference in New Issue
Block a user