You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using a Raspberry Pi to control the Pixhawk. I just started using the dronekit. I am working on the 'Hello Drone' script and I am stuck in the starting stages.
print ( "Start simulator (SITL)" )
Start simulator (SITL)
import dronekit_sitl.start_default()
_SyntaxError: invalid syntax
sitl = dronekit_sitl.start_default()
Traceback (most recent call last):
File "<pyshell#2>", line 1, in
sitl = dronekit_sitl.start_default()
NameError: name 'dronekit_sitl' is not defined
import dronekit_sitl
sitl = dronekit_sitl.start_default()
Starting copter simulator (SITL)
SITL already Downloaded and Extracted.
Ready to boot.
T_raceback (most recent call last):
File "<pyshell#4>", line 1, in
sitl = dronekit_sitl.start_default()
File "/usr/local/lib/python3.4/dist-packages/dronekit_sitl/init.py", line 341, in start_default
sitl.launch(sitl_args, await_ready=True, restart=True)
File "/usr/local/lib/python3.4/dist-packages/dronekit_sitl/init.py", line 271, in launch
p = Popen([self.path] + args, cwd=wd, shell=sys.platform == 'win32', stdout=PIPE, stderr=PIPE)
File "/usr/lib/python3.4/subprocess.py", line 859, in init
restore_signals, start_new_session)
File "/usr/lib/python3.4/subprocess.py", line 1457, in execute_child
raise child_exception_type(errno_num, err_msg)
OSError: [Errno 8] Exec format error
I am using a Raspberry Pi to control the Pixhawk. I just started using the dronekit. I am working on the 'Hello Drone' script and I am stuck in the starting stages.
print ( "Start simulator (SITL)" )
Start simulator (SITL)
import dronekit_sitl.start_default()
_SyntaxError: invalid syntax
sitl = dronekit_sitl.start_default()
Traceback (most recent call last):
File "<pyshell#2>", line 1, in
sitl = dronekit_sitl.start_default()
NameError: name 'dronekit_sitl' is not defined
import dronekit_sitl
sitl = dronekit_sitl.start_default()
Starting copter simulator (SITL)
SITL already Downloaded and Extracted.
Ready to boot.
T_raceback (most recent call last):
File "<pyshell#4>", line 1, in
sitl = dronekit_sitl.start_default()
File "/usr/local/lib/python3.4/dist-packages/dronekit_sitl/init.py", line 341, in start_default
sitl.launch(sitl_args, await_ready=True, restart=True)
File "/usr/local/lib/python3.4/dist-packages/dronekit_sitl/init.py", line 271, in launch
p = Popen([self.path] + args, cwd=wd, shell=sys.platform == 'win32', stdout=PIPE, stderr=PIPE)
File "/usr/lib/python3.4/subprocess.py", line 859, in init
restore_signals, start_new_session)
File "/usr/lib/python3.4/subprocess.py", line 1457, in execute_child
raise child_exception_type(errno_num, err_msg)
OSError: [Errno 8] Exec format error
Why am I getting this error? How do I solve it?
I tried setting up SITL as shown in this link.
http://ardupilot.org/dev/docs/setting-up-sitl-on-linux.html
But when i try it, the systems restarts.
Can someone please tell me how to solve this?
Thanks.
The text was updated successfully, but these errors were encountered: