Skip to content

Commit

Permalink
Updated README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
spk170 committed Jul 16, 2018
1 parent 9abaf9e commit 895a477
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@ The simulation can also be controlled using a Python script and the Udacidrone A
To run a scenario from Python:
1. Select the scenario within the Unity simulation
2. Select the "Run Python Code" button, you should see a "Waiting for Python" message
3. Change fixed_wing_project.py to execute the same scenario (see below)
3. Execute fixed_wing_project.py using the appropriately numbered scenario and the scenario should start autonomatically:

~~~
Expand All @@ -119,6 +118,16 @@ For example, the following will execute the altitude hold scenario:
python fixed_wing_project.py -2
~~~

OR

3. With Udacidrone (v0.3.3 or later), the Unity simulator will automatically notify Python of the scenario number being run. Execute fixed_wing_project.py without a scenario number to automatically execute this scenario:

~~~py

# Automatically detects which scenario the Unity simulation is executing
python fixed_wing_project.py
~~~

If fixed_wing_project.py is run before being prompted onscreen in the Unity simulation, the python code will be unable to connect.

Note: there is a known bug where the python may not connect and get stalled trying to connect (usually after a scenario has already been run). If this happens:
Expand Down

0 comments on commit 895a477

Please sign in to comment.