Replies: 1 comment
-
This seems very unusual. Mine is very close to the real time. Can you share the code you have tried? If you try a simple program such as this and time it with the stopwatch on your phone, is it also 5 seconds instead of 36 seconds? from pybricks.tools import wait
print('hello')
wait(36000)
print('world') This is using the same internal timer as the StopWatch, so trying this would help rule some things out. |
Beta Was this translation helpful? Give feedback.
0 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.
-
I feel like I should be able to find this somewhere, and I am a little sorry to ask.
I am toying with some technic hubs, and it looks like their StopWatch() timers are way off. Like 5 seconds reports as 36 seconds - is this normal? is this a function of battery level, or is there a fixed factor I can add to my equation to get closer to correct?
My use case is that I am making a program that basically runs 2 motors full speed until distance sensor is <1m, then stop and display time. Kids will build different wheel bases and see who can go 10m fastest. I would like at least consistent results
Beta Was this translation helpful? Give feedback.
All reactions