osqzss / gps-sdr-sim

Software-Defined GPS Signal Simulator
MIT License
2.75k stars 773 forks source link

Implement a request server #284

Closed ghost closed 3 years ago

ghost commented 3 years ago

Hello,

I have tried to add a listening server which retrieves coordinate from POST request. I have edited gpssim.c file but I have a core dumped due to an absurd calculation result of iTable.

This is the piece of code I added :

screenshot2

data->xyz is where the coordinates from POST request are stored.

Here is the core dumped result :

screenshot

Could you please explain to me how to compute iTable correctly ?

Thanks in advance.

Regards.