-
Notifications
You must be signed in to change notification settings - Fork 38
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
Conversation
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.
@jwunderl please see changes... |
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.
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. |
@jwunderl please see changes |
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~ |
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.