Add README and prompt for static llh coordinate mode '-l'

This commit is contained in:
scateu 2015-07-14 23:30:07 +08:00
parent 9df3b4fde0
commit e07c70aa8f
2 changed files with 10 additions and 4 deletions

View File

@ -37,13 +37,14 @@ Doppler for the GPS satellites in view. This simulated range data is
then used to generate the digitized I/Q samples for the GPS signal. then used to generate the digitized I/Q samples for the GPS signal.
The bladeRF command line interface requires I/Q pairs stored as signed The bladeRF command line interface requires I/Q pairs stored as signed
16-bit integers, while the hackrf_transfere supports signed bytes. 16-bit integers, while the hackrf_transfer supports signed bytes.
``` ```
Usage: gps-sdr-sim [options] Usage: gps-sdr-sim [options]
Options: Options:
-e <gps_nav> RINEX navigation file for GPS ephemerides (required) -e <gps_nav> RINEX navigation file for GPS ephemerides (required)
-u <user_motion> User motion file (required) -u <user_motion> User motion file
-l <location> Latitude,Longitude,Height (static mode) eg: 30.286502,120.032669,100
-o <output> I/Q sampling data file (default: gpssim.bin) -o <output> I/Q sampling data file (default: gpssim.bin)
-s <frequency> Sampling frequency [Hz] (default: 2600000) -s <frequency> Sampling frequency [Hz] (default: 2600000)
-b <iq_bits> I/Q data format [8/16] (default: 8) -b <iq_bits> I/Q data format [8/16] (default: 8)
@ -55,6 +56,10 @@ For example:
> gps-sdr-sim -e brdc3540.14n -u circle.csv -b 16 > gps-sdr-sim -e brdc3540.14n -u circle.csv -b 16
``` ```
```
> gps-sdr-sim -e brdc3540.14n -l 30.286502,120.032669,100 -b 16
```
### Transmitting the samples ### Transmitting the samples
The TX port of a particular SDR platform is connected to the GPS receiver The TX port of a particular SDR platform is connected to the GPS receiver

View File

@ -1076,7 +1076,7 @@ void usage(void)
printf("Usage: gps-sdr-sim [options]\n" printf("Usage: gps-sdr-sim [options]\n"
"Options:\n" "Options:\n"
" -e <gps_nav> RINEX navigation file for GPS ephemerides (required)\n" " -e <gps_nav> RINEX navigation file for GPS ephemerides (required)\n"
" -u <user_motion> User motion file (required)\n" " -u <user_motion> User motion file \n"
" -l <location> Latitude,Longitude,Height (static mode) eg: 30.286502,120.032669,100\n" " -l <location> Latitude,Longitude,Height (static mode) eg: 30.286502,120.032669,100\n"
" -o <output> I/Q sampling data file (default: gpssim.bin)\n" " -o <output> I/Q sampling data file (default: gpssim.bin)\n"
" -s <frequency> Sampling frequency [Hz] (default: 2600000)\n" " -s <frequency> Sampling frequency [Hz] (default: 2600000)\n"
@ -1213,9 +1213,10 @@ int main(int argc, char *argv[])
exit(1); exit(1);
} }
if (umfile[0]==0) if (umfile[0]==0 && !staticLocationMode)
{ {
printf("User motion file is not specified.\n"); printf("User motion file is not specified.\n");
printf("Or you may use -l to specify llh coordinate directly.\n");
exit(1); exit(1);
} }