Home
last modified time | relevance | path

Searched refs:g_car_status (Results 1 - 1 of 1) sorted by relevance

/vendor/hisilicon/hispark_pegasus/demo/robot_demo/robot_car/
H A Drobot_control.c43 unsigned char g_car_status = CAR_STOP_STATUS; variable
55 return g_car_status; in GetCarStatus()
73 if (g_car_status == CAR_STOP_STATUS) { in gpio5_isr_func_mode()
74 g_car_status = CAR_TRACE_STATUS; // 寻迹 in gpio5_isr_func_mode()
76 } else if (g_car_status == CAR_TRACE_STATUS) { in gpio5_isr_func_mode()
77 g_car_status = CAR_OBSTACLE_AVOIDANCE_STATUS; // 超声波 in gpio5_isr_func_mode()
79 } else if (g_car_status == CAR_OBSTACLE_AVOIDANCE_STATUS) { in gpio5_isr_func_mode()
80 g_car_status = CAR_STOP_STATUS; // 停止 in gpio5_isr_func_mode()
205 if (g_car_status != CAR_OBSTACLE_AVOIDANCE_STATUS) { in car_mode_control_func()
226 switch (g_car_status) { in RobotCarTestTask()
[all...]

Completed in 2 milliseconds