Compare commits

..

1 Commits

Author SHA1 Message Date
gestures2 adbd59de14 1 version 2 weeks ago

@ -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
# Скорости из рук # Скорости из рук

@ -1 +1 @@
Subproject commit e74f1b09d71973da345aeff691daeda954e5c080 Subproject commit 096ee5143f8c2c414b58f88c0b8fcda53dbc847e
Loading…
Cancel
Save