日常更新

This commit is contained in:
2024-03-27 16:20:49 +08:00
parent 5343e5ac33
commit 902d639475
3 changed files with 15 additions and 14 deletions

View File

@@ -228,8 +228,8 @@ void GetMidLine_Right(float pts_right[][2], int32_t pts_right_count, float mid_r
int is_curve(float angle[], int n, float threshold) {
for (int i = 1; i < n - 1; i++) {
float da = fabs(angle[i] - angle[i-1]);
float db = fabs(angle[i+1] - angle[i]);
float da = fabs(angle[i] - angle[i-3]);
float db = fabs(angle[i+3] - angle[i]);
if (da > threshold && db > threshold) {
return 1; // 是弯道
}