diff --git a/src/ephys_link/__about__.py b/src/ephys_link/__about__.py index 9772ef9..bc86c94 100644 --- a/src/ephys_link/__about__.py +++ b/src/ephys_link/__about__.py @@ -1 +1 @@ -__version__ = "1.2.2.dev1" +__version__ = "1.2.2" diff --git a/src/ephys_link/platforms/new_scale_pathfinder_handler.py b/src/ephys_link/platforms/new_scale_pathfinder_handler.py index ee70073..36661f2 100644 --- a/src/ephys_link/platforms/new_scale_pathfinder_handler.py +++ b/src/ephys_link/platforms/new_scale_pathfinder_handler.py @@ -184,9 +184,12 @@ def _get_pos(self, manipulator_id: str) -> com.PositionalOutputData: def _get_angles(self, manipulator_id: str) -> com.AngularOutputData: manipulator_data = self.query_manipulator_data(manipulator_id) + # Apply PosteriorAngle to Polar to get the correct angle. + adjusted_polar = manipulator_data["Polar"] - self.query_data()["PosteriorAngle"] + return com.AngularOutputData( [ - manipulator_data["Polar"], + adjusted_polar if adjusted_polar > 0 else 360 + adjusted_polar, manipulator_data["Pitch"], manipulator_data["Roll"], ],