MCPcopy Create free account
hub / github.com/RobotTelevision/CrowAssistant / __init__

Method __init__

Crow.py:68–88  ·  view source on GitHub ↗
(self, crow)

Source from the content-addressed store, hash-verified

66
67class CrowAnimationController:
68 def __init__(self, crow):
69 self.crow = crow
70 self.head_index = 0
71 self.idle_index = 0
72 self.fly_index = 0
73 self.blink_timer = 0
74 self.lookback_timer = 0
75
76
77 # Animation speeds
78 self.head_animation_speed = 10 # frames per second
79 self.idle_animation_speed = 1 # frames per second
80 self.fly_animation_speed = 10 # frames per second
81 self.blink_interval = 10 # frames between blinks
82 self.lookback_interval = 120 # frames between lookbacks
83
84 # Timers
85 self.idle_timer = 0
86 self.fly_timer = 0
87 self.blink_cooldown = 0
88 self.lookback_cooldown = 0
89
90 def update(self):
91 # Update head animation based on volume

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected