修复四个关键bug: dest_fps限速/底行越界/255应为-1/删除debug文件重载
This commit is contained in:
+1
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user