ai로그 추가

This commit is contained in:
backuppc
2026-02-26 11:40:57 +09:00
parent 1948eda7ea
commit 2e9b7973c7
8 changed files with 33 additions and 5 deletions

View File

@@ -40,6 +40,7 @@ namespace Project
//스텝이 변경되었다면?
if (PUB.sm.RunStep != PUB.sm.RunStepNew)
{
PUB.logdebug.Add($"[AI_TRACE] RunStep Transition: {PUB.sm.RunStep} -> {PUB.sm.RunStepNew}");
runStepisFirst = true;
PUB.sm.ApplyRunStep();
}
@@ -72,6 +73,7 @@ namespace Project
var tsSpeak = DateTime.Now - LastSpeakTime;
if (tsSpeak.TotalSeconds >= PUB.setting.alarmSoundTerm)
{
PUB.logdebug.Add($"[AI_TRACE] Blocking: stop_by_front_detect=true (LIDAR Obstacle)");
PUB.Speak(Lang.);
LastSpeakTime = DateTime.Now;
}
@@ -84,6 +86,7 @@ namespace Project
var tsSpeak = DateTime.Now - LastSpeakTime;
if (tsSpeak.TotalSeconds >= PUB.setting.alarmSoundTerm)
{
PUB.logdebug.Add($"[AI_TRACE] Blocking: runerror_by_no_magent_line=true (Magnetic Line Lost)");
PUB.Speak(Lang.);
LastSpeakTime = DateTime.Now;
}