..
This commit is contained in:
@@ -8,11 +8,22 @@ namespace AGVControl.Models
|
||||
{
|
||||
public Point CurrentPosition { get; set; }
|
||||
public uint CurrentRFID { get; set; }
|
||||
public float BatteryLevel { get; set; } = 0f;
|
||||
/// <summary>
|
||||
/// AGV에서 방향값이 수산됩니다.
|
||||
/// </summary>
|
||||
public Direction CurrentDirection { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 현재위치가 수산되면 목적지까지의 방향값이 계산됩니다.
|
||||
/// </summary>
|
||||
public Direction TargetDirection { get; set; }
|
||||
public bool IsMoving { get; set; }
|
||||
public List<Point> CurrentPath { get; set; }
|
||||
public List<Point> PlannedPath { get; set; }
|
||||
public List<string> PathRFIDs { get; set; }
|
||||
public Point TargetPosition { get; set; }
|
||||
public uint TargetRFID { get; set; }
|
||||
|
||||
public AGV()
|
||||
{
|
||||
@@ -20,6 +31,9 @@ namespace AGVControl.Models
|
||||
PlannedPath = new List<Point>();
|
||||
PathRFIDs = new List<string>();
|
||||
CurrentDirection = Direction.Forward;
|
||||
TargetPosition = Point.Empty;
|
||||
TargetRFID = 0;
|
||||
TargetDirection = Direction.Forward;
|
||||
}
|
||||
|
||||
public void Move()
|
||||
@@ -31,16 +45,6 @@ namespace AGVControl.Models
|
||||
}
|
||||
}
|
||||
|
||||
public void SetNewPath(List<Point> path)
|
||||
{
|
||||
CurrentPath = new List<Point>(path);
|
||||
}
|
||||
|
||||
public void ClearPlannedPath()
|
||||
{
|
||||
PlannedPath.Clear();
|
||||
PathRFIDs.Clear();
|
||||
}
|
||||
}
|
||||
|
||||
public enum Direction
|
||||
|
||||
Reference in New Issue
Block a user