|
|
@ -187,6 +187,7 @@ def vs_measurement(txt_name,position):
|
|
|
|
print(f"处理过程中发生错误: {e}")
|
|
|
|
print(f"处理过程中发生错误: {e}")
|
|
|
|
return 1,1,1,1
|
|
|
|
return 1,1,1,1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# 拟合路沿上下直线方程
|
|
|
|
# 拟合路沿上下直线方程
|
|
|
|
slope_bot, intercept_bot, r2_bot = calc_slope_line.linear_regression(x_bot, y_bot)
|
|
|
|
slope_bot, intercept_bot, r2_bot = calc_slope_line.linear_regression(x_bot, y_bot)
|
|
|
|
slope_top, intercept_top, r2_top = calc_slope_line.linear_regression(x_top,y_top)
|
|
|
|
slope_top, intercept_top, r2_top = calc_slope_line.linear_regression(x_top,y_top)
|
|
|
|