Page 1 of 1

GPS

Posted: November 2nd, 2021, 11:12 am
by RAKOTOVAO
Bonjour,

Pourquoi quand j'utilise le gps(latitude) et le gps(longitude) les coordonnées géographiques obtenues sont d'identiques d'un point à l'autre sur une tablette Android 11

Re: GPS

Posted: November 2nd, 2021, 3:18 pm
by RAKOTOVAO
gps(close); ne fonctionne pas avec Android 11

Re: GPS

Posted: November 3rd, 2021, 1:39 pm
by aaronw
We haven't had any reported issues with GPS readings on Android 11. Also, I see the location icon appearing and disappearing as open and close logic are run. Could there be some confusion with the readlast argument? It will return the last successful read.

Re: GPS

Posted: November 3rd, 2021, 2:46 pm
by RAKOTOVAO
PROC F216A

postproc
x = curocc(GPS_REC);

if $ = 1 then

gps(open);

numeric done = gps(read,60,5.5,"Piquage");

if gps(latitude) = F206(x-1) & gps(longitude) = F207(x-1) & x > 1 then
errmsg("%v; %v accuracy = %v and %v; %v",gps(latitude),gps(longitude),gps(accuracy),F206(x-1),F207(x-1));
endif;

errmsg("accuracy = %v",gps(accuracy));

if done then
F206 = gps(latitude);
F207 = gps(longitude);
endif;

gps(close);
else
F206 = 0;
F207 = 0;
endif;

Re: GPS

Posted: November 3rd, 2021, 2:50 pm
by RAKOTOVAO
Bonjour,
Comment pourrais-je vous envoyer deux vidéos que j'ai enregistré pendant que j'ai capturé les points ?

Re: GPS

Posted: November 3rd, 2021, 3:40 pm
by aaronw
What is the length and decimal places for F206 and F207?

Re: GPS

Posted: November 5th, 2021, 9:09 pm
by RAKOTOVAO
Bonjour,

len = 12 dec = 8

Re: GPS

Posted: November 9th, 2021, 5:31 pm
by aaronw
Those are reasonable sizes.

Taking a closer look at the logic it appears F206 and F207 are multiply occurring fields. However, when you make the assignment, you aren't specifying the occurrence.
F206 = gps(latitude);
F207 =
gps(longitude);

F206 =
0;
F207 =
0;