ProjectNeura / LEADS

Build your race-ready electric car in 10 minutes with powerful electronic stability control and a modern dashboard.
https://leads.projectneura.org
Apache License 2.0
246 stars 53 forks source link

The Registration of `LEDGroup` Blocks the Devices Module from Proceeding #235

Closed ATATC closed 3 days ago

ATATC commented 3 days ago

For some unknown reason, any code after this segment does not execute.

@device((LEFT_INDICATOR, RIGHT_INDICATOR), MAIN_CONTROLLER, [
    (LED(5, .5, .5), LED(6, .5, .5), LED(26, .5, .5)), (LED(17, .5, .5), LED(27, .5, .5), LED(22, .5, .5))
])
class DirectionIndicators(LEDGroup):
    @override
    def initialize(self, *parent_tags: str) -> None:
        mark_device(self, "DI")
        super().initialize(*parent_tags)
        self.write(LEDGroupCommand(LEDCommand.BLINK_ONCE, Entire()))
ATATC commented 3 days ago

The cause is that this segment raises an ImportError.

ATATC commented 3 days ago

This is not fixable.