diff --git a/main.py b/main.py index 4c79803..0380ea3 100644 --- a/main.py +++ b/main.py @@ -73,11 +73,12 @@ def main(): cross_cooldown -= 1 # Тушение - if special == 'dome' and not dome_processed: - robot.send_fire_ext_burst_cmd() - dome_processed = True - elif special != 'dome': - dome_processed = False + if enabled: + if special == 'dome' and not dome_processed: + robot.send_fire_ext_burst_cmd() + dome_processed = True + elif special != 'dome': + dome_processed = False # Скорости из рук linear, angular = arm_control.compute_speeds(landmarks) @@ -96,10 +97,11 @@ def main(): dynamic_counter = 30 ''' - if dynamic_gesture == 'wave_left': - robot.reset_position() - elif dynamic_gesture == 'wave_right': - robot.restart() + if enabled: + if dynamic_gesture == 'wave_left': + robot.reset_position() + elif dynamic_gesture == 'wave_right': + robot.restart() ''' # Отрисовка