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:
2026-09-09 16:09:02 +02:00
parent f0638788fc
commit c67316dd90
8 changed files with 176 additions and 23 deletions
+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