From 62ff707663feaf7f9d97c7fcc00593ee999bf047 Mon Sep 17 00:00:00 2001 From: HappyZ Date: Thu, 1 Feb 2018 10:32:36 -0600 Subject: [PATCH] bug fix --- iw_parser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iw_parser.py b/iw_parser.py index f6e64b0..3cac4cc 100755 --- a/iw_parser.py +++ b/iw_parser.py @@ -21,7 +21,7 @@ def wrapper(args): distance = int(tmp[3].split(' ')[1]) if distance < -1000: continue - results.append(distance * args['args'][0] + args['cali'][1]) + results.append(distance * args['cali'][0] + args['cali'][1]) print('statics of results') print('* num of valid data: {0}'.format(len(results))) print('* min: {0:.2f}cm'.format(min(results)))