Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

4.7:add WSL2 mirrored netwk SITL option #6566

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions dev/source/docs/sitl-on-windows-wsl.rst
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@ Running SITL
:target: ../_images/sitl-on-windows-wsl-vscode.png
:width: 450px

.. note:: if you have configured WSL2 for mirrored networking (ie using the``set networkingMode=mirrored`` command), then use
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we refer to this https://learn.microsoft.com/en-us/windows/wsl/wsl-config#main-wsl-settings @Hwurzburg ? It's not a command, it's a setting in the .wslconfig file in your Windows home directory (i.e. not in your WSL home directory).

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes agreed

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

iti s a command, but can be made persistent by writing the config (not a newbee task), if we eventually agree its something anyone with WSL2 (at least a recent version since this isn't available in earlier releases....means people might be FORCED to update their WSL2...not sure that's good) should be doing....given the above I have my doubts


::

cd ~/ardupilot/ArduCopter
../Tools/autotest/sim_vehicle.py --map --console --no-wsl2-network

#. SITL and *MAVProxy* will start. *MAVProxy* displays three windows:

- command prompt in which you enter commands to SITL
Expand Down