mavlink / MAVSDK-Java

MAVSDK client for Java.
73 stars 42 forks source link

getTelemetry().getRawGps is working but getTelemetry().getPosition isn't #95

Closed jjcetraro closed 2 years ago

jjcetraro commented 2 years ago

I can connect to the drone with no problem, and I can get the position using the getRawGps method, but if I want to use getPosition instead, the callback is never executed. Why is that?

JonasVautherin commented 2 years ago

Are you sure that you have a GPS fix? Not sure what the raw gps gives you, but getPosition will only give you the position when there is a gps fix. So if you are e.g. indoors, it may just not have any.

jjcetraro commented 2 years ago

I think that was exactly the problem. Thanks for your soon reply!