Skip to content

Fixed set mode of raw reflection values (mode numbered zero) in simulator for nxt light sensor - #6

Merged
PetteriAimonen merged 1 commit into
pxt-ev3-community:masterfrom
THEb0nny:nxt-ls-sim-mode-n-zero-fix
Apr 25, 2026
Merged

Fixed set mode of raw reflection values (mode numbered zero) in simulator for nxt light sensor#6
PetteriAimonen merged 1 commit into
pxt-ev3-community:masterfrom
THEb0nny:nxt-ls-sim-mode-n-zero-fix

Conversation

@THEb0nny

Copy link
Copy Markdown

When we find the DAL.CONN_NXT_DUMB sensor, we additionally call setAnalogMode(), which passes the sensor mode to the simulator. Perhaps the same thing needs to be done for DAL.CONN_INPUT_DUMB, but there is only one analog sensor ev3 (touch sensor), and it works without this change.
@THEb0nny THEb0nny changed the title Update input.ts Fixed set mode of raw reflection values (mode numbered zero) in simulator for nxt light sensor Apr 25, 2026
@PetteriAimonen
PetteriAimonen merged commit a988828 into pxt-ev3-community:master Apr 25, 2026
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