Fixed the bug that occurs when the location changes rapidly by disabling FLOAT_CARR_PHASE

This commit is contained in:
gym487 2022-07-12 08:45:49 +08:00
parent 2475e3ff1b
commit 482d511058
No known key found for this signature in database
GPG Key ID: 8E9F2B90AE75CF39
2 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
#ifndef GPSSIM_H
#define GPSSIM_H
#define FLOAT_CARR_PHASE // For RKT simulation. Higher computational load, but smoother carrier phase.
//#define FLOAT_CARR_PHASE // For RKT simulation. Higher computational load, but smoother carrier phase.
#define TRUE (1)
#define FALSE (0)

View File

@ -63,9 +63,9 @@ int udprecv(int s,void *dataa,int siz){
double llhr[3]={39.68,139,76};
void threadrecv(void *p){
printf("listing\n");
short port=*(short*)p;
int s=udpinit(port);
printf("listening on port %d\n",port);
while(1){
udprecv(s,llhr,3*sizeof(double));
//printf("%lf%lf%lf\n",llhr[0],llhr[1],llhr[2]);