检查障碍测试
This commit is contained in:
15
app/gl_barrier.c
Normal file
15
app/gl_barrier.c
Normal file
@@ -0,0 +1,15 @@
|
||||
#include "zf_common_headfile.h"
|
||||
#include "gl_headfile.h"
|
||||
|
||||
enum barrier_type_e barrier_type = BARRIER_NONE;
|
||||
|
||||
|
||||
void CheckBarrier() {
|
||||
if (barrier_type == BARRIER_NONE && Lpt0_found_barrier_in && !Lpt1_found_barrier_in && is_straight1) {
|
||||
barrier_type = BARRIER_LEFT_BEGIN;
|
||||
}
|
||||
if (barrier_type == BARRIER_NONE && !Lpt0_found_barrier_in && Lpt1_found_barrier_in && is_straight0) {
|
||||
barrier_type = BARRIER_RIGHT_BEGIN;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user