Skip to content
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] colorsensor.hsv(surface) not work #1232

Closed
jkhlouf opened this issue Sep 7, 2023 · 4 comments
Closed

[Bug] colorsensor.hsv(surface) not work #1232

jkhlouf opened this issue Sep 7, 2023 · 4 comments
Assignees
Labels
bug Something isn't working topic: sensors Issues involving sensors

Comments

@jkhlouf
Copy link

jkhlouf commented Sep 7, 2023

[Bug] colorsensor.hsv(surface=False) not work

@jkhlouf jkhlouf added the triage Issues that have not been triaged yet label Sep 7, 2023
@dlech
Copy link
Member

dlech commented Sep 7, 2023

Can you describe what you expected to happen and what actually happened?

@jkhlouf
Copy link
Author

jkhlouf commented Sep 9, 2023

IMG_0899
IMG_0898

@jkhlouf jkhlouf closed this as completed Sep 9, 2023
@laurensvalk
Copy link
Member

Thanks for reporting! We'll look into it.

@laurensvalk laurensvalk reopened this Sep 9, 2023
@laurensvalk
Copy link
Member

Can confirm

from pybricks.pupdevices import ColorDistanceSensor, ColorSensor
from pybricks.parameters import Port, Color
from pybricks.tools import wait

sensor = ColorSensor(Port.F)

while True:
    print(sensor.color(surface=True))
    wait(100)

    # EPERM
    print(sensor.color(surface=False))
    wait(100)

@laurensvalk laurensvalk added bug Something isn't working topic: sensors Issues involving sensors and removed triage Issues that have not been triaged yet labels Oct 23, 2023
@laurensvalk laurensvalk self-assigned this Oct 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working topic: sensors Issues involving sensors
Projects
None yet
Development

No branches or pull requests

3 participants