Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dronekit #121

Open
prash319 opened this issue Jan 30, 2018 · 0 comments
Open

Dronekit #121

prash319 opened this issue Jan 30, 2018 · 0 comments

Comments

@prash319
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant