logo

关于bytearray 函数,can't convert float to int

2019-02-28 19:56
Q
G-Boiling-Water

rho_err = abs(line.rho())-img.width()/2

theta_err = line.theta()

data_back=bytearray([0x00,0XA0,theta_r,0XAA])

uart.write("data_back")

2019-02-28 23:39
I
网红小智智 星瞳科技

请不要重复发帖子

https://forum.singtown.com/topic/2363/%E5%85%B3%E4%BA%8Ebytearray-%E5%87%BD%E6%95%B0-can-t-convert-float-to-int