fix
This commit is contained in:
parent
1fcd35fc0d
commit
56616721b3
6
gpssim.c
6
gpssim.c
@ -1661,10 +1661,10 @@ void usage(void)
|
||||
" -s <frequency> Sampling frequency [Hz] (default: 2600000)\n"
|
||||
" -b <iq_bits> I/Q data format [1/8/16] (default: 16)\n"
|
||||
" -i Disable ionospheric delay for spacecraft scenario\n"
|
||||
" -v Show details about simulated channels\n",
|
||||
" -n <port> Use TCP connect to Gnuradio TCP-Source for\n realtime simulation.\n",
|
||||
" -v Show details about simulated channels\n"
|
||||
" -n <port> Use TCP connect to Gnuradio TCP-Source for\n realtime simulation.\n"
|
||||
"-w Connect with map server(/mapserver/mapper.py) by udp on port 5678.\n",
|
||||
(USER_MOTION_SIZE)/10.0,STATIC_MAX_DURATION);
|
||||
(double)((USER_MOTION_SIZE)/10.0),(int)STATIC_MAX_DURATION);
|
||||
|
||||
return;
|
||||
}
|
||||
|
6
socket.c
6
socket.c
@ -8,7 +8,7 @@
|
||||
#include <stdlib.h>
|
||||
#include <fcntl.h>
|
||||
#include <sys/shm.h>
|
||||
|
||||
#include <sys/time.h>
|
||||
|
||||
|
||||
|
||||
@ -57,10 +57,10 @@ int udpinit(short port){
|
||||
}
|
||||
int udprecv(int s,void *dataa,int siz){
|
||||
struct sockaddr from;
|
||||
return recvfrom(s, dataa, siz, 0,&from,sizeof(from));
|
||||
return recvfrom(s, dataa, siz, 0,&from,0);
|
||||
}
|
||||
|
||||
double llhr[3]={39.68,139,76,10};
|
||||
double llhr[3]={39.68,139,76};
|
||||
|
||||
void threadrecv(){
|
||||
printf("listing\n");
|
||||
|
Loading…
Reference in New Issue
Block a user