Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 22:08 04 Jul 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : Distance and Direction GPS calculations

Author Message
srnet
Senior Member

Joined: 08/08/2014
Location: United Kingdom
Posts: 164
Posted: 10:09am 26 Jan 2015
Copy link to clipboard 
Print this post

I have some formulae that I used in a Mikrobasic project to calculate the distance and direction between two sets of GPS derived latitudes and longtitudes.

The calculation required the use of a ARCCOS and ARCSIN function.

I note MMbasic has ARCTAN, but are the ARCCOS and ARCSIN functions do-able ?

Or indeed has anyone run up such a calculation using MMbasic as is ?

Extreme accuracy not vital, +\- 1 degree and maybe within 10m per km.
$50SAT is Silent but probably still working.
For information on LoRa visit http://www.loratracker.uk/

 
BobD

Guru

Joined: 07/12/2011
Location: Australia
Posts: 935
Posted: 10:24am 26 Jan 2015
Copy link to clipboard 
Print this post

Have a look here. There are probably other examples. You could try this search.
 
brucepython

Regular Member

Joined: 19/06/2011
Location: Australia
Posts: 64
Posted: 10:47am 26 Jan 2015
Copy link to clipboard 
Print this post

I'm no expert, but give these a try:

arcsin(x) = 2*ATN(x/(2+SQR(1-x*x)))

arccos(x) = 2*ATN(SQR(1-x*x)/(1+x)) [NB only if -1<x<=1]

BruceEdited by brucepython 2015-01-27
 
srnet
Senior Member

Joined: 08/08/2014
Location: United Kingdom
Posts: 164
Posted: 08:24pm 26 Jan 2015
Copy link to clipboard 
Print this post

Thanks guys, thats all I needed to know for now, it does indeed look possible so very re-assuring.

The idea was to receive telemetry from a LoRa based high altitude balloon tracker and have a simple portable receiver (fitted with a GPS) tell you where and how far away the balloon was, including after it had landed, thus providing a simple means of locating it.

Edited by srnet 2015-01-28
$50SAT is Silent but probably still working.
For information on LoRa visit http://www.loratracker.uk/

 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025