tomojitakasu / RTKLIB

2.58k stars 1.63k forks source link

How to calculate position in rtklib? #643

Open raffaeledp opened 2 years ago

raffaeledp commented 2 years ago

Hello everybody, I have a simple .bin file from which I extract many RTCM structures into the main.

 rtcm_t rtcm;
 init_rtcm(&rtcm);
 *extracting rtcm3 messages*
 input_rtcm3f(&rtcm, file_pointer);
 rtk_t rtk;
 prcopt_t opt;
 *setting opt*

So, I have many different rtcm messages to work with. At this point, I would like to simply calculate the position of the station. I've tried to call:

pppos(&rtk, array[i].obs.data, n, &array[i].nav); or

rtkpos(&rtk, array[i].obs.data, n, &array[i].nav) Studying the function, for first, I can't understand what the parameter n means... it's the number of the columns of the matrix called into the function (pppos)...but to which value should I set it? Anyway, in both cases, all the rtk.sol fields are 0... is the solution into rtk.sol? I'm not sure about it. What I am doing wrong?