-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy pathAxisMovement.cs
More file actions
47 lines (41 loc) · 1.42 KB
/
AxisMovement.cs
File metadata and controls
47 lines (41 loc) · 1.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
// Copyright (c) 2025, Phoenix Contact GmbH & Co. KG
// Licensed under the Apache License, Version 2.0
namespace Moryx.AbstractionLayer.Drivers.Axis;
/// <summary>
/// Defines a axis movement
/// </summary>
public class AxisMovement
{
/// <summary>
/// The axis which should be moved
/// </summary>
public Axes Axis { get; }
/// <summary>
/// Target position of the axis to move to
/// </summary>
public double? TargetPosition { get; }
/// <summary>
/// Predefined position of the axis to move to
/// </summary>
public AxisPosition? PredefinedPosition { get; }
/// <summary>
/// Creates a new instance of <see cref="AxisMovement"/> with a target position
/// </summary>
/// <param name="axis">The axis which should be moved</param>
/// <param name="targetPosition">Target position of the axis to move to</param>
public AxisMovement(Axes axis, double targetPosition)
{
Axis = axis;
TargetPosition = targetPosition;
}
/// <summary>
/// Creates a new instance of <see cref="AxisMovement"/> with a predefined position
/// </summary>
/// <param name="axis">The axis which should be moved</param>
/// <param name="predefinedPosition">Predefined position of the axis to move to</param>
public AxisMovement(Axes axis, AxisPosition predefinedPosition)
{
Axis = axis;
PredefinedPosition = predefinedPosition;
}
}