I’m using Jetson Nano and Orange Cube. I get this error when I try to run DroneKit. can you help me
What is the content of the hello.py? Seems like you don’t have a connection with your flight controller. Can you connect to the flight controller with MAVProxy?
This code is for connecting to simulated vehicle. Remove parts related with sitl and provide the appropriate connection string for your serial connection used for MAVProxy to connect to your vehicle.
So for dronekit-python, the below is bare minimum:
import dronekit vehicle = dronekit.connect(ip="/dev/ttyAMA0", baud=921600, wait_ready=True) print(vehicle.mode.name)
If the above is not working, the problem is your configurations:
- Connection string (device link) is wrong.
- Baud rate is wrong (on the flight controller or in your connection string or both).
- Current user does not have privileges for serial connections.
- Something is wrong with serial configurations of your computer (especially on single board computers).
Those have meanings, you just can’t read them. Run
set shownoise false on MAVProxy to not see them.
Follow the replies of mine in this topic:
Instead of arm binary, download the binary in here.