Skip to content

How to use mavsdk-python to takeoff without GPS #704

Open
@Hmilzy

Description

@Hmilzy

Hello !
I will first introduce the framework. I have a control PC and a drone connected to the Raspberry Pi via a serial port.
Now I want to send a "takeoff" command from my PC and transmit it to the Raspberry Pi via UDP. After receiving the command, the Raspberry Pi will execute the program drone.action.takeoff() in mavsdk-python to control the takeoff.
I deployed mavsdk-server and mavlink-router on the Raspberry Pi.
mavlink-routerd -e 127.0.0.1:30000 /dev/ttyAMA0:921600 ./mavsdk_server .... -p 50040 udp://0.0.0.0:30000

I conducted an experiment indoor,I was able to successfully connect to the drone and commands were sent from the control computer to the Raspberry Pi. But when drone.action.takeoff() is executed, an error like command denied will be reported.

So I want to know whether the prerequisite for takeoff is to receive GPS signal, because I can successfully arm indoors, but I can't takeoff.

And If I want to control the flight indoors, how should I write mavsdk-python?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions