RBS
 
Loading...
Searching...
No Matches
ZCU_Front_Config.cin File Reference

ZCU_Front CAPL 스크립트의 모든 설정, 상수 및 전역 변수 정의 More...

Classes

struct  SensorData
 모든 관련 센서 데이터를 저장하는 구조체 More...
 
struct  CommMonitor
 통신 상태 및 오류를 모니터링하기 위한 데이터를 저장하는 구조체 More...
 
struct  DiagnosticData
 시스템 진단 정보를 저장하는 구조체 More...
 

Enumerations

enum  SystemState { STATE_INIT = 0 , STATE_NORMAL = 1 , STATE_DEGRADED = 2 , STATE_FAIL_SAFE = 3 }
 시스템의 현재 운영 상태를 나타내는 열거형 More...
 

Variables

const int ECU_ID = 0x02
 ZCU_Front ECU 식별자
 
const int SYSTEM_VERSION = 0x0100
 시스템 버전 (Major.Minor)
 
const int MAIN_CYCLE = 10
 메인 태스크 주기 (ms)
 
const int TIMEOUT_EPAS = 60
 EPAS 통신 타임아웃 (ms) - 3 * 20ms 주기
 
const int TIMEOUT_ADAS = 150
 ADAS 통신 타임아웃 (ms) - 3 * 50ms 주기
 
const int MAX_COMM_FAILURES = 3
 최대 통신 실패 횟수
 
const float APS_MIN = 0.0
 APS 최소값 (%)
 
const float APS_MAX = 100.0
 APS 최대값 (%)
 
const float BPPS_MIN = 0.0
 BPPS 최소값 (%)
 
const float BPPS_MAX = 100.0
 BPPS 최대값 (%)
 
const float SPEED_MAX = 300.0
 최대 차량 속도 (km/h)
 
const float STEERING_MAX = 1800.0
 최대 조향각 (deg)
 
const dword FAULT_APS_SENSOR = 0x00000001
 APS 센서 폴트
 
const dword FAULT_BPPS_SENSOR = 0x00000002
 BPPS 센서 폴트
 
const dword FAULT_EPAS_COMM = 0x00000004
 EPAS 통신 폴트
 
const dword FAULT_ADAS_COMM = 0x00000008
 ADAS 통신 폴트
 
const dword FAULT_SENSOR_RANGE = 0x00000010
 센서 범위 폴트
 
const dword FAULT_CROSS_CHECK = 0x00000020
 교차 검증 폴트
 
const dword FAULT_SYSTEM_OVERLOAD = 0x00000040
 시스템 과부하 폴트
 
enum SystemState currentState
 현재 시스템 상태
 
enum SystemState previousState
 이전 시스템 상태
 
struct SensorData sensors
 센서 데이터 인스턴스
 
struct CommMonitor commMon
 통신 모니터링 인스턴스
 
struct DiagnosticData diagnostics
 진단 데이터 인스턴스
 
byte counter_M005
 M005 메시지 카운터
 
byte counter_M005_EXT
 M005_EXT 메시지 카운터
 
byte counter_M004
 M004 메시지 카운터
 
byte gLastEpasCounter
 EPAS 마지막 카운터
 
dword faultRegister
 폴트 레지스터
 
msTimer timerMainTask
 메인 태스크 타이머
 
dword gTaskCounter
 태스크 카운터
 
int gHourCounter
 시간 카운터
 
byte gWatchdogCounter
 워치독 카운터
 
dword gLastWatchdogTime
 마지막 워치독 시간
 

Detailed Description

ZCU_Front CAPL 스크립트의 모든 설정, 상수 및 전역 변수 정의

Enumeration Type Documentation

◆ SystemState

시스템의 현재 운영 상태를 나타내는 열거형

Enumerator
STATE_INIT 

초기화 상태

STATE_NORMAL 

정상 작동 상태

STATE_DEGRADED 

기능 저하 상태

STATE_FAIL_SAFE 

안전 상태

Variable Documentation

◆ APS_MAX

const float APS_MAX = 100.0

APS 최대값 (%)

◆ APS_MIN

const float APS_MIN = 0.0

APS 최소값 (%)

◆ BPPS_MAX

const float BPPS_MAX = 100.0

BPPS 최대값 (%)

◆ BPPS_MIN

const float BPPS_MIN = 0.0

BPPS 최소값 (%)

◆ commMon

통신 모니터링 인스턴스

◆ counter_M004

byte counter_M004

M004 메시지 카운터

◆ counter_M005

byte counter_M005

M005 메시지 카운터

◆ counter_M005_EXT

byte counter_M005_EXT

M005_EXT 메시지 카운터

◆ currentState

enum SystemState currentState

현재 시스템 상태

◆ diagnostics

struct DiagnosticData diagnostics

진단 데이터 인스턴스

◆ ECU_ID

const int ECU_ID = 0x02

ZCU_Front ECU 식별자

◆ FAULT_ADAS_COMM

const dword FAULT_ADAS_COMM = 0x00000008

ADAS 통신 폴트

◆ FAULT_APS_SENSOR

const dword FAULT_APS_SENSOR = 0x00000001

APS 센서 폴트

◆ FAULT_BPPS_SENSOR

const dword FAULT_BPPS_SENSOR = 0x00000002

BPPS 센서 폴트

◆ FAULT_CROSS_CHECK

const dword FAULT_CROSS_CHECK = 0x00000020

교차 검증 폴트

◆ FAULT_EPAS_COMM

const dword FAULT_EPAS_COMM = 0x00000004

EPAS 통신 폴트

◆ FAULT_SENSOR_RANGE

const dword FAULT_SENSOR_RANGE = 0x00000010

센서 범위 폴트

◆ FAULT_SYSTEM_OVERLOAD

const dword FAULT_SYSTEM_OVERLOAD = 0x00000040

시스템 과부하 폴트

◆ faultRegister

dword faultRegister

폴트 레지스터

◆ gHourCounter

int gHourCounter

시간 카운터

◆ gLastEpasCounter

byte gLastEpasCounter

EPAS 마지막 카운터

◆ gLastWatchdogTime

dword gLastWatchdogTime

마지막 워치독 시간

◆ gTaskCounter

dword gTaskCounter

태스크 카운터

◆ gWatchdogCounter

byte gWatchdogCounter

워치독 카운터

◆ MAIN_CYCLE

const int MAIN_CYCLE = 10

메인 태스크 주기 (ms)

◆ MAX_COMM_FAILURES

const int MAX_COMM_FAILURES = 3

최대 통신 실패 횟수

◆ previousState

enum SystemState previousState

이전 시스템 상태

◆ sensors

struct SensorData sensors

센서 데이터 인스턴스

◆ SPEED_MAX

const float SPEED_MAX = 300.0

최대 차량 속도 (km/h)

◆ STEERING_MAX

const float STEERING_MAX = 1800.0

최대 조향각 (deg)

◆ SYSTEM_VERSION

const int SYSTEM_VERSION = 0x0100

시스템 버전 (Major.Minor)

◆ TIMEOUT_ADAS

const int TIMEOUT_ADAS = 150

ADAS 통신 타임아웃 (ms) - 3 * 50ms 주기

◆ TIMEOUT_EPAS

const int TIMEOUT_EPAS = 60

EPAS 통신 타임아웃 (ms) - 3 * 20ms 주기

◆ timerMainTask

msTimer timerMainTask

메인 태스크 타이머