feat: Implement RunStep error reporting and refactor charge sequences
- Added RunStepErrorCode to Xbee status protocol and CResult. - Defined detailed operational error codes in EnumData.cs. - Updated _SM_RUN_*.cs to report specific error codes before proper error transitions. - Renamed and refactored charge-related sequence files.
This commit is contained in:
@@ -38,6 +38,21 @@ namespace Project
|
||||
return true;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 실행스텝을 오류로 전환합니다.
|
||||
/// 로그메세지(에러)가 추가됩니다.
|
||||
/// 맵캔버스오류경고메세지가 설정됩니다
|
||||
/// </summary>
|
||||
/// <param name="ermsg"></param>
|
||||
/// <param name="ecode"></param>
|
||||
public void SetRunStepError(string ermsg, eECode ecode)
|
||||
{
|
||||
PUB.log.AddE(ermsg);
|
||||
PUB._mapCanvas.SetAlertMessage(ermsg);
|
||||
PUB.Result.RunStepErrorCode = ecode;
|
||||
PUB.sm.SetNewRunStep(ERunStep.ERROR);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 라이더멈춤이 설정되어있다면 음성으로 알려준다
|
||||
/// </summary>
|
||||
@@ -138,6 +153,7 @@ namespace Project
|
||||
{
|
||||
PUB.log.AddE($"연속 경로 무결성 오류로 인해 중지 합니다");
|
||||
PUB._mapCanvas.SetAlertMessage($"연속 경로 무결성 오류로 인해 중지 합니다");
|
||||
PUB.Result.RunStepErrorCode = eECode.PATH_INTEGRITY_FAIL;
|
||||
PUB.sm.SetNewRunStep(ERunStep.ERROR);
|
||||
}
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user