Skip to content

Commit af903f5

Browse files
committed
Defer turn motor operator to future revision
1 parent e7403b9 commit af903f5

File tree

2 files changed

+13
-76
lines changed

2 files changed

+13
-76
lines changed

Diff for: OpenEphys.Commutator/AutoCommutator.bonsai

+13-4
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
44
xmlns:rx="clr-namespace:Bonsai.Reactive;assembly=Bonsai.Core"
55
xmlns:commutator="clr-namespace:OpenEphys.Commutator;assembly=OpenEphys.Commutator"
6+
xmlns:port="clr-namespace:Bonsai.IO.Ports;assembly=Bonsai.System"
67
xmlns="https://bonsai-rx.org/2018/workflow">
78
<Description>Control an Open Ephys commutator by using rotation angle measurements.</Description>
89
<Workflow>
@@ -27,21 +28,29 @@
2728
</commutator:RotationAxis>
2829
</Combinator>
2930
</Expression>
31+
<Expression xsi:type="Format">
32+
<Format>{{turn : {0}}}</Format>
33+
<Selector>it</Selector>
34+
</Expression>
3035
<Expression xsi:type="ExternalizedMapping">
3136
<Property Name="PortName" />
3237
</Expression>
3338
<Expression xsi:type="Combinator">
34-
<Combinator xsi:type="commutator:TurnMotor" />
39+
<Combinator xsi:type="port:SerialWriteLine">
40+
<port:PortName />
41+
<port:NewLine>\r\n</port:NewLine>
42+
</Combinator>
3543
</Expression>
3644
<Expression xsi:type="WorkflowOutput" />
3745
</Nodes>
3846
<Edges>
3947
<Edge From="0" To="1" Label="Source1" />
4048
<Edge From="1" To="3" Label="Source1" />
4149
<Edge From="2" To="3" Label="Source2" />
42-
<Edge From="3" To="5" Label="Source1" />
43-
<Edge From="4" To="5" Label="Source2" />
44-
<Edge From="5" To="6" Label="Source1" />
50+
<Edge From="3" To="4" Label="Source1" />
51+
<Edge From="4" To="6" Label="Source1" />
52+
<Edge From="5" To="6" Label="Source2" />
53+
<Edge From="6" To="7" Label="Source1" />
4554
</Edges>
4655
</Workflow>
4756
</WorkflowBuilder>

Diff for: OpenEphys.Commutator/TurnMotor.cs

-72
This file was deleted.

0 commit comments

Comments
 (0)