42 lines
945 B
C
42 lines
945 B
C
#include "vehicle_state.h"
|
|
|
|
VehicleState vehicle_state;
|
|
|
|
const char *inichkstate_str(IniChkState state) {
|
|
switch (vehicle_state.ini_chk_state) {
|
|
case INICHK_START:
|
|
return "START";
|
|
case INICHK_WD_CHECK:
|
|
return "WD CHK";
|
|
case INICHK_WD_OK:
|
|
return "WD OK";
|
|
case INICHK_POS_CHK_1:
|
|
return "POS CHK 1";
|
|
case INICHK_ASB_CHECK_A_1:
|
|
return "ASB CHK A1";
|
|
case INICHK_ASB_CHECK_A_2:
|
|
return "ASB CHK A2";
|
|
case INICHK_SWITCH_B:
|
|
return "SWITCH B";
|
|
case INICHK_ASB_CHECK_B_1:
|
|
return "ASB CHK B1";
|
|
case INICHK_ASB_CHECK_B_2:
|
|
return "ASB CHK B2";
|
|
case INICHK_SWITCH_A:
|
|
return "SWITCH A";
|
|
case INICHK_ASB_CHECK_AB_1:
|
|
return "ASB CHK AB1";
|
|
case INICHK_ASB_CHECK_AB_2:
|
|
return "ASB CHK AB2";
|
|
case INICHK_POS_CHK_2:
|
|
return "POS CHK 2";
|
|
case INICHK_WAIT_TS:
|
|
return "WAIT TS";
|
|
case INICHK_DONE:
|
|
return "DONE";
|
|
case INICHK_ERROR:
|
|
return "ERROR";
|
|
}
|
|
return "UNKNOWN";
|
|
}
|