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

@ -96,7 +96,7 @@ namespace sensors {
* @param value the value threshold
*/
//% blockId=ultrasonicSetThreshold block="set **ultrasonic** %this|%condition|to %value"
//% group="Threshold" blockGap=8 weight=80
//% group="Calibration" blockGap=8 weight=80
//% value.min=0 value.max=255
//% this.fieldEditor="ports"
setThreshold(condition: UltrasonicSensorEvent, value: number) {
@ -111,7 +111,7 @@ namespace sensors {
* @param condition the proximity condition
*/
//% blockId=ultrasonicGetThreshold block="**ultrasonic** %this|%condition"
//% group="Threshold" blockGap=8 weight=79
//% group="Calibration" weight=79
//% this.fieldEditor="ports"
threshold(condition: UltrasonicSensorEvent): number {
switch (condition) {