@Guohao91 I received this two errors:
1) pi@raspberrypi:~ $ dronekit-sitl copter
os: linux, apm: copter, release: stable
SITL already Downloaded and Extracted.
Ready to boot.
Traceback (most recent call last):
File "/home/pi/.local/bin/dronekit-sitl", line 8, in <module>
sys.exit(main())
File "/home/pi/.local/lib/python3.7/site-packages/dronekit_sitl/init.py", line 601, in main
sitl.launch(args, verbose=True)
File "/home/pi/.local/lib/python3.7/site-packages/dronekit_sitl/init.py", line 251, in launch
caps = ArdupilotCapabilities(self.path)
File "/home/pi/.local/lib/python3.7/site-packages/dronekit_sitl/init.py", line 160, in init
process = subprocess.Popen([path, '--help'], stdout=subprocess.PIPE)
File "/usr/lib/python3.7/subprocess.py", line 775, in init
restore_signals, start_new_session)
File "/usr/lib/python3.7/subprocess.py", line 1522, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
OSError: [Errno 8] Exec format error: '/home/pi/.dronekit/sitl/copter-3.3/apm'
2) pi@raspberrypi:~ $ python hello.py
Start simulator (SITL)
Traceback (most recent call last):
File "hello.py", line 2, in <module>
import dronekit_sitl
ImportError: No module named dronekit_sitl
Hi there. I'm trying to connect dronekit to my 3dr solo. It's worked fine before with a small nanoPI payload computer over UDP using python 2.7. Now I'm trying to connect a Jetson Nano computer with the same 3dr solo using udp and python 3. I get connected, but just after connecting the console reads:
CRITICAL:Autopilot:APM:Copter solo-1.3.1
CRITICAL:autopilot:PX4: 5e693274 Nuttx: d48fa307
etc...
I have 3D GPS lock and the vehicle reports that it's armable and in Standby-mode.
I flies fine using the remote control, but I cannot get my python script to change vehicle mode to guided or anything else.
I suspect it's because of the CRITICAL statement, but I cant see what should be wrong or critical. QgroundControl reports no errors as well, so it seems to be related to dronekit.