1 version
This commit is contained in:
@@ -99,7 +99,7 @@ def main():
|
||||
special = special_detector.predict(landmarks)
|
||||
|
||||
# Вкл/выкл управления жестами
|
||||
if special == 'cross' and cross_cooldown == 0:
|
||||
if special == 'dome' and cross_cooldown == 0:
|
||||
enabled = not enabled
|
||||
cross_cooldown = CROSS_COOLDOWN_FRAMES
|
||||
if cross_cooldown > 0:
|
||||
@@ -107,10 +107,10 @@ def main():
|
||||
|
||||
# Тушение
|
||||
if enabled:
|
||||
if special == 'dome' and not dome_processed:
|
||||
if special == 'cross' and not dome_processed:
|
||||
robot.send_fire_ext_burst_cmd()
|
||||
dome_processed = True
|
||||
elif special != 'dome':
|
||||
elif special != 'cross':
|
||||
dome_processed = False
|
||||
|
||||
# Скорости из рук
|
||||
|
||||
Submodule submodules/gesture_detection updated: e74f1b09d7...096ee5143f
Reference in New Issue
Block a user