25 lines
807 B
C#
25 lines
807 B
C#
namespace ln.motion.interfaces
|
|
{
|
|
public abstract class Ax
|
|
{
|
|
public virtual float CurrentSpeed { get; }
|
|
public virtual float CurrentPosition { get; }
|
|
public virtual AxValues CurrentValues => new AxValues() {Speed = CurrentSpeed, Position = CurrentPosition};
|
|
|
|
public virtual float TargetSpeed { get; set; }
|
|
public virtual float TargetPosition { get; set; }
|
|
|
|
public virtual AxValues TargetValues
|
|
{
|
|
get => new AxValues() {Speed = TargetSpeed, Position = TargetPosition};
|
|
set
|
|
{
|
|
TargetPosition = value.Position;
|
|
TargetSpeed = value.Speed;
|
|
}
|
|
}
|
|
|
|
public virtual bool IsEnabled { get; }
|
|
public virtual bool IsFaulted { get; }
|
|
}
|
|
} |