From 7f94850c4fd46496b522bd47b7d1e7f05849a06f Mon Sep 17 00:00:00 2001 From: gym487 Date: Mon, 1 May 2017 00:54:33 +0800 Subject: [PATCH] readme --- README.md | 23 ++++++++++++++++++++++- gpssim.c | 1 + 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 95c4da7..273873d 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ to RF using software-defined radio (SDR) platforms, such as $ gcc gpssim.c -lm -O3 -o gps-sdr-sim ``` -## Realtime by Gnuradio +### Realtime by Gnuradio Use -n option can connect to a TCP source in Gnuradio for realtime simulation. @@ -26,6 +26,26 @@ The tcp source should be set in "Server" mode. See tcp.grc as an example. +### Map + +cd into /mapserver, and run + +``` +python mapper.py +``` + +Then visit http://127.0.0.1:8080/static/baidumap.html to use the baidu Online map. + +Actually I don't want to use BaiduMap.. But because of the GFW, I can't access Google.. + +You can write an map which can POST data to http://127.0.0.1/post like this + +``` +lon=116&lat=39&hgt=10 +``` + +to replace Baidumap. + ### Generating the GPS signal file A user-defined trajectory can be specified in either a CSV file, which contains @@ -78,6 +98,7 @@ Options: -i Disable ionospheric delay for spacecraft scenario -v Show details about simulated channels -n Use TCP connection to Gnuradio TCP-Source for realtime simulation. + -w Connect with map server(/mapserver/mapper.py) by udp on port 5678. ``` The user motion can be specified in either dynamic or static mode: diff --git a/gpssim.c b/gpssim.c index 397de7a..dde6f09 100644 --- a/gpssim.c +++ b/gpssim.c @@ -1663,6 +1663,7 @@ void usage(void) " -i Disable ionospheric delay for spacecraft scenario\n" " -v Show details about simulated channels\n", " -n 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); return;