Skip to content
Closed
Show file tree
Hide file tree
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
3 changes: 2 additions & 1 deletion dronekit/tools/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@

def setup_sitl():
global sitl
sitl = SITL('copter', '3.3-rc5')
sitl = SITL()
sitl.download('copter', '3.3')
sitl.launch(sitl_args, await_ready=True, restart=True)

def teardown_sitl():
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ nose>=1.3.7
psutil>=3.0.0
mock>=1.3.0
six>=1.9.0
dronekit-sitl>=2.3.0,<=2.99999
dronekit-sitl>=3.0,<=3.99999
8 changes: 5 additions & 3 deletions tests/sitl/test_goto.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,8 @@ def test_goto(connpath):
# NOTE these are *very inappropriate settings*
# to make on a real vehicle. They are leveraged
# exclusively for simulation. Take heed!!!
vehicle.parameters['ARMING_CHECK'] = 0
vehicle.parameters['FS_THR_ENABLE'] = 0
vehicle.parameters['FS_GCS_ENABLE'] = 0
vehicle.parameters['EKF_CHECK_THRESH'] = 0
vehicle.parameters['FS_EKF_THRESH'] = 100

def arm_and_takeoff(aTargetAltitude):
"""
Expand All @@ -48,6 +46,10 @@ def arm_and_takeoff(aTargetAltitude):
time.sleep(1)
i = i - 1

# EKF warmup. Await that EKF's predicted horizontal position (absolute) estimate is good
while not vehicle._ekf_predposhorizabs:
time.sleep(1)

vehicle.armed = True

i = 60
Expand Down