zauberzeug / lizard

Domain-specific language to specify behaviour of microcontroller managed hardware
MIT License
14 stars 5 forks source link

Error Accessing change Attribute of Input on Expander Module #36

Closed angelom93 closed 1 week ago

angelom93 commented 4 months ago

Description

When attempting to access the change attribute of an input that is part of the expander module in the following code snippet:

when bump_code == 1 and bumper_front.change > 0 then bump_code = 2; end an error occurs during the startup of the ESP. The issue does not arise when the input is not part of the expander.

Error Message

The error message displayed is:

rosys/hardware/communication/serial_communication.py:75: read: error while loading startup script: unknown property "change"@78

falkoschindler commented 4 months ago

I think this issue will be fixed by https://github.com/zauberzeug/lizard/issues/18:

To support rules for proxy modules, we need a way to wait for their counterpart on the expander. Could we implement something like proxy.await_broadcast(timeout: float = 5.0) which blocks until the next broadcast is received?