From 0fcdc1efba49fbd1e05aecc21b7579705f8ac23f Mon Sep 17 00:00:00 2001 From: Artem30801 Date: Mon, 10 Feb 2020 16:13:22 +0300 Subject: [PATCH] Telem fix --- Server/copter_table_models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Server/copter_table_models.py b/Server/copter_table_models.py index 4b4e147..8e90029 100644 --- a/Server/copter_table_models.py +++ b/Server/copter_table_models.py @@ -131,8 +131,8 @@ def check_start_pos(item, context): if context.current_position is None: return item != 'NO_POS' # maybe should return true - delta = get_distance(get_position(context.current_position), - get_position(context.start_position)) + delta = get_distance(get_position(context.current_position[:2]), + get_position(context.start_position[:2])) if math.isnan(delta): return False