Added derive units to core

Derive units are now available in the core and has their relevant input
values routed and outputs are looped back into the core router

Fixed the dlpak manifest which had no signal descriptors
This commit is contained in:
h3cx committed 2026-09-09 16:09:02 +02:00
1 parent f0638788fc
commit c67316dd90
8 files changed
+176 -23

No files matched your search

+11
View File
@@ -0,0 +1,11 @@
from dynalab_core.protocols.packets.data import ValueDescriptor
from dynalab_core.protocols.packets.handshake import SignalDescriptor
def process(
a: ValueDescriptor, b: ValueDescriptor, r: SignalDescriptor
) -> ValueDescriptor:
val = ValueDescriptor(
signal_id=r.id, value=a.value * b.value, timestamp=a.timestamp
)
return val