Fixed the bug that occurs when the location changes rapidly by disabling FLOAT_CARR_PHASE
This commit is contained in:
parent
2475e3ff1b
commit
482d511058
2
gpssim.h
2
gpssim.h
@ -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)
|
||||
|
2
socket.c
2
socket.c
@ -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]);
|
||||
|
Loading…
Reference in New Issue
Block a user