gps_conf - bruno-beloff/scs_mfr GitHub Wiki

docs > software repositories > scs_mfr > commands > configuration


DESCRIPTION

The gps_conf utility is used to specify whether a GPS receiver module is present and if so, which model is provided. It also specifies the interval between samples of the GPS location, and the number of samples to be averaged.

The PAM7Q module provides a report every two seconds, but a sample interval of 10 seconds is usually appropriate. The averaging tally depends on the mode of use of the device: for a fixed device, 10 minutes (60 samples) is effective in rejecting "quality 0" readings, whereas a mobile device requires a tally of 1.

The u-blox PAM-7Q and SAM-M8Q GPS modules are supported.

The REPORT_FILE parameter, if set, indicates where the latest queue length value should be stored.

The status_sampler must be restarted for changes to take effect.

SYNOPSIS

gps_conf.py [{ [-m MODEL] [-i INTERVAL] [-t TALLY] [-l { 0 | 1 }] | -d }] [-v]

Options
--version show program's version number and exit
-h, --help show this help message and exit
-m, --model set the model (PAM7Q or SAM8Q)
-i SAMPLE_INTERVAL, --sample-interval=SAMPLE_INTERVAL set sampling interval (seconds)
-t TALLY, --tally=TALLY set the averaging tally
-l DEBUG, --debug=DEBUG set debug logging (default is 0)
-d, --delete delete the GPS configuration
-v, --verbose report narrative to stderr

EXAMPLES

./gps_conf.py -m SAM8Q -i 10 -t 60 -l 1

DOCUMENT EXAMPLE

{"model": "SAM8Q", "sample-interval": 10, "tally": 60, "debug": true}

FILES

~/SCS/conf/gps_conf.json

SEE ALSO

scs_dev/status_sampler
scs_dev/display