检查障碍测试

This commit is contained in:
Glz
2024-03-23 09:43:06 +08:00
parent 200d67b8bd
commit 77966b874f
5 changed files with 46 additions and 1 deletions

View File

@@ -32,6 +32,7 @@ void get_corners() {
Lpt0_found_barrier = Lpt1_found_barrier = false;
Lpt0_found_barrier_in = Lpt1_found_barrier_in = false;
for (int i = 0; i < pts_resample_left_count; i++) {
if (angle_new_left_barrier[i] == 0) continue;
int im1 = clip(i - (int) round(ANGLEDIST_barrier / RESAMPLEDIST), 0, pts_resample_left_count - 1);