Skip to content

Commit

Permalink
Merge pull request #33 from AllenNeuralDynamics/fix-manipulator-order
Browse files Browse the repository at this point in the history
Fix manipulator ordering
  • Loading branch information
bruno-f-cruz authored Jun 6, 2024
2 parents ab6b926 + 5ad228c commit c30f077
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion examples/aind_manipulator.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
)

rig = m.CalibrationRig(
harp_manipulator=m.AindManipulatorDevice(port_name="COM4"),
manipulator=m.AindManipulatorDevice(port_name="COM4", calibration=calibration_data),
rig_name="AindManipulatorRig",
)

Expand Down
2 changes: 1 addition & 1 deletion src/DataSchemas/aind_behavior_services/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = "0.7.6"
__version__ = "0.7.7"

from .rig import AindBehaviorRigModel
from .session import AindBehaviorSessionModel
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ class Axis(IntEnum):
"""Motor axis available"""

NONE = 0
Y1 = 1
Y2 = 2
X = 3
X = 1
Y1 = 2
Y2 = 3
Z = 4


Expand Down
10 changes: 5 additions & 5 deletions src/DataSchemas/schemas/aind_manipulator_calibration_rig.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
"axis_configuration": {
"default": [
{
"axis": 1,
"axis": 2,
"step_acceleration_interval": 100,
"step_interval": 100,
"microstep_resolution": 0,
Expand All @@ -93,7 +93,7 @@
"min_limit": -1
},
{
"axis": 2,
"axis": 3,
"step_acceleration_interval": 100,
"step_interval": 100,
"microstep_resolution": 0,
Expand All @@ -103,7 +103,7 @@
"min_limit": -1
},
{
"axis": 3,
"axis": 1,
"step_acceleration_interval": 100,
"step_interval": 100,
"microstep_resolution": 0,
Expand Down Expand Up @@ -131,9 +131,9 @@
},
"homing_order": {
"default": [
1,
2,
3,
1,
4
],
"items": {
Expand Down Expand Up @@ -240,9 +240,9 @@
"type": "integer",
"x-enumNames": [
"None",
"X",
"Y1",
"Y2",
"X",
"Z"
]
},
Expand Down
6 changes: 3 additions & 3 deletions src/Extensions/AindManipulatorCalibrationRig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -497,13 +497,13 @@ public enum Axis
None = 0,

[System.Runtime.Serialization.EnumMemberAttribute(Value="1")]
Y1 = 1,
X = 1,

[System.Runtime.Serialization.EnumMemberAttribute(Value="2")]
Y2 = 2,
Y1 = 2,

[System.Runtime.Serialization.EnumMemberAttribute(Value="3")]
X = 3,
Y2 = 3,

[System.Runtime.Serialization.EnumMemberAttribute(Value="4")]
Z = 4,
Expand Down

0 comments on commit c30f077

Please sign in to comment.