Skip to content

Commit

Permalink
OpenRoberta/openroberta-lab#1222: add support for Ultrasonic HC-SR04
Browse files Browse the repository at this point in the history
  • Loading branch information
chpoulter committed Feb 13, 2022
1 parent 0519907 commit 6a595c2
Show file tree
Hide file tree
Showing 72 changed files with 297 additions and 58 deletions.
100 changes: 50 additions & 50 deletions blockly_compressed.js

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions blocks/robConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,14 @@ Blockly.Blocks['robConf_generic'] = {
});
}
}
if (confBlock.types) {
for (var i = 0; i < confBlock.types.length; i++) {
configDecl.push({
'type' : confBlock.types[i].toLowerCase(),
'name' : that.getFieldValue('NAME')
});
}
}
configDecl.push({
'type' : confBlock.title.toLowerCase(),
'name' : that.getFieldValue('NAME')
Expand Down
22 changes: 22 additions & 0 deletions blocks/robConfigDefinitions.js
Original file line number Diff line number Diff line change
Expand Up @@ -1456,6 +1456,28 @@ confBlocks.environmental.sensebox = {
sensor: true
};

confBlocks.ultrasonic_hcsr04 = {};
confBlocks.ultrasonic_hcsr04.calliope = {
title: 'ULTRASONIC_HCSR04',
ports: [
['trig', 'TRIG'],
['echo', 'ECHO']
],
pins: function(a) {
return Blockly.Blocks.robConfigDefinitions['pinsDigital'][a];
},
standardPins: ['C17', 'C16'],
fixedPorts: [
['GND', 'GND'],
['VCC', '3V']
],
types: ['ULTRASONIC'],
inputs: [
['FACTOR', '58']
],
sensor: true
};

// all arduino conf blocks are inherited by nano33ble
for (var confBlock in confBlocks) {
var confObj = confBlocks[confBlock];
Expand Down
13 changes: 12 additions & 1 deletion blocks/robSensorDefinitions.js
Original file line number Diff line number Diff line change
Expand Up @@ -1452,6 +1452,17 @@ sensors.environmental.sensebox = {
ports : 'CONFIGURATION'
};

sensors.ultrasonic_hcsr04 = {};
sensors.ultrasonic_hcsr04.calliope = {
title : 'ULTRASONIC_HCSR04',
modes : [ {
name : 'DISTANCE',
type : 'Number',
unit : 'CM'
} ],
ports : 'CONFIGURATION'
};

sensors.out.nano33ble = sensors.out.arduino;
sensors.key.nano33ble = sensors.key.arduino;
sensors.timer.nano33ble = sensors.timer.arduino;
Expand Down Expand Up @@ -1480,7 +1491,7 @@ sensorsAll.nxt = [ sensors.touch.nxt, sensors.sound.nxt, sensors.light.nxt, sens
sensorsAll.bob3 = [ sensors.pintouch.bob3, sensors.infrared.bob3, sensors.temperature.bob3, sensors.timer.bob3 ];
sensorsAll.calliope = [ sensors.key.calliope, sensors.pintouch.calliope, sensors.gesture.calliope, sensors.compass.calliope, sensors.sound.calliope,
sensors.timer.calliope, sensors.temperature.calliope, sensors.light.calliope, sensors.pin.calliope, sensors.gyro.calliope,
sensors.accelerometer.calliope, sensors.humidity.calliope, sensors.ultrasonic.calliope, sensors.infrared.calliope ];
sensors.accelerometer.calliope, sensors.humidity.calliope, sensors.ultrasonic.calliope, sensors.infrared.calliope, sensors.ultrasonic_hcsr04.calliope ];
sensorsAll.microbit = [ sensors.key.microbit, sensors.pintouch.microbit, sensors.gesture.microbit, sensors.compass.microbit, sensors.timer.microbit,
sensors.temperature.microbit, sensors.pin.microbit, sensors.accelerometer.microbit, sensors.light.microbit ];
sensorsAll.arduino = [ sensors.out.arduino, sensors.key.arduino, sensors.timer.arduino, sensors.temperature.arduino, sensors.ultrasonic.arduino,
Expand Down
3 changes: 3 additions & 0 deletions msg/js/ar.js
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@ Blockly.Msg.EV3BRICK_TOOLTIP = "Represents the EV3 brick with connected actors a
Blockly.Msg.EXPAND_ALL = "وسٌّع القطع";
Blockly.Msg.EXPAND_BLOCK = "وسٌّع القطعة";
Blockly.Msg.EXTERNAL_INPUTS = "ادخال خارجي";
Blockly.Msg.FACTOR = "Factor"; // untranslated
Blockly.Msg.FLAME_GETSAMPLE_TOOLTIP = "Gets the current reading from the flame sensor."; // untranslated
Blockly.Msg.FLAME_TOOLTIP = "Represents a flame sensor."; // untranslated
Blockly.Msg.FLYOUT_VARIABLE_TEXT = "You need a variable? Please declare it first with a click on the + sign at the »start« block."; // untranslated
Expand Down Expand Up @@ -1691,6 +1692,7 @@ Blockly.Msg.TOUR1_DESCRIPTION13a = "and test your program in the simulation!";
Blockly.Msg.TOUR1_DESCRIPTION15 = "Perfect,<br>your robot is driving 20 cm forward,<br>this is what you have programmed!"; // untranslated
Blockly.Msg.TOUR1_DESCRIPTION16 = "Bye and have fun trying out more!"; // untranslated
Blockly.Msg.ULTRASONIC_GETSAMPLE_TOOLTIP = "Gets the current reading from the ultrasonic sensor in cm. Maximum distance to measure is 255 cm."; // untranslated
Blockly.Msg.ULTRASONIC_HCSR04 = "Ultrasonic HC-SR04"; // untranslated
Blockly.Msg.ULTRASONIC_TOOLTIP = "Represents an ultrasonic sensor."; // untranslated
Blockly.Msg.UNDO = "Undo"; // untranslated
Blockly.Msg.USERGROUP_ADD_MEMBERS = "Add members"; // untranslated
Expand Down Expand Up @@ -1835,6 +1837,7 @@ Blockly.Msg.CONTROLS_WHILEUNTIL_INPUT_DO = Blockly.Msg.CONTROLS_REPEAT_INPUT_DO;
Blockly.Msg.SENSOR_SOUND_GETSAMPLE_TOOLTIP = Blockly.Msg.SOUND_GETSAMPLE_TOOLTIP;
Blockly.Msg.SENSOR_FLAME_GETSAMPLE_TOOLTIP = Blockly.Msg.FLAME_GETSAMPLE_TOOLTIP;
Blockly.Msg.ACTION_FOURDIGITDISPLAY = Blockly.Msg.FOURDIGITDISPLAY;
Blockly.Msg.SENSOR_ULTRASONIC_HCSR04 = Blockly.Msg.ULTRASONIC_HCSR04;
Blockly.Msg.SENSOR_COLOURTCS3472_COLOUR_GETSAMPLE_TOOLTIP = Blockly.Msg.COLOUR_COLOUR_GETSAMPLE_TOOLTIP;
Blockly.Msg.SENSOR_HTCOLOUR_AMBIENTLIGHT_GETSAMPLE_TOOLTIP = Blockly.Msg.SENSOR_COLOUR_AMBIENTLIGHT_GETSAMPLE_TOOLTIP;
Blockly.Msg.HTCOLOUR_COLOUR_GETSAMPLE_TOOLTIP = Blockly.Msg.COLOUR_COLOUR_GETSAMPLE_TOOLTIP;
Expand Down
3 changes: 3 additions & 0 deletions msg/js/az.js
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@ Blockly.Msg.EV3BRICK_TOOLTIP = "Represents the EV3 brick with connected actors a
Blockly.Msg.EXPAND_ALL = "Blokları aç";
Blockly.Msg.EXPAND_BLOCK = "Bloku aç";
Blockly.Msg.EXTERNAL_INPUTS = "Xarici girişlər";
Blockly.Msg.FACTOR = "Factor"; // untranslated
Blockly.Msg.FLAME_GETSAMPLE_TOOLTIP = "Gets the current reading from the flame sensor."; // untranslated
Blockly.Msg.FLAME_TOOLTIP = "Represents a flame sensor."; // untranslated
Blockly.Msg.FLYOUT_VARIABLE_TEXT = "You need a variable? Please declare it first with a click on the + sign at the »start« block."; // untranslated
Expand Down Expand Up @@ -1691,6 +1692,7 @@ Blockly.Msg.TOUR1_DESCRIPTION13a = "and test your program in the simulation!";
Blockly.Msg.TOUR1_DESCRIPTION15 = "Perfect,<br>your robot is driving 20 cm forward,<br>this is what you have programmed!"; // untranslated
Blockly.Msg.TOUR1_DESCRIPTION16 = "Bye and have fun trying out more!"; // untranslated
Blockly.Msg.ULTRASONIC_GETSAMPLE_TOOLTIP = "Gets the current reading from the ultrasonic sensor in cm. Maximum distance to measure is 255 cm."; // untranslated
Blockly.Msg.ULTRASONIC_HCSR04 = "Ultrasonic HC-SR04"; // untranslated
Blockly.Msg.ULTRASONIC_TOOLTIP = "Represents an ultrasonic sensor."; // untranslated
Blockly.Msg.UNDO = "Undo"; // untranslated
Blockly.Msg.USERGROUP_ADD_MEMBERS = "Add members"; // untranslated
Expand Down Expand Up @@ -1835,6 +1837,7 @@ Blockly.Msg.CONTROLS_WHILEUNTIL_INPUT_DO = Blockly.Msg.CONTROLS_REPEAT_INPUT_DO;
Blockly.Msg.SENSOR_SOUND_GETSAMPLE_TOOLTIP = Blockly.Msg.SOUND_GETSAMPLE_TOOLTIP;
Blockly.Msg.SENSOR_FLAME_GETSAMPLE_TOOLTIP = Blockly.Msg.FLAME_GETSAMPLE_TOOLTIP;
Blockly.Msg.ACTION_FOURDIGITDISPLAY = Blockly.Msg.FOURDIGITDISPLAY;
Blockly.Msg.SENSOR_ULTRASONIC_HCSR04 = Blockly.Msg.ULTRASONIC_HCSR04;
Blockly.Msg.SENSOR_COLOURTCS3472_COLOUR_GETSAMPLE_TOOLTIP = Blockly.Msg.COLOUR_COLOUR_GETSAMPLE_TOOLTIP;
Blockly.Msg.SENSOR_HTCOLOUR_AMBIENTLIGHT_GETSAMPLE_TOOLTIP = Blockly.Msg.SENSOR_COLOUR_AMBIENTLIGHT_GETSAMPLE_TOOLTIP;
Blockly.Msg.HTCOLOUR_COLOUR_GETSAMPLE_TOOLTIP = Blockly.Msg.COLOUR_COLOUR_GETSAMPLE_TOOLTIP;
Expand Down
3 changes: 3 additions & 0 deletions msg/js/ba.js
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@ Blockly.Msg.EV3BRICK_TOOLTIP = "Represents the EV3 brick with connected actors a
Blockly.Msg.EXPAND_ALL = "Блоктарҙы йәйергә";
Blockly.Msg.EXPAND_BLOCK = "Блокты йәйергә";
Blockly.Msg.EXTERNAL_INPUTS = "Тышҡы өҫтәлмә";
Blockly.Msg.FACTOR = "Factor"; // untranslated
Blockly.Msg.FLAME_GETSAMPLE_TOOLTIP = "Gets the current reading from the flame sensor."; // untranslated
Blockly.Msg.FLAME_TOOLTIP = "Represents a flame sensor."; // untranslated
Blockly.Msg.FLYOUT_VARIABLE_TEXT = "You need a variable? Please declare it first with a click on the + sign at the »start« block."; // untranslated
Expand Down Expand Up @@ -1691,6 +1692,7 @@ Blockly.Msg.TOUR1_DESCRIPTION13a = "and test your program in the simulation!";
Blockly.Msg.TOUR1_DESCRIPTION15 = "Perfect,<br>your robot is driving 20 cm forward,<br>this is what you have programmed!"; // untranslated
Blockly.Msg.TOUR1_DESCRIPTION16 = "Bye and have fun trying out more!"; // untranslated
Blockly.Msg.ULTRASONIC_GETSAMPLE_TOOLTIP = "Gets the current reading from the ultrasonic sensor in cm. Maximum distance to measure is 255 cm."; // untranslated
Blockly.Msg.ULTRASONIC_HCSR04 = "Ultrasonic HC-SR04"; // untranslated
Blockly.Msg.ULTRASONIC_TOOLTIP = "Represents an ultrasonic sensor."; // untranslated
Blockly.Msg.UNDO = "Кире алырға";
Blockly.Msg.USERGROUP_ADD_MEMBERS = "Add members"; // untranslated
Expand Down Expand Up @@ -1835,6 +1837,7 @@ Blockly.Msg.CONTROLS_WHILEUNTIL_INPUT_DO = Blockly.Msg.CONTROLS_REPEAT_INPUT_DO;
Blockly.Msg.SENSOR_SOUND_GETSAMPLE_TOOLTIP = Blockly.Msg.SOUND_GETSAMPLE_TOOLTIP;
Blockly.Msg.SENSOR_FLAME_GETSAMPLE_TOOLTIP = Blockly.Msg.FLAME_GETSAMPLE_TOOLTIP;
Blockly.Msg.ACTION_FOURDIGITDISPLAY = Blockly.Msg.FOURDIGITDISPLAY;
Blockly.Msg.SENSOR_ULTRASONIC_HCSR04 = Blockly.Msg.ULTRASONIC_HCSR04;
Blockly.Msg.SENSOR_COLOURTCS3472_COLOUR_GETSAMPLE_TOOLTIP = Blockly.Msg.COLOUR_COLOUR_GETSAMPLE_TOOLTIP;
Blockly.Msg.SENSOR_HTCOLOUR_AMBIENTLIGHT_GETSAMPLE_TOOLTIP = Blockly.Msg.SENSOR_COLOUR_AMBIENTLIGHT_GETSAMPLE_TOOLTIP;
Blockly.Msg.HTCOLOUR_COLOUR_GETSAMPLE_TOOLTIP = Blockly.Msg.COLOUR_COLOUR_GETSAMPLE_TOOLTIP;
Expand Down
3 changes: 3 additions & 0 deletions msg/js/bcc.js
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@ Blockly.Msg.EV3BRICK_TOOLTIP = "Represents the EV3 brick with connected actors a
Blockly.Msg.EXPAND_ALL = "گسترش بلوک‌ها";
Blockly.Msg.EXPAND_BLOCK = "گسترش بلوک";
Blockly.Msg.EXTERNAL_INPUTS = "ورودی‌های خارجی";
Blockly.Msg.FACTOR = "Factor"; // untranslated
Blockly.Msg.FLAME_GETSAMPLE_TOOLTIP = "Gets the current reading from the flame sensor."; // untranslated
Blockly.Msg.FLAME_TOOLTIP = "Represents a flame sensor."; // untranslated
Blockly.Msg.FLYOUT_VARIABLE_TEXT = "You need a variable? Please declare it first with a click on the + sign at the »start« block."; // untranslated
Expand Down Expand Up @@ -1691,6 +1692,7 @@ Blockly.Msg.TOUR1_DESCRIPTION13a = "and test your program in the simulation!";
Blockly.Msg.TOUR1_DESCRIPTION15 = "Perfect,<br>your robot is driving 20 cm forward,<br>this is what you have programmed!"; // untranslated
Blockly.Msg.TOUR1_DESCRIPTION16 = "Bye and have fun trying out more!"; // untranslated
Blockly.Msg.ULTRASONIC_GETSAMPLE_TOOLTIP = "Gets the current reading from the ultrasonic sensor in cm. Maximum distance to measure is 255 cm."; // untranslated
Blockly.Msg.ULTRASONIC_HCSR04 = "Ultrasonic HC-SR04"; // untranslated
Blockly.Msg.ULTRASONIC_TOOLTIP = "Represents an ultrasonic sensor."; // untranslated
Blockly.Msg.UNDO = "Undo"; // untranslated
Blockly.Msg.USERGROUP_ADD_MEMBERS = "Add members"; // untranslated
Expand Down Expand Up @@ -1835,6 +1837,7 @@ Blockly.Msg.CONTROLS_WHILEUNTIL_INPUT_DO = Blockly.Msg.CONTROLS_REPEAT_INPUT_DO;
Blockly.Msg.SENSOR_SOUND_GETSAMPLE_TOOLTIP = Blockly.Msg.SOUND_GETSAMPLE_TOOLTIP;
Blockly.Msg.SENSOR_FLAME_GETSAMPLE_TOOLTIP = Blockly.Msg.FLAME_GETSAMPLE_TOOLTIP;
Blockly.Msg.ACTION_FOURDIGITDISPLAY = Blockly.Msg.FOURDIGITDISPLAY;
Blockly.Msg.SENSOR_ULTRASONIC_HCSR04 = Blockly.Msg.ULTRASONIC_HCSR04;
Blockly.Msg.SENSOR_COLOURTCS3472_COLOUR_GETSAMPLE_TOOLTIP = Blockly.Msg.COLOUR_COLOUR_GETSAMPLE_TOOLTIP;
Blockly.Msg.SENSOR_HTCOLOUR_AMBIENTLIGHT_GETSAMPLE_TOOLTIP = Blockly.Msg.SENSOR_COLOUR_AMBIENTLIGHT_GETSAMPLE_TOOLTIP;
Blockly.Msg.HTCOLOUR_COLOUR_GETSAMPLE_TOOLTIP = Blockly.Msg.COLOUR_COLOUR_GETSAMPLE_TOOLTIP;
Expand Down
3 changes: 3 additions & 0 deletions msg/js/be-tarask.js
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@ Blockly.Msg.EV3BRICK_TOOLTIP = "Represents the EV3 brick with connected actors a
Blockly.Msg.EXPAND_ALL = "Разгарнуць блёкі";
Blockly.Msg.EXPAND_BLOCK = "Разгарнуць блёк";
Blockly.Msg.EXTERNAL_INPUTS = "Зьнешнія ўваходы";
Blockly.Msg.FACTOR = "Factor"; // untranslated
Blockly.Msg.FLAME_GETSAMPLE_TOOLTIP = "Gets the current reading from the flame sensor."; // untranslated
Blockly.Msg.FLAME_TOOLTIP = "Represents a flame sensor."; // untranslated
Blockly.Msg.FLYOUT_VARIABLE_TEXT = "You need a variable? Please declare it first with a click on the + sign at the »start« block."; // untranslated
Expand Down Expand Up @@ -1691,6 +1692,7 @@ Blockly.Msg.TOUR1_DESCRIPTION13a = "and test your program in the simulation!";
Blockly.Msg.TOUR1_DESCRIPTION15 = "Perfect,<br>your robot is driving 20 cm forward,<br>this is what you have programmed!"; // untranslated
Blockly.Msg.TOUR1_DESCRIPTION16 = "Bye and have fun trying out more!"; // untranslated
Blockly.Msg.ULTRASONIC_GETSAMPLE_TOOLTIP = "Gets the current reading from the ultrasonic sensor in cm. Maximum distance to measure is 255 cm."; // untranslated
Blockly.Msg.ULTRASONIC_HCSR04 = "Ultrasonic HC-SR04"; // untranslated
Blockly.Msg.ULTRASONIC_TOOLTIP = "Represents an ultrasonic sensor."; // untranslated
Blockly.Msg.UNDO = "Скасаваць";
Blockly.Msg.USERGROUP_ADD_MEMBERS = "Add members"; // untranslated
Expand Down Expand Up @@ -1835,6 +1837,7 @@ Blockly.Msg.CONTROLS_WHILEUNTIL_INPUT_DO = Blockly.Msg.CONTROLS_REPEAT_INPUT_DO;
Blockly.Msg.SENSOR_SOUND_GETSAMPLE_TOOLTIP = Blockly.Msg.SOUND_GETSAMPLE_TOOLTIP;
Blockly.Msg.SENSOR_FLAME_GETSAMPLE_TOOLTIP = Blockly.Msg.FLAME_GETSAMPLE_TOOLTIP;
Blockly.Msg.ACTION_FOURDIGITDISPLAY = Blockly.Msg.FOURDIGITDISPLAY;
Blockly.Msg.SENSOR_ULTRASONIC_HCSR04 = Blockly.Msg.ULTRASONIC_HCSR04;
Blockly.Msg.SENSOR_COLOURTCS3472_COLOUR_GETSAMPLE_TOOLTIP = Blockly.Msg.COLOUR_COLOUR_GETSAMPLE_TOOLTIP;
Blockly.Msg.SENSOR_HTCOLOUR_AMBIENTLIGHT_GETSAMPLE_TOOLTIP = Blockly.Msg.SENSOR_COLOUR_AMBIENTLIGHT_GETSAMPLE_TOOLTIP;
Blockly.Msg.HTCOLOUR_COLOUR_GETSAMPLE_TOOLTIP = Blockly.Msg.COLOUR_COLOUR_GETSAMPLE_TOOLTIP;
Expand Down
3 changes: 3 additions & 0 deletions msg/js/be.js
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@ Blockly.Msg.EV3BRICK_TOOLTIP = "Прадстаўляе праграмны бло
Blockly.Msg.EXPAND_ALL = "Разгарнуць блокі";
Blockly.Msg.EXPAND_BLOCK = "Разгарнуць блок";
Blockly.Msg.EXTERNAL_INPUTS = "Знешнія ўваходы";
Blockly.Msg.FACTOR = "Factor"; // untranslated
Blockly.Msg.FLAME_GETSAMPLE_TOOLTIP = "Gets the current reading from the flame sensor."; // untranslated
Blockly.Msg.FLAME_TOOLTIP = "Прадстаўляе датчык полымя.";
Blockly.Msg.FLYOUT_VARIABLE_TEXT = "Вы хочаце стварыць пераменную? Калі ласка, спачатку абнавіце яе, націснуўшы знак \"+\" у меню »start«u00foblock.";
Expand Down Expand Up @@ -1691,6 +1692,7 @@ Blockly.Msg.TOUR1_DESCRIPTION13a = "і праверце сваю праграм
Blockly.Msg.TOUR1_DESCRIPTION15 = "Выдатна,<br> Ваш робат праедзе 20 см наперад,<br> гэта тое, што Вы запраграмавалі!";
Blockly.Msg.TOUR1_DESCRIPTION16 = "Пакуль і цікавага праграмавання!";
Blockly.Msg.ULTRASONIC_GETSAMPLE_TOOLTIP = "Gets the current reading from the ultrasonic sensor in cm. Maximum distance to measure is 255 cm."; // untranslated
Blockly.Msg.ULTRASONIC_HCSR04 = "Ultrasonic HC-SR04"; // untranslated
Blockly.Msg.ULTRASONIC_TOOLTIP = "Прадстаўляе ўльтрагукавы датчык.";
Blockly.Msg.UNDO = "Адкаціць";
Blockly.Msg.USERGROUP_ADD_MEMBERS = "Add members"; // untranslated
Expand Down Expand Up @@ -1835,6 +1837,7 @@ Blockly.Msg.CONTROLS_WHILEUNTIL_INPUT_DO = Blockly.Msg.CONTROLS_REPEAT_INPUT_DO;
Blockly.Msg.SENSOR_SOUND_GETSAMPLE_TOOLTIP = Blockly.Msg.SOUND_GETSAMPLE_TOOLTIP;
Blockly.Msg.SENSOR_FLAME_GETSAMPLE_TOOLTIP = Blockly.Msg.FLAME_GETSAMPLE_TOOLTIP;
Blockly.Msg.ACTION_FOURDIGITDISPLAY = Blockly.Msg.FOURDIGITDISPLAY;
Blockly.Msg.SENSOR_ULTRASONIC_HCSR04 = Blockly.Msg.ULTRASONIC_HCSR04;
Blockly.Msg.SENSOR_COLOURTCS3472_COLOUR_GETSAMPLE_TOOLTIP = Blockly.Msg.COLOUR_COLOUR_GETSAMPLE_TOOLTIP;
Blockly.Msg.SENSOR_HTCOLOUR_AMBIENTLIGHT_GETSAMPLE_TOOLTIP = Blockly.Msg.SENSOR_COLOUR_AMBIENTLIGHT_GETSAMPLE_TOOLTIP;
Blockly.Msg.HTCOLOUR_COLOUR_GETSAMPLE_TOOLTIP = Blockly.Msg.COLOUR_COLOUR_GETSAMPLE_TOOLTIP;
Expand Down
3 changes: 3 additions & 0 deletions msg/js/bg.js
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@ Blockly.Msg.EV3BRICK_TOOLTIP = "Represents the EV3 brick with connected actors a
Blockly.Msg.EXPAND_ALL = "Покажи блокове";
Blockly.Msg.EXPAND_BLOCK = "Покажи блок";
Blockly.Msg.EXTERNAL_INPUTS = "Външни входове";
Blockly.Msg.FACTOR = "Factor"; // untranslated
Blockly.Msg.FLAME_GETSAMPLE_TOOLTIP = "Gets the current reading from the flame sensor."; // untranslated
Blockly.Msg.FLAME_TOOLTIP = "Represents a flame sensor."; // untranslated
Blockly.Msg.FLYOUT_VARIABLE_TEXT = "You need a variable? Please declare it first with a click on the + sign at the »start« block."; // untranslated
Expand Down Expand Up @@ -1691,6 +1692,7 @@ Blockly.Msg.TOUR1_DESCRIPTION13a = "and test your program in the simulation!";
Blockly.Msg.TOUR1_DESCRIPTION15 = "Perfect,<br>your robot is driving 20 cm forward,<br>this is what you have programmed!"; // untranslated
Blockly.Msg.TOUR1_DESCRIPTION16 = "Bye and have fun trying out more!"; // untranslated
Blockly.Msg.ULTRASONIC_GETSAMPLE_TOOLTIP = "Gets the current reading from the ultrasonic sensor in cm. Maximum distance to measure is 255 cm."; // untranslated
Blockly.Msg.ULTRASONIC_HCSR04 = "Ultrasonic HC-SR04"; // untranslated
Blockly.Msg.ULTRASONIC_TOOLTIP = "Represents an ultrasonic sensor."; // untranslated
Blockly.Msg.UNDO = "Undo"; // untranslated
Blockly.Msg.USERGROUP_ADD_MEMBERS = "Add members"; // untranslated
Expand Down Expand Up @@ -1835,6 +1837,7 @@ Blockly.Msg.CONTROLS_WHILEUNTIL_INPUT_DO = Blockly.Msg.CONTROLS_REPEAT_INPUT_DO;
Blockly.Msg.SENSOR_SOUND_GETSAMPLE_TOOLTIP = Blockly.Msg.SOUND_GETSAMPLE_TOOLTIP;
Blockly.Msg.SENSOR_FLAME_GETSAMPLE_TOOLTIP = Blockly.Msg.FLAME_GETSAMPLE_TOOLTIP;
Blockly.Msg.ACTION_FOURDIGITDISPLAY = Blockly.Msg.FOURDIGITDISPLAY;
Blockly.Msg.SENSOR_ULTRASONIC_HCSR04 = Blockly.Msg.ULTRASONIC_HCSR04;
Blockly.Msg.SENSOR_COLOURTCS3472_COLOUR_GETSAMPLE_TOOLTIP = Blockly.Msg.COLOUR_COLOUR_GETSAMPLE_TOOLTIP;
Blockly.Msg.SENSOR_HTCOLOUR_AMBIENTLIGHT_GETSAMPLE_TOOLTIP = Blockly.Msg.SENSOR_COLOUR_AMBIENTLIGHT_GETSAMPLE_TOOLTIP;
Blockly.Msg.HTCOLOUR_COLOUR_GETSAMPLE_TOOLTIP = Blockly.Msg.COLOUR_COLOUR_GETSAMPLE_TOOLTIP;
Expand Down
3 changes: 3 additions & 0 deletions msg/js/bn.js
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@ Blockly.Msg.EV3BRICK_TOOLTIP = "Represents the EV3 brick with connected actors a
Blockly.Msg.EXPAND_ALL = "ব্লকগুলো সম্প্রসারিত কর";
Blockly.Msg.EXPAND_BLOCK = "ব্লকটি সম্প্রসারিত কর";
Blockly.Msg.EXTERNAL_INPUTS = "বহি:স্থ ইনপুট";
Blockly.Msg.FACTOR = "Factor"; // untranslated
Blockly.Msg.FLAME_GETSAMPLE_TOOLTIP = "Gets the current reading from the flame sensor."; // untranslated
Blockly.Msg.FLAME_TOOLTIP = "Represents a flame sensor."; // untranslated
Blockly.Msg.FLYOUT_VARIABLE_TEXT = "You need a variable? Please declare it first with a click on the + sign at the »start« block."; // untranslated
Expand Down Expand Up @@ -1691,6 +1692,7 @@ Blockly.Msg.TOUR1_DESCRIPTION13a = "and test your program in the simulation!";
Blockly.Msg.TOUR1_DESCRIPTION15 = "Perfect,<br>your robot is driving 20 cm forward,<br>this is what you have programmed!"; // untranslated
Blockly.Msg.TOUR1_DESCRIPTION16 = "Bye and have fun trying out more!"; // untranslated
Blockly.Msg.ULTRASONIC_GETSAMPLE_TOOLTIP = "Gets the current reading from the ultrasonic sensor in cm. Maximum distance to measure is 255 cm."; // untranslated
Blockly.Msg.ULTRASONIC_HCSR04 = "Ultrasonic HC-SR04"; // untranslated
Blockly.Msg.ULTRASONIC_TOOLTIP = "Represents an ultrasonic sensor."; // untranslated
Blockly.Msg.UNDO = "পূর্বাবস্থা";
Blockly.Msg.USERGROUP_ADD_MEMBERS = "Add members"; // untranslated
Expand Down Expand Up @@ -1835,6 +1837,7 @@ Blockly.Msg.CONTROLS_WHILEUNTIL_INPUT_DO = Blockly.Msg.CONTROLS_REPEAT_INPUT_DO;
Blockly.Msg.SENSOR_SOUND_GETSAMPLE_TOOLTIP = Blockly.Msg.SOUND_GETSAMPLE_TOOLTIP;
Blockly.Msg.SENSOR_FLAME_GETSAMPLE_TOOLTIP = Blockly.Msg.FLAME_GETSAMPLE_TOOLTIP;
Blockly.Msg.ACTION_FOURDIGITDISPLAY = Blockly.Msg.FOURDIGITDISPLAY;
Blockly.Msg.SENSOR_ULTRASONIC_HCSR04 = Blockly.Msg.ULTRASONIC_HCSR04;
Blockly.Msg.SENSOR_COLOURTCS3472_COLOUR_GETSAMPLE_TOOLTIP = Blockly.Msg.COLOUR_COLOUR_GETSAMPLE_TOOLTIP;
Blockly.Msg.SENSOR_HTCOLOUR_AMBIENTLIGHT_GETSAMPLE_TOOLTIP = Blockly.Msg.SENSOR_COLOUR_AMBIENTLIGHT_GETSAMPLE_TOOLTIP;
Blockly.Msg.HTCOLOUR_COLOUR_GETSAMPLE_TOOLTIP = Blockly.Msg.COLOUR_COLOUR_GETSAMPLE_TOOLTIP;
Expand Down
Loading

0 comments on commit 6a595c2

Please sign in to comment.