8f93f90fb8
Prevent hard Servo movements to Idle Position
15 lines
557 B
Python
15 lines
557 B
Python
"""
|
|
states/__init__.py - State Machine Initialization
|
|
"""
|
|
from states.State import State, STATE_REGISTRY
|
|
from states.IdleState import IdleState
|
|
from states.WalkingState import WalkingState, WalkingFourState
|
|
from states.StopState import StopState
|
|
|
|
# Register available state instances
|
|
STATE_REGISTRY["idle"] = IdleState()
|
|
STATE_REGISTRY["stopping"] = StopState()
|
|
STATE_REGISTRY["walking"] = WalkingState()
|
|
STATE_REGISTRY["walking_four"] = WalkingFourState()
|
|
|
|
__all__ = ["State", "STATE_REGISTRY", "IdleState", "StopState", "WalkingState", "WalkingFourState"] |