This commit is contained in:
backuppc
2026-02-25 14:55:36 +09:00
parent 245749d695
commit 2590ad91de
2 changed files with 259 additions and 48 deletions

View File

@@ -1851,8 +1851,15 @@ namespace AGVSimulator.Forms
// 첫 번째 AGV의 다음 행동 예측
var agv = _agvList[0];
var command = agv.Predict();
this.lbPredict.Text = $"Motor:{command.Motor},Magnet:{command.Magnet},Speed:{command.Speed} : {command.Message}";
try
{
var command = agv.Predict();
this.lbPredict.Text = $"Motor:{command.Motor},Magnet:{command.Magnet},Speed:{command.Speed} : {command.Message}";
}catch ( Exception ex)
{
lbPredict.Text = "예측오류" + ex.Message;
}
}