From a79dc82f5b3d1dcb1c98c98f87ed29f5163ec1f5 Mon Sep 17 00:00:00 2001 From: HappyZ Date: Sun, 4 Feb 2018 18:36:44 -0600 Subject: [PATCH] add indoor option; by default will assume outdoor calibration params --- libMeasurement.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/libMeasurement.py b/libMeasurement.py index 67e7bd5..e4e46ec 100755 --- a/libMeasurement.py +++ b/libMeasurement.py @@ -249,6 +249,17 @@ def main(): action="store_true", help="if set, show detailed messages" ) + p.add_argument( + '--indoor', + default=False, + action="store_true", + help=( + "if set, use default indoor calibration params " + + "(will be ignored if `cali` is being used)" + ) + ) + if args['indoor'] and args['cali'] == (0.8927, 553.3157): + args['cali'] = (0.9376, 558.0551) try: args = vars(p.parse_args()) except Exception as e: