修复四个关键bug: dest_fps限速/底行越界/255应为-1/删除debug文件重载

This commit is contained in:
spdis
2026-06-13 14:00:34 +08:00
parent d1e2234a43
commit d251f08670
4 changed files with 78 additions and 13 deletions
+1 -1
View File
@@ -437,7 +437,7 @@ int CameraHandler(void)
if (g_cfg.start) {
int foresee = (int)g_cfg.foresee;
int check_row = foresee / calc_scale;
if (check_row >= 0 && check_row < line_tracking_height && mid_line[check_row] != 255) {
if (check_row >= 0 && check_row < line_tracking_height && mid_line[check_row] != -1) {
double deviation = mid_line[check_row] * calc_scale - newWidth / 2;
deviation -= g_cfg.center_bias;
g_steer_deviation = deviation / (newWidth / 2.0);