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

RGB raw color sensor simulator support #1023

Merged
merged 8 commits into from
May 20, 2023

Conversation

THEb0nny
Copy link
Contributor

Added simulator support for RGB raw color sensor mode. To do this, I had to change the input code from the sensors and the color sensor code. Prior to this, there was no support for the fact that you can get an array of values.

2023-05-13_23-00-02

THEb0nny added 7 commits May 6, 2023 13:45
Implemented toggle switches for each RGB component.
So that there is no difference in uart values, as well as values in the label of the toggle switches.
@THEb0nny
Copy link
Contributor Author

@jwunderl please see changes...

@THEb0nny
Copy link
Contributor Author

THEb0nny commented May 14, 2023

I made the maximum value 512, because. I have never seen more than 490 in my life, so that some of the components gave out ...

Prior to this, the color mode was not taken into account. It turns out that the initial value is 50. There is no such index in the array. showPorts didn't output anything for this sensor initially until you chose some color yourself in the simulator. If you look at what the value is there, then 50 is displayed. Therefore, I made the default value 0 - nothing.
@THEb0nny
Copy link
Contributor Author

Prior to this, the color mode was not taken into account. It turns out that the initial value is 50. There is no such index in the array. showPorts didn't output anything for this sensor initially until you chose some color yourself in the simulator. If you look at what the value is there, then 50 is displayed. Therefore, I made the default value 0 - nothing.

@THEb0nny
Copy link
Contributor Author

@jwunderl please see changes

@jwunderl jwunderl requested a review from pelikhan May 18, 2023 23:31
@jwunderl
Copy link
Member

Changes look good to me, tagged in peli for a look if you have time as you have more context on lego but if not I'll try and merge tomorrow / bump beta~

@jwunderl jwunderl merged commit bf15824 into microsoft:master May 20, 2023
@THEb0nny THEb0nny deleted the rgb-raw-sim-support branch May 30, 2023 20:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants