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
GPS
-
aaronw
- Posts: 571
- Joined: June 9th, 2016, 9:38 am
- Location: Washington, DC
Re: GPS
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.
-
RAKOTOVAO
- Posts: 29
- Joined: February 12th, 2020, 5:57 am
Re: GPS
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;
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;
-
aaronw
- Posts: 571
- Joined: June 9th, 2016, 9:38 am
- Location: Washington, DC
Re: GPS
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.
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;
F207 = gps(longitude);
F206 = 0;
F207 = 0;