diff --git a/Makefile b/Makefile index b741004..4f6933f 100644 --- a/Makefile +++ b/Makefile @@ -5,8 +5,8 @@ all: gps-sdr-sim SHELL=/bin/bash CC=gcc -CFLAGS=-fopenmp -O3 -Wall -LDFLAGS=-lm -fopenmp +CFLAGS=-O3 -Wall +LDFLAGS=-lm gps-sdr-sim: gpssim.o ${CC} $< ${LDFLAGS} -o $@ @@ -15,5 +15,6 @@ clean: rm -f gpssim.o gps-sdr-sim *.bin time: gps-sdr-sim + time ./gps-sdr-sim -e brdc3540.14n -u circle.csv -b 1 time ./gps-sdr-sim -e brdc3540.14n -u circle.csv -b 8 time ./gps-sdr-sim -e brdc3540.14n -u circle.csv -b 16 diff --git a/gpssim.c b/gpssim.c index 4473be2..be7132e 100644 --- a/gpssim.c +++ b/gpssim.c @@ -1558,7 +1558,6 @@ int main(int argc, char *argv[]) double llh[3]; int i; - int nsat; channel_t chan[MAX_CHAN]; double elvmask = 0.0; // in degree @@ -1903,7 +1902,7 @@ int main(int argc, char *argv[]) grx = g0; // Allocate visible satellites - nsat = allocateChannel(chan, eph[ieph], grx, xyz[0], elvmask); + allocateChannel(chan, eph[ieph], grx, xyz[0], elvmask); for(i=0; i