|
|
|
@ -99,7 +99,7 @@ def main():
|
|
|
|
special = special_detector.predict(landmarks)
|
|
|
|
special = special_detector.predict(landmarks)
|
|
|
|
|
|
|
|
|
|
|
|
# Вкл/выкл управления жестами
|
|
|
|
# Вкл/выкл управления жестами
|
|
|
|
if special == 'cross' and cross_cooldown == 0:
|
|
|
|
if special == 'dome' and cross_cooldown == 0:
|
|
|
|
enabled = not enabled
|
|
|
|
enabled = not enabled
|
|
|
|
cross_cooldown = CROSS_COOLDOWN_FRAMES
|
|
|
|
cross_cooldown = CROSS_COOLDOWN_FRAMES
|
|
|
|
if cross_cooldown > 0:
|
|
|
|
if cross_cooldown > 0:
|
|
|
|
@ -107,10 +107,10 @@ def main():
|
|
|
|
|
|
|
|
|
|
|
|
# Тушение
|
|
|
|
# Тушение
|
|
|
|
if enabled:
|
|
|
|
if enabled:
|
|
|
|
if special == 'dome' and not dome_processed:
|
|
|
|
if special == 'cross' and not dome_processed:
|
|
|
|
robot.send_fire_ext_burst_cmd()
|
|
|
|
robot.send_fire_ext_burst_cmd()
|
|
|
|
dome_processed = True
|
|
|
|
dome_processed = True
|
|
|
|
elif special != 'dome':
|
|
|
|
elif special != 'cross':
|
|
|
|
dome_processed = False
|
|
|
|
dome_processed = False
|
|
|
|
|
|
|
|
|
|
|
|
# Скорости из рук
|
|
|
|
# Скорости из рук
|
|
|
|
|