GPS Firing only twice in 200+Meters

HI, I am writing a comprehensive Vehicle Performance APP that tracks real world performance following Vehicle performance upgrades. I am having an issue where the GPS will only fire twice in a 200+ meter test. This results in the actual vehicle travel far exceeding the "Finish Line. Blocks currently set up are as follows. I have run other Apps that use Haversine distance calculations concurrent with my project and the GPS Fires about every 30'. Can anyone see what might be the issue?? Phone used for testing is a Samsung S22 Ultra. Blocks follow

We need to see Designer settings too.

(Canned Reply: ABG- Export & Upload .aia)
Export your .aia file and upload it here.

export_and_upload_aia

.

Tune_and_test.aia (274.4 KB)

image

According to the tool tip and your TimerInterval setting in the Designer,
there is a minimum of 60 seconds between location updates.

Are you okay with that?

(edit - I see you overwrite this at initialization)
image

But why do you need two Location Sensors?
image

How can the runner be in two locations at the same time?

image

A 0 distance interval sounds like it's pushing it too far, or turning the feature off.
Maybe 1 would work better?

image

This is a wait loop, which does not work in AI2.

image

This looks pretty useless.

All it does is run itself?

I have Tried values in Distance Interval ranging from 0 to 10 and nothing in that area makes any difference.

Understood and I can probably eliminate it as I have never seen if actioned in any of the testing I have done.

Rethink that timing loop.
That's definitely wrong.

Your app mentions a four second countdown in a yellow Label.

A Clock Timer would be a logical place to implement that.

The second GPS sensor is no longer used,(and should be deleted) it is from an early iteration. As for the 8- Second minimum That will not work in this application as a typical run lasts less than 15 seconds and on some runs lass that half of that. As mentioned in my initial query I have an App on my phone that updates about every 30 feet at walking speed and I have user the same distance and time intervals as that App with no improvement??

image

I see a Button for setting the Start location.

But I don't see a Button for setting the End location.

So, is the speed measured by distance from the start after a given interval?

Hi The intent is to have the GPS monitor location Shutdown is triggered when the Run Distance is equal or exceeded. RunDistance in meters is calculated using the haversine distance calculation.

Have you read sing the Location Sensor . If you have not please do so know.

You seem not to have an understanding how the Location Sensor works in App Inventor.

Your loop that @ABG mentioned is probably the main issue.

Because the LocationSensor using those settings has a mind of its own and will ONLY notice a location change when the LocationChanged event fires when the sensor recognizes a new satellite fix.

:disappointed_relieved:

no improvement ? in your latest app? I don't understand.

Is it an app you made with App Inventor? The best most hardware gps receiver can resolve is 2 meters using App Inventor.