Threshold to calibration (#495)

* renaming threshold to calibration

* rename threshold to calibration
This commit is contained in:
Peli de Halleux
2018-04-12 14:25:44 -07:00
committed by Sam El-Husseini
parent 2c874570ce
commit bd06fb80f3
4 changed files with 15 additions and 9 deletions

View File

@ -261,7 +261,7 @@ namespace sensors {
* @param value the value threshold
*/
//% blockId=irSetThreshold block="set **infrared** %this|%condition|to %value"
//% group="Threshold" blockGap=8 weight=49
//% group="Calibration" blockGap=8 weight=49
//% value.min=0 value.max=100
//% this.fieldEditor="ports"
setPromixityThreshold(condition: InfraredSensorEvent, value: number) {
@ -276,7 +276,7 @@ namespace sensors {
* @param condition the proximity condition
*/
//% blockId=irGetThreshold block="**infrared** %this|%condition"
//% group="Threshold" blockGap=8 weight=49
//% group="Calibration" weight=49
//% this.fieldEditor="ports"
proximityThreshold(condition: InfraredSensorEvent): number {
return this._proximityThreshold.threshold(<ThresholdState><number>condition);