Skip to content

Commit

Permalink
Accessing ESP Pins after Rosys #237 (#247)
Browse files Browse the repository at this point in the history
In [rosys PR #237](zauberzeug/rosys#237) the
EspPins for Core and P0 are created in rosys/hardware/robot_brain.py.
This PR changes the import of the EspPins according to this change.

---------

Co-authored-by: Pascal Schade <[email protected]>
  • Loading branch information
LukasBaecker and pascalzauberzeug authored Dec 19, 2024
1 parent 39461d4 commit b327f17
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions field_friend/interface/components/development.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import rosys
from nicegui import ui
from rosys.hardware import EspPins

from .hardware_control import create_hardware_control_ui
from .io_overview import IoOverview as io_overview
Expand Down Expand Up @@ -39,8 +38,8 @@ def create_development_ui(system: 'System') -> None:
if isinstance(system.field_friend, rosys.hardware.RobotHardware):
with ui.row():
with ui.card().style('min-width: 200px;'):
esp_pins_core = EspPins(name='core', robot_brain=system.field_friend.robot_brain)
esp_pins_core = system.field_friend.robot_brain.esp_pins_core
esp_pins_core.developer_ui()
with ui.card().style('min-width: 200px;'):
esp_pins_p0 = EspPins(name='p0', robot_brain=system.field_friend.robot_brain)
esp_pins_p0 = system.field_friend.robot_brain.esp_pins_p0
esp_pins_p0.developer_ui()
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ icecream
pillow
prompt-toolkit # for lizard monitor
pynmea2
rosys == v0.19.0
rosys == v0.21.0
shapely
uvicorn == 0.28.1

0 comments on commit b327f17

Please sign in to comment.