goto_location results in the aircraft descending to 0m alt and crashing
See original GitHub issueI 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:
- Created 3 years ago
- Comments:24 (3 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Ok, good point @hamishwillee and @iwishiwasaneagle. In this case it I would suggest
goto_location_home_relative_altitude
😃.If it’s just a matter of preferences, I like 1 better 😇:
EDIT: but then, how does “home” and “terrain” go in there?
One object-oriented way I could imagine would be to do:
With
Altitude
being an abstract class, so you would have to instantiate one ofAltitudeAboveTerrain
,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 🤔…