Closed booo closed 1 year ago
Yeah, I agree, the calculation is pretty basic :-) I can switch method and use sampled gps distance, I can sure improve it, nobody actually bothered to ask for a better implementation, would you be willing to test it?
Switching to haversine I've got an error of 200m on a 75Km flight, should be good enough (reference is ArduPilot OSD which is updated at 10Hz)
That sounds great. We can test the implementation on one of our next test flights for our project.
Thanks for taking the time to implement a better solution!
hi, please try latest master
Sorry, this slipped through. We will do tests in the next weeks. Thanks for your work!
did you had a chance to test ?
Is it possible to calculate the total distance traveled based on the actual UAV positions? Do we receive the UAV position via the telemetry data? Or do we need an additional script or something on the FC as mentioned here.
The current calculation differs from the calculations done by e.g. QGC quite a lot for flights longer than e.g. 50 kilometers.