From 2b6a15a95b26a89a72cf5e926b5c34db542f5dc0 Mon Sep 17 00:00:00 2001 From: secret_dude Date: Tue, 13 Apr 2021 21:49:31 +0200 Subject: [PATCH] minor updates 2 --- FindPath.py | 2 +- constants.py | 2 +- main.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/FindPath.py b/FindPath.py index 44b9419..5dbb697 100644 --- a/FindPath.py +++ b/FindPath.py @@ -26,7 +26,7 @@ def nearestLookingField(board, tractor, TillageUnit): print('Wroc do bazy zmienic narzedzie') end_horizontal_index = 0 end_vertical_index = 0 - return(end_horizontal_index, end_vertical_index) + return end_horizontal_index, end_vertical_index def graphsearch(tractor, board, TillageUnit): start_horizontal_index = tractor.horizontal_index diff --git a/constants.py b/constants.py index 2498dfe..402d504 100644 --- a/constants.py +++ b/constants.py @@ -33,4 +33,4 @@ FPS = 10 #ANIMATION_PART -ANIMATION_PART = 1 \ No newline at end of file +ANIMATION_PART = 11 diff --git a/main.py b/main.py index 7e44402..9001be5 100644 --- a/main.py +++ b/main.py @@ -45,7 +45,7 @@ while working: field = board[tractor.horizontal_index][tractor.vertical_index] if tractor.autodrive and tractor.engineWorking: - animationSpeed = 11 + animationSpeed = ANIMATION_PART else: animationSpeed = 1 print(ANIMATION_PART)