[Swlug] Re Maths calculations
Julian Hall
linux at kaotic.co.uk
Thu Jul 21 11:02:49 UTC 2022
On 20/07/2022 23:12, Rhys Sage via Swlug wrote:
> Thanks for the pointer, Alan and many thanks to everybody who has contributed. I found the same Python code Alan found, a couple of hours ago. It tests OK with my figures, giving me the expected result of 211 miles from the Tower of London to the Arc de Triomphe. My own flat-earth calculation which allowed for the fact degrees are different surface mileages (48 miles v 69 miles) came out with 217 miles. That's actually a darned good estimate but what's the point if one can't be 100% accurate?
>
> I'm implementing the new code in my main program as we speak. For those that wonder how far my drone can fly. It's not a case of distance but a case of accuracy. With the drone knowing how far it can fly, being able to calculate speed from the GPS and knowing fuel range means it can then switch to time and magnetic heading navigation in the absence of GPS. It's a case of having multiple kinds of redundant backup. Even the GPS can be used for altitude calculations with the $GPGGA sentence.
>
> When complete, this drone will be able to navigate its way to its destination with/without satellite systems, accurately. It will be able to change its route in flight as it perceives hazards on the route. It will be protected against jamming and electrical/radio interference, will be coated against laser attack and will deflect radar. That's the plan that I'm working on. It might take 6 months or so doing it solo but I'll get there.
>
> Then I can write a book about it all and if the drone doesn't sell, the book will. I've already written 3 books. Two on high speed photography under my own name, a porn novel under a name I shall not disclose so a third book is no great issue.
>
> Rhys Sage
This thread may help?
https://stackoverflow.com/questions/19412462/getting-distance-between-two-points-based-on-latitude-longitude
Julian
--
“The great tragedy of Science — the slaying of a beautiful hypothesis by an ugly fact.”
― Thomas Henry Huxley
More information about the Swlug
mailing list