question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

goto_location results in the aircraft descending to 0m alt and crashing

See original GitHub issue

I have tried the following multiple times, with varying altitudes and airframes (Iris and Plane). However each time this is called, the UAV seemingly just descends until it lands.

#!/usr/bin/env python3

import asyncio
from mavsdk import System, mission_raw

async def run():
    drone = System()
    await drone.connect(system_address="udp://:14540")

    print("Waiting for drone to connect...")
    async for state in drone.core.connection_state():
        if state.is_connected:
            print(f"Drone discovered with UUID: {state.uuid}")
            break
    
    await drone.action.goto_location(55.8688660,-4.2851267,40,0)

if __name__ == "__main__":
    loop = asyncio.get_event_loop()
    loop.run_until_complete(run())

System:

  • Ubuntu 18.04 LTS
  • Gazebo 9
  • PX4 master

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:24 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
julianoescommented, Jul 27, 2020

Ok, good point @hamishwillee and @iwishiwasaneagle. In this case it I would suggest goto_location_home_relative_altitude 😃.

1reaction
JonasVautherincommented, Jul 24, 2020

If it’s just a matter of preferences, I like 1 better 😇:

  1. goto_location_absolute_altitude() and goto_location_relative_altitude()

EDIT: but then, how does “home” and “terrain” go in there?

One object-oriented way I could imagine would be to do:

goto_location(double lat, double lng, Altitude alt);

With Altitude being an abstract class, so you would have to instantiate one of AltitudeAboveTerrain, AltitudeAboveHome, AltitudeAboveSeaLevel or something like that. But we can’t generate that kind of stuff from our proto files, and I don’t know if that would generalize well to all languages 🤔…

Read more comments on GitHub >

github_iconTop Results From Across the Web

Section 4. ATC Clearances and Aircraft Separation - FAA
Climb/descent within the block is to be made at the discretion of the pilot. However, once the pilot starts descent and verbally reports...
Read more >
Control your Speed… During Descent, Approach and Landing
Our objective is to cover descent from cruise altitude down toward the destination airport and prepare the aircraft for its approach and landing....
Read more >
SilkAir Flight 185 - Wikipedia
SilkAir Flight 185 was a scheduled international passenger flight operated by a Boeing ... Its investigation concluded that the crash was the result...
Read more >
Golden Eagle SRR-Mk1 & Teal Air Control Small Unmanned Aircraft ...
protect internal components in a crash and provide protection to the IP 53 ... Once flight begins, normal cell discharge results in self-heating,...
Read more >
Accident Report - NTSB/AAR-14/01 PB2014-105984
Aircraft Accident Report. Descent Below Visual Glidepath and Impact With Seawall. Asiana Airlines Flight 214. Boeing 777-200ER, HL7742.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found