pid steering
This commit is contained in:
parent
c5f00ffc42
commit
48027822d8
|
|
@ -107,8 +107,8 @@ for chunk in stream.iter_content(chunk_size=1024):
|
|||
|
||||
speedL = max(-99, -v * min(100 + k, 99))
|
||||
speedR = max(-99, v * min(100 - k, 99))
|
||||
motorL.start(speedL)
|
||||
motorR.start(speedR)
|
||||
motorL.start(int(speedL))
|
||||
motorR.start(int(speedR))
|
||||
xp = x
|
||||
ip = i
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue