This commit is contained in:
ChiKyun Kim
2025-09-10 15:07:17 +09:00
parent 4a45ae15d6
commit 27dcc6befa
7 changed files with 21 additions and 13 deletions

View File

@@ -242,7 +242,7 @@ namespace AGVControl
case eMouseMode.addrfidpoint:
if (string.IsNullOrEmpty(this.RFIDStartNo) == false)
{
if (uint.TryParse(this.RFIDStartNo, out uint rfidvalue))
if (ushort.TryParse(this.RFIDStartNo, out ushort rfidvalue))
{
AddRFIDPoint(mapPoint, rfidvalue);
@@ -1668,7 +1668,7 @@ namespace AGVControl
this.Invalidate();
}
public void AddRFIDPoint(Point mapLocation, uint rfidValue)
public void AddRFIDPoint(Point mapLocation, ushort rfidValue)
{
var rfidPoint = new RFIDPoint
{
@@ -1754,7 +1754,7 @@ namespace AGVControl
{
var validX = int.TryParse(rfidParts[0], out int valX);
var validY = int.TryParse(rfidParts[1], out int valY);
var validN = uint.TryParse(rfidParts[2], out uint valRfid);
var validN = ushort.TryParse(rfidParts[2], out ushort valRfid);
if (validX && validY && validN)
{

View File

@@ -91,8 +91,8 @@ namespace AGVControl
var p1y = int.Parse(buf[1]);
var p2x = int.Parse(buf[2]);
var p2y = int.Parse(buf[3]);
var p1v = uint.Parse(buf[4]);
var p2v = uint.Parse(buf[5]);
var p1v = ushort.Parse(buf[4]);
var p2v = ushort.Parse(buf[5]);
if (P1 == null) P1 = new RFIDPoint();
P1.Location = new System.Drawing.Point(p1x, p1y);