Skip to content

Commit

Permalink
mavlink2rest currect route to wwsl
Browse files Browse the repository at this point in the history
  • Loading branch information
alireza787b committed Aug 29, 2024
1 parent cda8a20 commit 798d690
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion setup/setup_px4_sitl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ DEFAULT_CLONE_PATH="$HOME"
DEFAULT_CONFIG_FILE="$HOME/.px4sitl_config"
DEFAULT_FALLBACK_IP="127.0.0.1"
SCRIPT_NAME="px4xplane_script.sh"
MAVLINK2REST_IP = "127.0.0.1"
PLATFORM_CHOICES=("xplane_ehang184" "xplane_alia250" "xplane_cessna172" "xplane_tb2")

# === MAVLink Router Configuration ===
Expand Down Expand Up @@ -313,10 +314,11 @@ if grep -qEi "(Microsoft|WSL)" /proc/version &> /dev/null; then
MAVLINK_ROUTER_PID=$!

# Provide additional instructions and delay for better visibility
highlight "MAVLink Router is now running. You can connect to the following endpoints from your Windows machine:"
highlight "MAVLink Router is now running. You can connect to the following endpoints:"
echo " - $PX4_SIM_HOSTNAME:14540"
echo " - $PX4_SIM_HOSTNAME:14550"
echo " - $PX4_SIM_HOSTNAME:14569"
echo " - $MAVLINK2REST_IP:14569"
echo " "
highlight "Make sure to configure these endpoints in your X-Plane setup as needed."
sleep 5 # Allow the user time to read the information
Expand Down

0 comments on commit 798d690

Please sign in to comment.