Skip to content

Commit

Permalink
Remove dockingEnabled from DefaultLocalizationPose
Browse files Browse the repository at this point in the history
  • Loading branch information
Eddasol committed Feb 5, 2025
1 parent 2a82208 commit 73d33ed
Show file tree
Hide file tree
Showing 7 changed files with 1,292 additions and 19 deletions.
5 changes: 1 addition & 4 deletions backend/api/Controllers/InspectionAreaController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -266,17 +266,14 @@ [FromBody] CreateDefaultLocalizationPose newDefaultLocalizationPose
if (inspectionArea.DefaultLocalizationPose != null)
{
inspectionArea.DefaultLocalizationPose.Pose = newDefaultLocalizationPose.Pose;
inspectionArea.DefaultLocalizationPose.DockingEnabled =
newDefaultLocalizationPose.IsDockingStation;
_ = await defaultLocalizationPoseService.Update(
inspectionArea.DefaultLocalizationPose
);
}
else
{
inspectionArea.DefaultLocalizationPose = new DefaultLocalizationPose(
newDefaultLocalizationPose.Pose,
newDefaultLocalizationPose.IsDockingStation
newDefaultLocalizationPose.Pose
);
inspectionArea = await inspectionAreaService.Update(inspectionArea);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,5 @@ public CreateDefaultLocalizationPose()
}

public Pose Pose { get; set; }
public bool IsDockingStation { get; set; } = false;
}
}
9 changes: 0 additions & 9 deletions backend/api/Database/Models/DefaultLocalizationPose.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@ public class DefaultLocalizationPose
[Required]
public Pose Pose { get; set; }

[Required]
public bool DockingEnabled { get; set; } = false;

public DefaultLocalizationPose()
{
Pose = new Pose();
Expand All @@ -25,11 +22,5 @@ public DefaultLocalizationPose(Pose pose)
{
Pose = pose;
}

public DefaultLocalizationPose(Pose pose, bool dockingEnabled)
{
Pose = pose;
DockingEnabled = dockingEnabled;
}
}
}
Loading

0 comments on commit 73d33ed

Please sign in to comment.