How can I get this?
Best regards.
GPS satellites count
Moderator: Martin
GPS satellites count
All systems nominal.
Re: GPS satellites count
Hi,
The variable satellites of trigger GPS Status Event should allow to determine this information.
Regards,
Martin
The variable satellites of trigger GPS Status Event should allow to determine this information.
Regards,
Martin
Re: GPS satellites count
Wow! So informative information about satellites here!
I think it is about status only.
TY, Martin!
I think it is about status only.
TY, Martin!
All systems nominal.
Re: GPS satellites count
Is there a formula that you could suggest for getting the number of satellites used in fix?
Thank you in advance for the assistance.
Thank you in advance for the assistance.
Re: GPS satellites count
Code: Select all
uif = 0;
satellitesList = newList();
for(s in satellites) {
p = split(s, ';');
satellite = newMap();
for(pv in p) {
kv = split(pv, '=');
satellite[kv[0]] = eval(kv[1]);
}
addElement(satellitesList, satellite);
}
log(satellitesList);
for(s in satellitesList) {
if(s['used_in_fix']) uif = uif + 1;
}
log(uif);
All systems nominal.
Re: GPS satellites count
Thank you very much for the assistance. I didn't realize that it would be that complex.
Re: GPS satellites count
You can do it with fromJSON(), but it more complex...
If you want only satellites used in fix, you can use something like if(search(s, 'used_in_fix=true')){}
If you want only satellites used in fix, you can use something like if(search(s, 'used_in_fix=true')){}
All systems nominal.