from pydantic import BaseModel


class RotationConfig(BaseModel):
    step_angle: float = 30.0
    sharp_turn_threshold: float = 45.0
    confidence_threshold: float = 0.7
    history_size: int = 10

    @property
    def rotation_iterations(self) -> int:
        return int(360 / self.step_angle)

