Threshold to calibration (#495)
* renaming threshold to calibration * rename threshold to calibration
This commit is contained in:
committed by
Sam El-Husseini
parent
2c874570ce
commit
bd06fb80f3
@ -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);
|
||||
|
Reference in New Issue
Block a user