GPS

CSPro News
Post Reply
RAKOTOVAO
Posts: 28
Joined: February 12th, 2020, 5:57 am

GPS

Post 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
RAKOTOVAO
Posts: 28
Joined: February 12th, 2020, 5:57 am

Re: GPS

Post by RAKOTOVAO »

gps(close); ne fonctionne pas avec Android 11
aaronw
Posts: 526
Joined: June 9th, 2016, 9:38 am
Location: Washington, DC

Re: GPS

Post 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.
RAKOTOVAO
Posts: 28
Joined: February 12th, 2020, 5:57 am

Re: GPS

Post 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;
RAKOTOVAO
Posts: 28
Joined: February 12th, 2020, 5:57 am

Re: GPS

Post by RAKOTOVAO »

Bonjour,
Comment pourrais-je vous envoyer deux vidéos que j'ai enregistré pendant que j'ai capturé les points ?
aaronw
Posts: 526
Joined: June 9th, 2016, 9:38 am
Location: Washington, DC

Re: GPS

Post by aaronw »

What is the length and decimal places for F206 and F207?
RAKOTOVAO
Posts: 28
Joined: February 12th, 2020, 5:57 am

Re: GPS

Post by RAKOTOVAO »

Bonjour,

len = 12 dec = 8
aaronw
Posts: 526
Joined: June 9th, 2016, 9:38 am
Location: Washington, DC

Re: GPS

Post 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;
Post Reply