Skip to content

Commit

Permalink
Reduce wind speed in example script
Browse files Browse the repository at this point in the history
  • Loading branch information
rajat2004 committed Aug 24, 2020
1 parent 3082a02 commit 881a76e
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions PythonClient/multirotor/set_wind.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,8 @@

client.armDisarm(True)

# Set wind to (20,0,0) in NED (forward direction)
print("Setting wind to (20,0,0)")
wind = airsim.Vector3r(20, 0, 0)
print("Setting wind to 10m/s in forward direction") # NED
wind = airsim.Vector3r(10, 0, 0)
client.simSetWind(wind)

# Takeoff or hover
Expand All @@ -24,14 +23,13 @@

time.sleep(5)

# Set wind to (0,25,0) in NED (towards right)
print("Setting wind to (0,25,0)")
wind = airsim.Vector3r(0, 25, 0)
print("Setting wind to 15m/s towards right") # NED
wind = airsim.Vector3r(0, 15, 0)
client.simSetWind(wind)

time.sleep(5)

# Set wind to 0
print("Resetting wind to (0,0,0)")
print("Resetting wind to 0")
wind = airsim.Vector3r(0, 0, 0)
client.simSetWind(wind)

0 comments on commit 881a76e

Please sign in to comment.