feat: added command for videostream; fix: fixed error handling into: robot_control_gpio(), start(), run_app().

This commit is contained in:
Arduinum628
2025-11-17 14:06:24 +03:00
parent 16729812b6
commit 6e9026e3d9
3 changed files with 45 additions and 6 deletions

View File

@@ -40,12 +40,21 @@ class GpioLines(ModelConfig):
right_motor_consumer: str
class CommandsLinux(ModelConfig):
"""Класс с командами для линукса"""
videostream: str
on_videostream: bool
on_stream_debug: bool
class Settings(ModelConfig):
"""Класс для данных конфига"""
websocket_host: str
websocket_port: int
commands_robot: CommandsRobot = CommandsRobot()
commands_linux: CommandsLinux = CommandsLinux()
gpio_lines: GpioLines = GpioLines()