Skip to content

Commit e6b4043

Browse files
committed
fix double dash issue in command line examples
1 parent f89ac8f commit e6b4043

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Diff for: dev/source/docs/sitl-with-realflight.rst

+5-5
Original file line numberDiff line numberDiff line change
@@ -111,14 +111,14 @@ Connecting to SITL running in WSL on the same machine
111111
Depending on your PC's power and version of RealFlight, it may be possible to run SITL under WSL and connect to RealFlight for the graphics and physics modeling. In this case you open the WSL instance and start SITL:
112112

113113
- cd ArduCopter (See Note below)
114-
- for WSL1: type ``sim_vehicle.py -f flightaxis:127.0.0.1 - -map - -console``
115-
- for WSL2: you will need to determine the gateway for the virtual machine by using the command ``route -n``, then using the gateway ip in the SITL startup command for flightaxis: ``sim_vehicle.py -f flightaxis:<gateway ip addr> - -map - -console``
114+
- for WSL1: type "sim_vehicle.py -f flightaxis:127.0.0.1 -\-map -\-console"
115+
- for WSL2: you will need to determine the gateway for the virtual machine by using the command ``route -n``, then using the gateway ip in the SITL startup command for flightaxis: "sim_vehicle.py -f flightaxis:<gateway ip addr> -\-map -\-console"
116116

117117
- back on RealFlight push the red "RESET" button on the transmitter, or spacebar on PC
118118
- after about a minute, the vehicle should be visible on the SITL map
119119
- from within SITL type ``param load <filename>`` to load the parameter found in the same directory as the model. You may have to load them again, after typing ``param fetch``, in order to load parameters that require enabling before presenting their parameter set. And, in some cases, you may even need to restart SITL in order for some new parameters, such as output function changes, to take effect.
120120

121-
.. tip:: the above can be avoided if you add the parameter file during the start of SITL with the "--add-param-file=*pathtofile* "....ie: sim_vehicle.py -f flightaxis:x.x.x.x - -map - -console --add-param-file=*pathtofile* -w. This adds the param file as a default and then wipes any previous param changes that may exist in the simulation directory.
121+
.. tip:: the above can be avoided if you add the parameter file during the start of SITL with the "--add-param-file=*pathtofile* "....ie: sim_vehicle.py -f flightaxis:x.x.x.x -\-map -\-console --add-param-file=*pathtofile* -w. This adds the param file as a default and then wipes any previous param changes that may exist in the simulation directory.
122122

123123
- The performance of the connection can be checked, after connecting to SITL, by opening the "NavGuides" widget in Realflight. The "Graphics Frames/Sec" count should be over 200 for the vehicle physics and interactions with the simulation to be accurate.
124124

@@ -137,10 +137,10 @@ This technique spreads the processing requirements between two PCs: one Windows
137137

138138
.. note:: be sure that there is no firewall preventing communication between the PCs. You should be able to "ping" one from the other.
139139

140-
- on the separate machine where SITL will run, start SITL sim_vehicle.py with "-f flightaxis:192.168.x.x" or if using a traditional helicopter, "-f heli - -model flightaxis:192.168.x.x".
140+
- on the separate machine where SITL will run, start SITL sim_vehicle.py with "-f flightaxis:192.168.x.x" or if using a traditional helicopter, "-f heli -\-model flightaxis:192.168.x.x".
141141

142142
- cd ArduCopter (See Note below)
143-
- sim_vehicle.py -f flightaxis:192.168.x.x - -map - -console.
143+
- sim_vehicle.py -f flightaxis:192.168.x.x -\-map -\-console.
144144
- then follow the remaining commands as in the :ref:`SITL under WSL <sitl-on-wsl>` section
145145

146146

0 commit comments

Comments
 (0)