-
-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] Light turns green for Color(0, 0, 5--10) on TechnicHub #224
Comments
It also appears that |
Does this depend on the firmware level? The definition of BLACK has Running this
shows |
Yes, v=0 turns it off but v= 7 does not, see example above. I've only tried the latest version.
Although this is not the issue here (I renamed the issue), no -- black is still a bit brighter than nothing at all ( |
Understood, thanks |
I tried the example on this firmware, and the issue is present here too. Very bright green light in the (edited) example. It's probably been broken for a while. This is why we're starting to create tests that will ultimately test each and every available function. |
Hard to create tests that need to look at the color of a hub light . . . The v values that light up green on the a13 base firmware I determined with:
Strange that 10 is doing oke here.. |
But it would still be fine if it wasn't measured. It doesn't have to be fully automated. It could print out what it is supposed to do, and the human observer may or may notice it. It's something we might do manually for every release, just not every commit.
The format isn't really defined yet. The idea is to fill up this folder with tests. There's only one there, at the moment. |
Hahaha hi, hi Great Laurens. Test the test subject with the test object. (or is it the other way around?)
Any hint on where I might look at first? sorry for hijacking this issue |
Thanks for the help! It would be really helpful to have one script per sensor, which tests all its methods, with all possible arguments. Like this, but for sensors. Starting with the SPIKE sensors would be a good start. Perhaps mounted side by side. With one motor (itself not the subject in these tests) waving something (colored) in front of the sensors to verify that they give the expected values. Simpler is better, so that the test itself does not fail mechanically at least. Let's continue this conversation in the coverage repo. |
All of the hubs use the same conversion and at least one hub works so this seems unlikely . Since the issue is on TechnicHub, I would suspect pybricks/pybricks-micropython@7650872 |
Is this related, or if not, is it intentional? |
It's not related to the issue. It could probably be made more efficient. I can't remember what I was thinking at the time. 😉 |
This issue seems to be back again.
is bright green
|
slightly different than before Color(h=0, s=0, v=8) # OK
Color(h=0, s=0, v=9) # bad
Color(h=0, s=0, v=10) # bad
Color(h=0, s=0, v=11) # mostly OK but flickers sometimes
Color(h=0, s=0, v=12) # bad
Color(h=0, s=0, v=13) # OK |
Describe the bug
The light turns very bright green on TechnicHub for some low
value
parameters. On PrimeHub, it turns off correctly.This seems to indicate a broken conversion from hsv to rgb.
To reproduce
Expected behavior
Light should be faint, somewhere in between 4 and 12, which do work correctly.
The text was updated successfully, but these errors were encountered: