![]() |
Forum Index : Microcontroller and PC projects : Distance and Direction GPS calculations
Author | Message | ||||
srnet Senior Member ![]() Joined: 08/08/2014 Location: United KingdomPosts: 164 |
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: AustraliaPosts: 935 |
Have a look here. There are probably other examples. You could try this search. |
||||
brucepython![]() Regular Member ![]() Joined: 19/06/2011 Location: AustraliaPosts: 64 |
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] Bruce |
||||
srnet Senior Member ![]() Joined: 08/08/2014 Location: United KingdomPosts: 164 |
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. $50SAT is Silent but probably still working. For information on LoRa visit http://www.loratracker.uk/ |
||||
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |