pressure_conf - bruno-beloff/scs_mfr GitHub Wiki
docs > software repositories > scs_mfr > commands > configuration
DESCRIPTION
The pressure_conf utility is used to specify whether or not a digital barometer is present and, optionally, the altitude of the device. This information is used to determine the pressure at sea level ("p0"). If the altitude is not specified, then no p0 value is returned by the pressure_sampler and climate_sampler utilities.
If the MPL115A2 sensor is used, then determination of p0 requires the temperature sensor in the MPL115A2 digital barometer to be calibrated. This is done using the mpl115a2_calib utility.
Forthcoming versions of the pressure_conf utility will support a "GPS" mode, in which altitude is found from a GPS receiver.
The climate_sampler and pressure_sampler sampler processes must be restarted for changes to take effect.
SYNOPSIS
pressure_conf.py { [-m MODEL] [-a ALTITUDE] | -d } [-v]
Options | |
---|---|
--version | show program's version number and exit |
-h, --help | show this help message and exit |
-m MODEL, --model=MODEL | barometer model { ICP | MPL } |
-a ALTITUDE, --altitude=ALTITUDE | altitude in metres or 'GPS' for GPS altitude |
-d, --delete | delete the pressure configuration |
-v, --verbose | report narrative to stderr |
EXAMPLES
./pressure_conf.py -m ICP -a 100
FILES
~/SCS/conf/pressure_conf.json
DOCUMENT EXAMPLE
{"model": "ICP", "altitude": 100}