fixed that not enabled can turn down fire
This commit is contained in:
@@ -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()
|
||||
'''
|
||||
|
||||
# Отрисовка
|
||||
|
||||
Reference in New Issue
Block a user