Replies: 2 comments 7 replies
-
|
Hello, I am not good in multi programming, but in your pid function I do not see something like: await wait(0)Or any other await. Might that be a cause? Bert |
Beta Was this translation helpful? Give feedback.
2 replies
-
|
I resolved this by using print instead of stdout.buffer.write |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello Dear Community
I was following this guide right here and it works great:
https://pybricks.com/projects/tutorials/wireless/hub-to-device/pc-communication/ (my sever is exactly like this + it sends inital pid gain values)
However do I now have the problem with this code that once i call the pid() function in my main loop nothing can be written to the standart output until there is an exception or i stop the program by hand:
Also there are two other problems I am encountering and I have no plan on what to do with these error messages:
I mean the robot encodes the floating point value as a double, so where can this go wrong?
And also everytime I use pybricksdev download or I run it first with pybricksdev run and the progam ends is get:
It doesn't seem to mess things up but it is very annoying to say the least.
Python version 3.13.5
pybricks==3.6.1
pybricksdev==1.2.0
bleak==1.0.1
on Windows 10 with lego Spike Prime via ble.
Thanks!
Kind Regards.
Beta Was this translation helpful? Give feedback.
All reactions