Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you may not be able to execute some actions.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
car.run(-h_output-x_output,-h_output+x_output)
当小车到达合适的距离而且左右也没有偏差的时候,h_error和x_error都为0,但由于是增量式pid,h_output和x_output都不为0,而且如果是从远处走向近处的话,h_output应该是小于0的啊,加上负号之后就成正值了,当到达设定的距离之后,h_outpu不为零,小车怎么会停下来呢
h_output也是会变的。当色块大小和阈值一样,就会趋近0。