fixed that not enabled can turn down fire
This commit is contained in:
@@ -73,11 +73,12 @@ def main():
|
|||||||
cross_cooldown -= 1
|
cross_cooldown -= 1
|
||||||
|
|
||||||
# Тушение
|
# Тушение
|
||||||
if special == 'dome' and not dome_processed:
|
if enabled:
|
||||||
robot.send_fire_ext_burst_cmd()
|
if special == 'dome' and not dome_processed:
|
||||||
dome_processed = True
|
robot.send_fire_ext_burst_cmd()
|
||||||
elif special != 'dome':
|
dome_processed = True
|
||||||
dome_processed = False
|
elif special != 'dome':
|
||||||
|
dome_processed = False
|
||||||
|
|
||||||
# Скорости из рук
|
# Скорости из рук
|
||||||
linear, angular = arm_control.compute_speeds(landmarks)
|
linear, angular = arm_control.compute_speeds(landmarks)
|
||||||
@@ -96,10 +97,11 @@ def main():
|
|||||||
dynamic_counter = 30
|
dynamic_counter = 30
|
||||||
|
|
||||||
'''
|
'''
|
||||||
if dynamic_gesture == 'wave_left':
|
if enabled:
|
||||||
robot.reset_position()
|
if dynamic_gesture == 'wave_left':
|
||||||
elif dynamic_gesture == 'wave_right':
|
robot.reset_position()
|
||||||
robot.restart()
|
elif dynamic_gesture == 'wave_right':
|
||||||
|
robot.restart()
|
||||||
'''
|
'''
|
||||||
|
|
||||||
# Отрисовка
|
# Отрисовка
|
||||||
|
|||||||
Reference in New Issue
Block a user