Hi there,
I’m stuck on lecture: “Script to Automatically Launch QGC with DroneKit Script part3”
When I run launchSitl, I get the following output:
jason@dronebox:~/DroneCourseRoot/dk$ launchSitl basic_template.py
os: linux, apm: copter, release: stable
SITL already Downloaded and Extracted.
Ready to boot.
Execute: /home/jason/.dronekit/sitl/copter-3.3/apm --home=44.5013,-88.0622,0,180 --model=quad
Started model quad at 44.5013,-88.0622,0,180 at speed 1.0
bind port 5760 for 0
Starting sketch ‘ArduCopter’
Serial port 0 on TCP port 5760
Starting SITL input
Waiting for connection …
bind port 5762 for 2
Serial port 2 on TCP port 5762
bind port 5763 for 3
Serial port 3 on TCP port 5763
>>> Link timeout, no heartbeat in last 5 seconds
>>> No heartbeat in 30 seconds, aborting.
Traceback (most recent call last):
File “basic_template.py”, line 61, in
vehicle = connectMyCopter()
File “basic_template.py”, line 22, in connectMyCopter
vehicle = connect(connection_string,wait_ready=True)
File “/usr/local/lib/python2.7/dist-packages/dronekit/init.py”, line 2845, in connect
vehicle.initialize(rate=rate, heartbeat_timeout=heartbeat_timeout)
File “/usr/local/lib/python2.7/dist-packages/dronekit/init.py”, line 2117, in initialize
raise APIException(‘Timeout in initializing connection.’)
dronekit.APIException: Timeout in initializing connection.
/usr/local/bin/launchSitl: line 18: kill: (13151) - No such process
/usr/local/bin/launchSitl: line 19: kill: (13155) - No such process
/usr/local/bin/launchSitl: line 20: kill: (13159) - No such process
jason@dronebox:~/DroneCourseRoot/dk$ Closed connection on serial port 0
Any idea what’s going on?