Search found 60 matches

by viktor_au
Mon Nov 17, 2025 12:03 am
Forum: General
Topic: Haversine formula
Replies: 8
Views: 552

Re: Haversine formula

Hi
All good. Thank you.
by viktor_au
Sat Nov 15, 2025 5:57 am
Forum: General
Topic: Haversine formula
Replies: 8
Views: 552

Re: Haversine formula

Hi Iain. You are a good man. I see the difference between the: ------------------------------------------------------------------------- a = (sin (((lat_diff / 2) * sin (lat_diff / 2))) + cos (Lat1) * cos (Lat2) * (sin (lon_diff / 2) * sin (lon_diff / 2))) And: a = ((sin(dlat / 2) * sin(dlat / 2))) ...
by viktor_au
Fri Nov 14, 2025 8:34 pm
Forum: General
Topic: Haversine formula
Replies: 8
Views: 552

Re: Haversine formula

Hi again. Haversine Did not work for me. a = sin² (Δlat / 2) + cos(lat1) × cos(lat2) × sin²(Δlong / 2) Flowcode: a = (sin (((lat_diff / 2) * sin (lat_diff / 2))) + cos (Lat1) * cos (Lat2) * (sin (lon_diff / 2) * sin (lon_diff / 2))) c = 2 * atan2 (sqrt (a),sqrt (1 - a)) d = 6371.0 * c Example1 -Wars...
by viktor_au
Tue Nov 11, 2025 6:15 pm
Forum: Feature Requests
Topic: Component for GNSS / GPS Modules
Replies: 5
Views: 432

Re: Component for GNSS / GPS Modules

I can only suggest to try to filter out the UTC time without even using the gps module.
If you use the string manipulations to get the 151227 out of ($GNRMC,151227.3997,) and convert it to local time, you can do the major part.
by viktor_au
Tue Nov 11, 2025 6:12 pm
Forum: General
Topic: Haversine formula
Replies: 8
Views: 552

Re: Haversine formula

Thank you guys for the help.
Will try to implement.
I thought I have to find the difference between the (for example) lat2-lat1 before the radian conversion.
by viktor_au
Tue Nov 11, 2025 5:16 am
Forum: General
Topic: Haversine formula
Replies: 8
Views: 552

Haversine formula

Hi
Wonder if anybody work with the gps distance calculation.
Any suggestions how to implement the Haversine formula?
Thanks.
by viktor_au
Mon Nov 10, 2025 9:28 pm
Forum: Feature Requests
Topic: Component for GNSS / GPS Modules
Replies: 5
Views: 432

Re: Component for GNSS / GPS Modules

HI. Only a time? Why don't you use the cheap Neo 6x module? Neo gives user a free software (u-centre). Easy to test the module without the flowcode engine. I do not think you need to use the flowcode component. Neo module can receive the $GNRMC,151227.3997,A,4723.5403567,N,00826.8867153,E,0.00000,81...
by viktor_au
Wed Nov 05, 2025 10:56 pm
Forum: Feature Requests
Topic: Component for GNSS / GPS Modules
Replies: 5
Views: 432

Re: Component for GNSS / GPS Modules

Hi Stefan
I am working with Neo8N right now.
What is the benefit of GPS SMA (instead of high speed) ?
Does it have a high precision?
Thanks
by viktor_au
Mon Oct 13, 2025 12:46 am
Forum: General
Topic: Loop While!
Replies: 25
Views: 7447

Re: Loop While!

Thanks Bijumon
Safety is important.
May be a good idea to put MC to sleep if no signal registered.
by viktor_au
Sat Oct 11, 2025 11:51 pm
Forum: General
Topic: Loop While!
Replies: 25
Views: 7447

Re: Loop While!

Good news, Jorgen.
One only note: you read the end switch state as byte.
Bool will save you some space (if you plan to extend the program later).