pxt-ev3/sim/state
Dmitriy Antipov 9be35a1034
Added support for Reflection Raw mode for the color sensor to the simulator (#1017)
* redesigned-code-to-support-ref-raw

Code that adds reflection raw support for the color sensor. The range of values for this is from 0 to 1023, because analog to digital converter is 10 bits. In fact, the color sensor gives values ​​of about 400 - 700, but I decided to leave the range, which could theoretically be. For other cases (reflections and ambient lighting), the range remains from 0 to 100. The average value when setting the mode in the simulator is displayed as 512, for other modes 50%.

* block-description-update

Block description update, as it did not take into account the mode of raw reflection values.
2023-05-05 15:54:56 -07:00
..
analog.ts Hide or remove logging (#523) 2018-04-15 19:36:10 -07:00
brick.ts Initial sim implementation 2017-12-18 13:04:17 -08:00
buttons.ts Adding local include with constants; dropping LMS enum 2017-07-11 16:18:59 +02:00
color.ts Added support for Reflection Raw mode for the color sensor to the simulator (#1017) 2023-05-05 15:54:56 -07:00
control.ts fix dmesg duplicate definition issue (#542) 2018-04-25 16:45:26 -04:00
gyro.ts Drift-compensated angle in gyro (#931) 2019-10-01 10:11:58 -07:00
infrared.ts IR button indexing fixes (#303) 2018-02-05 15:11:11 -08:00
input.ts IIC added (#870) 2019-08-27 17:57:21 -07:00
light.ts minor PR feedback 2017-12-19 14:57:28 -08:00
motor.ts Hide or remove logging (#523) 2018-04-15 19:36:10 -07:00
motornode.ts Word changes to reduce policheck hits (#992) 2020-11-06 13:09:53 -08:00
nodeTypes.ts Ir proximity in simulator (#299) 2018-02-01 22:03:01 -08:00
output.ts polarity in synched motor (#945) 2019-10-10 07:44:53 -07:00
screen.ts Swap X/y in images (#528) 2018-04-19 12:08:16 -07:00
sensor.ts Fix null dereferencing issue. Fix sensor mode changed not clearing cached control. 2018-01-02 22:22:14 -08:00
sounds.ts Read default volume from device settings at start (#987) 2020-09-09 12:06:33 -07:00
storage.ts First draft of storage APIs (#122) 2018-01-11 20:05:45 -08:00
touch.ts Use setChangedState for touch and color sensors 2017-12-19 17:01:45 -08:00
uart.ts Hide or remove logging (#523) 2018-04-15 19:36:10 -07:00
ultrasonic.ts Using game loop instead of queueAnimationUpdate 2017-12-19 14:20:35 -08:00
util.ts Fix ultrasonic value to use cm instead of 0.1 cm units (#110) 2017-12-18 20:30:56 -08:00