diff --git a/OpenRobertaServer/src/main/resources/openRoberta.properties b/OpenRobertaServer/src/main/resources/openRoberta.properties index e5106ada01..1e6832193b 100644 --- a/OpenRobertaServer/src/main/resources/openRoberta.properties +++ b/OpenRobertaServer/src/main/resources/openRoberta.properties @@ -52,7 +52,7 @@ server.staticresources.dir = OpenRobertaServer/staticResources # For instance, if your school offers nxt, calliope2017 and calliope2016 robots, use this white list: # robot.whitelist = sim, nxt, calliope2017, calliope2016 # Usually overwritten by command line parameter -d -robot.whitelist = rcj, edisonv3, edisonv2, txt4, spike, spikePybricks, thymio, wedo, ev3lejosv1, ev3dev, ev3c4ev3, xNN, nxt, microbit, microbitv2, joycar, botnroll, nao, bob3, rob3rta, sensebox, mbot, mbot2, festobionic, festobionicflower, uno, nano, mega, nano33ble, calliope2017NoBlue, calliope2017, calliope2016, calliopev3, robotino +robot.whitelist = rcj, edisonv3, edisonv2, txt4, spike, spikePybricks, thymio, wedo, ev3lejosv1, ev3dev, xNN, nxt, microbit, microbitv2, joycar, botnroll, nao, bob3, rob3rta, sensebox, mbot, mbot2, festobionic, festobionicflower, uno, nano, mega, nano33ble, calliope2017NoBlue, calliope2017, calliope2016, calliopev3, robotino robot.default = ev3lejosv1 # account activation / verification / reset # server.iptocountry.dir path where the db is located, db name is fix: IpToCountry.cvs diff --git a/OpenRobertaServer/staticResources/help/progHelp_ev3_de.html b/OpenRobertaServer/staticResources/help/progHelp_ev3_de.html index 021880a28a..60cb441baf 100644 --- a/OpenRobertaServer/staticResources/help/progHelp_ev3_de.html +++ b/OpenRobertaServer/staticResources/help/progHelp_ev3_de.html @@ -1,1189 +1,855 @@ -
-Jedes Programm beginnt mit dem »Start«-Block, welcher nicht gelöscht werden kann. Den ersten Block, den - man verwenden möchte, verbindet man direkt mit der »Sequenzverbindung« am »Start«-Block.
+Jedes Programm beginnt mit dem »Start«-Block, welcher nicht gelöscht werden kann. Den ersten Block, den man verwenden möchte, verbindet man direkt mit der »Sequenzverbindung« am »Start«-Block.
Einstellmöglichkeiten:
-Wenn globale Variablen erzeugt wurden:
-Mit dem Block »Motor Port ... an Tempo« programmierst du das Tempo (Geschwindigkeit) eines Motors. Dein - Roboter startet den gewählten Motor, bis er gestoppt wird oder ein anderer Block zum Fahren verwendet - wird.
+Mit dem Block »Motor Port ... an Tempo« programmierst du das Tempo (Geschwindigkeit) eines Motors. Dein Roboter startet den gewählten Motor, bis er gestoppt wird oder ein anderer Block zum Fahren verwendet wird.
Einstellmöglichkeiten und Eingabewert:
-Mit dem Block »Motor Port ... an Tempo ... Umdrehungen/Grad« stellst du das Tempo (Geschwindigkeit) eines - Motors ein. Dein Roboter startet den gewählten Motor, bis er die eingestellte Anzahl Umdrehungen bzw. - Winkelgrade gemacht hat.
+Mit dem Block »Motor Port ... an Tempo ... Umdrehungen/Grad« stellst du das Tempo (Geschwindigkeit) eines Motors ein. Dein Roboter startet den gewählten Motor, bis er die eingestellte Anzahl Umdrehungen bzw. Winkelgrade gemacht hat.
Einstellmöglichkeiten und Eingabewerte:
-Der Block »Gib Tempo Motor - Port« liest das Tempo (Geschwindigkeit) eines Motors aus.
+Der Block »Gib Tempo Motor Port« liest das Tempo (Geschwindigkeit) eines Motors aus.
Einstellmöglichkeiten:
-Rückgabewert:
-Der Block »Setze Motor Port ... - Tempo « setzt das Tempo - (Geschwindigkeit) eines Motors auf einen neuen Wert.
+Der Block »Setze Motor Port ... Tempo « setzt das Tempo (Geschwindigkeit) eines Motors auf einen neuen Wert. +
Einstellmöglichkeiten und Eingabewert:
-Der Block »Stoppe Motor - Port - « schaltet den Motor an einem ausgewählten Motor-Port aus. Du kannst - einstellen, ob der Motor langsam ausläuft oder gebremst wird.
+Der Block »Stoppe Motor Port « schaltet den Motor an einem ausgewählten Motor-Port aus. Du kannst einstellen, ob der Motor langsam ausläuft oder gebremst wird. +
Einstellmöglichkeiten:
-Mit dem Block »Fahre ... Tempo« kannst du die Richtung und das Tempo (Geschwindigkeit) deines Roboters - programmieren. Dein Roboter fährt so lange vorwärts oder rückwärts, bis er gestoppt wird oder ein - anderer Block zum Fahren verwendet wird.
+ +Mit dem Block »Fahre ... Tempo« kannst du die Richtung und das Tempo (Geschwindigkeit) deines Roboters programmieren. Dein Roboter fährt so lange vorwärts oder rückwärts, bis er gestoppt wird oder ein anderer Block zum Fahren verwendet wird.
»Fahre« steuert beide Motoren des Roboters gleichzeitig.
Einstellmöglichkeiten und Eingabewert:
-Mit dem Block »Fahre ... Tempo ... Strecke« kannst du zusätzlich zu Richtung und Tempo auch die - Fahrstrecke des Roboters programmieren. Dein Roboter fährt so lange, bis die eingestellte Strecke - gefahren ist. Die Geschwindigkeit kannst du im Feld Tempo einstellen. Wenn dieser Block »zu Ende« ist, - stoppen die Motoren automatisch.
+Mit dem Block »Fahre ... Tempo ... Strecke« kannst du zusätzlich zu Richtung und Tempo auch die Fahrstrecke des Roboters programmieren. Dein Roboter fährt so lange, bis die eingestellte Strecke gefahren ist. Die Geschwindigkeit kannst du im Feld Tempo einstellen. Wenn dieser Block »zu Ende« ist, stoppen die Motoren automatisch.
»Fahre« steuert beide Motoren des Roboters gleichzeitig.
-Wenn die eingestellten Werte der Aktionen mit der Programmausführung nicht übereinstimmen, prüfe die - Roboter-Konfiguration, insbesondere den Raddurchmesser.
+Wenn die eingestellten Werte der Aktionen mit der Programmausführung nicht übereinstimmen, prüfe die Roboter-Konfiguration, insbesondere den Raddurchmesser.
Einstellmöglichkeiten und Eingabewerte:
-Mit dem Block »Stoppe« werden die Motoren deines Roboters gestoppt. Das bedeutet, dein Roboter hält an. -
-Mit dem Block »Drehe ... Tempo« kannst du die Richtung (rechts/links), in der sich der Roboter drehen - soll, programmieren. Dein Roboter dreht sich so lange auf der Stelle, bis er gestoppt wird oder ein - anderer Block zum Fahren verwendet wird. Die Geschwindigkeit kannst Du im Feld »Tempo« einstellen. - »Drehe« steuert beide Motoren des Roboters gleichzeitig in entgegengesetzten Richtungen, dadurch dreht - sich der Roboter auf der Stelle.
+Mit dem Block »Stoppe« werden die Motoren deines Roboters gestoppt. Das bedeutet, dein Roboter hält an.
Mit dem Block »Drehe ... Tempo« kannst du die Richtung (rechts/links), in der sich der Roboter drehen soll, programmieren. Dein Roboter dreht sich so lange auf der Stelle, bis er gestoppt wird oder ein anderer Block zum Fahren verwendet wird. Die Geschwindigkeit kannst Du im Feld »Tempo« einstellen. »Drehe« steuert beide Motoren des Roboters gleichzeitig in entgegengesetzten Richtungen, dadurch dreht sich der Roboter auf der Stelle.
Einstellmöglichkeiten und Eingabewert:
-Falls sich dein Roboter in die falsche Richtung dreht, sind die Motoren an die falschen Ports - angeschlossen. Es genügt dann, die Ports zu tauschen, damit der Roboter in die richtige Richtung - dreht.
+Falls sich dein Roboter in die falsche Richtung dreht, sind die Motoren an die falschen Ports angeschlossen. Es genügt dann, die Ports zu tauschen, damit der Roboter in die richtige Richtung dreht.
Mit dem Block »Drehe ... Tempo ... Grad« kannst du die Richtung (rechts/links), in der sich der Roboter - um die eigene Achse drehen soll, programmieren. Zusätzlich zur Richtung kann noch im Feld »Grad« - angegeben werden, um wie viel Grad sich dein Roboter (um die eigene Achse) drehen soll. Dies bedeutet, - dass du beispielsweise mit der Einstellung 360 Grad deinen Roboter einmal um die eigene Achse drehen - lassen kannst. Der Block »Drehe ... Tempo ... Grad« steuert beide Motoren des Roboters, damit sich der - Roboter um die eigene Achse dreht.
-Wenn die eingestellten Werte der Aktionen mit der Programmausführung nicht übereinstimmen, prüfe die - Roboter-Konfiguration, insbesondere den Raddurchmesser und die Spurbreite.
+Mit dem Block »Drehe ... Tempo ... Grad« kannst du die Richtung (rechts/links), in der sich der Roboter um die eigene Achse drehen soll, programmieren. Zusätzlich zur Richtung kann noch im Feld »Grad« angegeben werden, um wie viel Grad sich dein Roboter (um die eigene Achse) drehen soll. Dies bedeutet, dass du beispielsweise mit der Einstellung 360 Grad deinen Roboter einmal um die eigene Achse drehen lassen kannst. Der Block »Drehe ... Tempo ... Grad« steuert beide Motoren des Roboters, damit sich der Roboter um die eigene Achse dreht.
+Wenn die eingestellten Werte der Aktionen mit der Programmausführung nicht übereinstimmen, prüfe die Roboter-Konfiguration, insbesondere den Raddurchmesser und die Spurbreite.
Einstellmöglichkeiten und Eingabewerte:
-Mit dem Block »Steure ... Tempo links ... Tempo rechts ...« kannst du den Roboter so programmieren, dass - er eine Kurve fährt, indem du das Tempo für den linken und den rechten Motor auf unterschiedliche Werte - setzt. Die Roboterkonfiguration beeinflusst den Radius der Kurve in Abhängigkeit von Radabstand und - Raddurchmesser. Mit der Drehrichtung legst du die Fahrtrichtung fest.
+Mit dem Block »Steure ... Tempo links ... Tempo rechts ...« kannst du den Roboter so programmieren, dass er eine Kurve fährt, indem du das Tempo für den linken und den rechten Motor auf unterschiedliche Werte setzt. Die Roboterkonfiguration beeinflusst den Radius der Kurve in Abhängigkeit von Radabstand und Raddurchmesser. Mit der Drehrichtung legst du die Fahrtrichtung fest.
Einstellmöglichkeiten und Eingabewerte:
-Mit dem Block »Steure ... Tempo links ... Tempo rechts ... Strecke ...« kannst du den Roboter so - programmieren, dass er eine vorgegebene Strecke als Kurve fährt, indem du das Tempo für den linken und - den rechten Motor auf unterschiedliche Werte setzt. Die Strecke bezieht sich auf die Mitte zwischen - beiden Rädern. Die Roboterkonfiguration beeinflusst den Radius der Kurve in Abhängigkeit von Radabstand - und Raddurchmesser. Mit der Richtung legst du die Fahrtrichtung fest.
+Mit dem Block »Steure ... Tempo links ... Tempo rechts ... Strecke ...« kannst du den Roboter so programmieren, dass er eine vorgegebene Strecke als Kurve fährt, indem du das Tempo für den linken und den rechten Motor auf unterschiedliche Werte setzt. Die Strecke bezieht sich auf die Mitte zwischen beiden Rädern. Die Roboterkonfiguration beeinflusst den Radius der Kurve in Abhängigkeit von Radabstand und Raddurchmesser. Mit der Richtung legst du die Fahrtrichtung fest.
Einstellmöglichkeiten und Eingabewerte:
-Mit dem Block »Zeige Text« kannst du Text und Zahlen auf dem Display deines Roboters anzeigen lassen. - Dabei kannst du zusätzlich noch bestimmen, in welcher Spalte und in welcher Zeile der Text auf dem - EV3-Bildschirm erscheinen soll.
-Das Display eines EV3 ist für Texte in mehreren Zeilen (von links nach rechts) und Spalten (von oben nach - unten) eingeteilt.
-Wenn zuvor schon etwas auf dem Display angezeigt war, werden nur die Stellen überschrieben, in die der - Text geschrieben wird.
+Mit dem Block »Zeige Text« kannst du Text und Zahlen auf dem Display deines Roboters anzeigen lassen. Dabei kannst du zusätzlich noch bestimmen, in welcher Spalte und in welcher Zeile der Text auf dem EV3-Bildschirm erscheinen soll.
+Das Display eines EV3 ist für Texte in mehreren Zeilen (von links nach rechts) und Spalten (von oben nach unten) eingeteilt.
+Wenn zuvor schon etwas auf dem Display angezeigt war, werden nur die Stellen überschrieben, in die der Text geschrieben wird.
Eingabewerte:
-Mit dem Block »Zeige Bild« kannst du eines von mehreren Bildern auf dem EV3-Display deines Roboters - anzeigen lassen. Verfügbare Bilder sind »Brille«, »Augen auf«, »Augen zu«, »Blumen«, »Tacho«.
+Mit dem Block »Zeige Bild« kannst du eines von mehreren Bildern auf dem EV3-Display deines Roboters anzeigen lassen. Verfügbare Bilder sind »Brille«, »Augen auf«, »Augen zu«, »Blumen«, »Tacho«.
Einstellmöglichkeiten und Eingabewerte:
-Mit dem Block »Lösche Bildschirm« kannst du Text und Zahlen auf dem Display deines Roboters löschen. Das - Display ist anschließend leer.
-Mit dem Block »Spiele Frequenz ... Dauer« kannst du die Frequenz (Höhe eines Tons) und die Zeit (wie - lange der Ton gespielt wird) programmieren. Der Ton wird über den eingebauten Lautsprecher deines LEGO - MINDSTORMS EV3 Steins abgespielt, bis die eingestellte Dauer erreicht ist.
-Bitte beachte, dass das menschliche Gehör Frequenzen zwischen ca. 30 Hz bis ca. 15.000 Hz (15 - kHz) wahrnehmen kann - je nach Mensch und Alter kann dies unterschiedlich sein.
+Mit dem Block »Lösche Bildschirm« kannst du Text und Zahlen auf dem Display deines Roboters löschen. Das Display ist anschließend leer.
Mit dem Block »Spiele Frequenz ... Dauer« kannst du die Frequenz (Höhe eines Tons) und die Zeit (wie lange der Ton gespielt wird) programmieren. Der Ton wird über den eingebauten Lautsprecher deines LEGO MINDSTORMS EV3 Steins abgespielt, bis die eingestellte Dauer erreicht ist.
+Bitte beachte, dass das menschliche Gehör Frequenzen zwischen ca. 30 Hz bis ca. 15.000 Hz (15 kHz) wahrnehmen kann - je nach Mensch und Alter kann dies unterschiedlich sein.
Eingabewerte:
-Mit diesem Block kann dein Roboter eine Note abspielen.
Optionen:
-Mit dem Block »Spiele Stück« bringst du deinen Roboter dazu, einen von fünf hinterlegten Klängen zu - spielen.
+Mit dem Block »Spiele Stück« bringst du deinen Roboter dazu, einen von fünf hinterlegten Klängen zu spielen.
Einstellmöglichkeiten:
-Mit dem Block »Setze Lautstärke« kannst du die Lautstärke eines Tons programmieren. Die Lautstärke kann - von 0 (kein Ton) bis 100 (volle Lautstärke) eingestellt werden. Die Lautstärke bleibt so lange - eingestellt, bis du sie mit einem anderen Block »Setze Lautstärke« neu programmierst.
+Mit dem Block »Setze Lautstärke« kannst du die Lautstärke eines Tons programmieren. Die Lautstärke kann von 0 (kein Ton) bis 100 (volle Lautstärke) eingestellt werden. Die Lautstärke bleibt so lange eingestellt, bis du sie mit einem anderen Block »Setze Lautstärke« neu programmierst.
Eingabewert:
-Mit dem Block »Gib Lautstärke« kannst du die aktuell eingestellte Lautstärke auslesen. 0 = kein Ton, 100 - = maximale Lautstärke.
+Mit dem Block »Gib Lautstärke« kannst du die aktuell eingestellte Lautstärke auslesen. 0 = kein Ton, 100 = maximale Lautstärke.
Rückgabewert:
-Mit diesem Block kannst du die Sprache deines Roboters steuern. - Wenn du C4EV3 als dein Robotersystem verwendest, musst du zusätzliche Dateien für die Sprachausgabe - herunterladen. Eine Anleitung dazu findest du hier. -
-Optionen: -
-Mit diesem Block kannst du die Sprachausgabe deines Roboters steuern. Dabei verwendet der Roboter die - Sprache, die du mit dem »Setze Sprache ...« Block festgelegt hast. Die Standardsprache ist Deutsch.
+Mit diesem Block kannst du die Sprache deines Roboters steuern. Wenn du C4EV3 als dein Robotersystem verwendest, musst du zusätzliche Dateien für die Sprachausgabe herunterladen. Eine Anleitung dazu findest du hier.
+Optionen: +
+Mit diesem Block kannst du die Sprachausgabe deines Roboters steuern. Dabei verwendet der Roboter die Sprache, die du mit dem »Setze Sprache ...« Block festgelegt hast. Die Standardsprache ist Deutsch.
Eingabewerte:
-Mit diesem Block kannst du die Sprachausgabe deines Roboters - steuern. Du kannst dabei auch die Stimmlage und die Sprechgeschwindigkeit deines Roboters - steuern.
-Eingabewerte: -
-Mit dem Block »Statusleuchte« kannst du die Statusleuchte, also die Hintergrundfarbe der Knöpfe an deinem - EV3-Stein programmieren. Folgende Farben stehen zur Auswahl: grün, orange, rot. Zusätzlich kannst du - einstellen, wie die Statusleuchte leuchten soll: »an«, »blinkend« oder »doppel blinkend«.
+Mit diesem Block kannst du die Sprachausgabe deines Roboters steuern. Du kannst dabei auch die Stimmlage und die Sprechgeschwindigkeit deines Roboters steuern. +
+Eingabewerte: +
+Mit dem Block »Statusleuchte« kannst du die Statusleuchte, also die Hintergrundfarbe der Knöpfe an deinem EV3-Stein programmieren. Folgende Farben stehen zur Auswahl: grün, orange, rot. Zusätzlich kannst du einstellen, wie die Statusleuchte leuchten soll: »an«, »blinkend« oder »doppel blinkend«.
Einstellmöglichkeiten:
-Mit dem Block »Statusleuchte aus« kannst du die Statusanzeige an deinem EV3-Stein ausschalten.
-Mit dem Block »Setze Statusleuchte zurück« kannst du die Statusanzeige auf den Standardwert zurücksetzen. -
-Mit dem Block »Berührungssensor« kannst du einem anderen Block »mitteilen«, ob der Berührungssensor - gedrückt wurde oder nicht. Dieser Block gibt die logischen Werte wahr = gedrückt oder - falsch = nicht gedrückt zurück.
+Mit dem Block »Statusleuchte aus« kannst du die Statusanzeige an deinem EV3-Stein ausschalten.
Mit dem Block »Setze Statusleuchte zurück« kannst du die Statusanzeige auf den Standardwert zurücksetzen.
Mit dem Block »Berührungssensor« kannst du einem anderen Block »mitteilen«, ob der Berührungssensor gedrückt wurde oder nicht. Dieser Block gibt die logischen Werte + wahr = gedrückt oder falsch = nicht gedrückt zurück.
Einstellmöglichkeiten:
-Rückgabewert: -
-Mit dem Block »Gib Abstand/Anwesenheit Ultraschallsensor« kannst du einem anderen Block »mitteilen«, - welchen Abstand der Ultraschallsensor misst. Der Abstand wird als Zahl (in cm) übermittelt. Andererseits - kann dieser Block im Auswahlmenü auf »Anwesenheit« gestellt werden. Mit dieser Einstellung kann geprüft - werden, ob ein anderer Ultraschallsensor aktiv ist. In dieser Einstellung gibt er die logischen Werte - true = weiterer Ultraschallsensor anwesend oder false = kein weiterer Ultraschallsensor - anwesend zurück.
-Ultraschall, der nicht vom eigenen Ultraschallsensor ausgesandt wurde, kann zu fehlerhaften - Messungen führen.
-Mit dem Block »Gib Abstand/Anwesenheit Ultraschallsensor« kannst du einem anderen Block »mitteilen«, welchen Abstand der Ultraschallsensor misst. Der Abstand wird als Zahl (in cm) übermittelt. Andererseits kann dieser Block im Auswahlmenü auf »Anwesenheit« gestellt werden. Mit dieser Einstellung kann geprüft werden, ob ein anderer Ultraschallsensor aktiv ist. In dieser Einstellung gibt er die logischen Werte + true = weiterer Ultraschallsensor anwesend oder false = kein weiterer Ultraschallsensor anwesend zurück.
+Ultraschall, der nicht vom eigenen Ultraschallsensor ausgesandt wurde, kann zu fehlerhaften Messungen führen.
Einstellmöglichkeiten:
-Rückgabewert: -
-Wenn »Anwesenheit« gewählt wurde, wird ein logischer Wert zurückgegeben.
-Wenn »Abstand« gewählt wurde, wird der Abstand zwischen Ultraschallsensor und Hindernis - angegeben.
-Mit dem Block »Gib Farbe« kannst du einem anderen Block »mitteilen«, welche Farbe der Farbsensor misst. - Die Farbe wird als Datentyp »Farbe« übermittelt. Zudem kann dieser Block im Auswahlmenü auf »Licht«, - »RGB« und »Umgebungslicht« gestellt werden. Diese drei zusätzlichen Typen übermitteln jeweils den - Datentyp »Zahl«. Die Zahlenwerte liegen je nach gewählter Messmethode zwischen 0 und 255. Mit diesen - verschiedenen Einstellung kann dieser Block je nach Anforderung eingestellt werden.
-Im Modus »Farbe« sendet der Farbsensor Licht aus und erkennt, welche Grundfarbe unter dem Sensor erkannt - wurde. Die Grundfarbwerte sind BLACK, WHITE, RED, GREEN, BLUE, YELLOW, BROWN. Die Farbe GREY teugt an, - dass die gemessene Farbe keiner der Standardfarben entspricht.
-Im Modus »Licht« sendet der Farbsensor mittels seiner roten LED Licht aus und misst die reflektierte - Lichtstärke auf einer Skala von 0 bis 100.
-Im Modus »RGB« sendet der Farbsensor rotes, grünes und blaues Licht aus und misst das reflektierte Licht - entsprechend der Anteile Rot, Grün und Blau auf einer Skala von 0 bis 255 pro Farbe. Es wird eine Liste - mit drei Werten für die jeweiligen Farben ausgegeben.
-Im Modus »Umgebungslicht« wird dieselbe Skala (0-100) wie im Modus Licht verwendet. Dabei wird das ins - Sensorfenster einfallende Umgebungslicht gemessen.
+Wenn »Anwesenheit« gewählt wurde, wird ein logischer Wert zurückgegeben.
+Wenn »Abstand« gewählt wurde, wird der Abstand zwischen Ultraschallsensor und Hindernis angegeben.
»gib Farbe« +
+Mit dem Block »Gib Farbe« kannst du einem anderen Block »mitteilen«, welche Farbe der Farbsensor misst. Die Farbe wird als Datentyp »Farbe« übermittelt. Zudem kann dieser Block im Auswahlmenü auf »Licht«, »RGB« und »Umgebungslicht« gestellt werden. Diese drei zusätzlichen Typen übermitteln jeweils den Datentyp »Zahl«. Die Zahlenwerte liegen je nach gewählter Messmethode zwischen 0 und 255. Mit diesen verschiedenen Einstellung kann dieser Block je nach Anforderung eingestellt werden.
+Im Modus »Farbe« sendet der Farbsensor Licht aus und erkennt, welche Grundfarbe unter dem Sensor erkannt wurde. Die Grundfarbwerte sind BLACK, WHITE, RED, GREEN, BLUE, YELLOW, BROWN. Die Farbe GREY teugt an, dass die gemessene Farbe keiner der Standardfarben entspricht.
+Im Modus »Licht« sendet der Farbsensor mittels seiner roten LED Licht aus und misst die reflektierte Lichtstärke auf einer Skala von 0 bis 100.
+Im Modus »RGB« sendet der Farbsensor rotes, grünes und blaues Licht aus und misst das reflektierte Licht entsprechend der Anteile Rot, Grün und Blau auf einer Skala von 0 bis 255 pro Farbe. Es wird eine Liste mit drei Werten für die jeweiligen Farben ausgegeben.
+Im Modus »Umgebungslicht« wird dieselbe Skala (0-100) wie im Modus Licht verwendet. Dabei wird das ins Sensorfenster einfallende Umgebungslicht gemessen.
Einstellmöglichkeiten:
-Rückgabewert: -
-Mit dem Block »Gib Abstand/Anwesenheit Infrarotsensor« kannst du einem anderen Block »mitteilen«, welchen - Abstand der Infrarotsensor misst.
-Im Modus »Abstand« wird der Abstand als Zahl zwischen 0 (ganz nah) und 100 (weit entfernt) übermittelt, - nicht als Entfernungsmaß in Zentimetern. Der Sensor kann Objekte bis zu einem Abstand von 70 cm - erkennen.
-Zudem kann dieser Block im Auswahlmenü auf »Anwesenheit« gestellt werden. Mit dieser Einstellung kann - geprüft werden, ob ein Infrarotsender (Beacon) aktiv ist. Diese Einstellung gibt eine Liste (Array) von - 4 Wertepaaren, also insgesamt 8 Werte zurück. Jedes Wertepaar gibt mit dem ersten Wert die - Richtung und mit dem zweiten Wert den Abstand zum Infrarotsender an. - Das erste Wertepaar betrachtet dabei die Werte, die auf dem Kanal 1 des Senders übermittelt werden, das - zweite Wertepaar entsprechend Kanal 2 usw.. Die Richtung kann Werte von -25 bis +25 annehmen. Dabei - bedeutet 0, dass das Infrarotsignal direkt von vorne kommt. -25 bzw. +25 stehen für Winkel von 110° nach - links bzw. rechts. Der Abstand zum Sender ist ein Wert zwischen 0 (ganz nah) und 100 (weit entfernt). - Infrarotsignale von Sendern können aus bis zu 200 cm Entfernung empfangen werden.
-Beispiel: Ergebnis einer Messung mit dem Infrarotsensor ist [ 0 0 -10 40 0 0 0 0 ]. Das - bedeutet, dass auf Kanal 2 die Richtung des Senders mit -10 gemessen wurde, was etwa 60 Grad links - entspricht, sowie ein Abstand von 40, was ungefähr 80 cm entspricht.
-Ein exakte Messung der Abstände in cm ist mit dem Infrarotsensor nicht möglich. Die gemessenen - Abstände sind also ungefähre Werte.
-Mit dem Block »Gib Abstand/Anwesenheit Infrarotsensor« kannst du einem anderen Block »mitteilen«, welchen Abstand der Infrarotsensor misst.
+Im Modus »Abstand« wird der Abstand als Zahl zwischen 0 (ganz nah) und 100 (weit entfernt) übermittelt, nicht als Entfernungsmaß in Zentimetern. Der Sensor kann Objekte bis zu einem Abstand von 70 cm erkennen.
+Zudem kann dieser Block im Auswahlmenü auf »Anwesenheit« gestellt werden. Mit dieser Einstellung kann geprüft werden, ob ein Infrarotsender (Beacon) aktiv ist. Diese Einstellung gibt eine Liste (Array) von 4 Wertepaaren, also insgesamt 8 Werte zurück. Jedes Wertepaar gibt mit dem ersten Wert die + Richtung und mit dem zweiten Wert den + Abstand zum Infrarotsender an. Das erste Wertepaar betrachtet dabei die Werte, die auf dem Kanal 1 des Senders übermittelt werden, das zweite Wertepaar entsprechend Kanal 2 usw.. Die Richtung kann Werte von -25 bis +25 annehmen. Dabei bedeutet 0, dass das Infrarotsignal direkt von vorne kommt. -25 bzw. +25 stehen für Winkel von 110° nach links bzw. rechts. Der Abstand zum Sender ist ein Wert zwischen 0 (ganz nah) und 100 (weit entfernt). Infrarotsignale von Sendern können aus bis zu 200 cm Entfernung empfangen werden. +
++ Beispiel: Ergebnis einer Messung mit dem Infrarotsensor ist [ 0 0 -10 40 0 0 0 0 ]. Das bedeutet, dass auf Kanal 2 die Richtung des Senders mit -10 gemessen wurde, was etwa 60 Grad links entspricht, sowie ein Abstand von 40, was ungefähr 80 cm entspricht. +
+Ein exakte Messung der Abstände in cm ist mit dem Infrarotsensor nicht möglich. Die gemessenen Abstände sind also ungefähre Werte.
Einstellmöglichkeiten:
-Rückgabewert: -
-Zahl, bei »Abstand«, maximaler Abstand 70 cm.
-Liste mit Zahlen, bei »Anwesenheit«.
-Mit dem Block »Setze Drehsensor zurück« kann der interne Sensor (Motor-Encoder) eines Motors auf den Wert - 0 zurückgesetzt werden.
+Zahl, bei »Abstand«, maximaler Abstand 70 cm.
+Liste mit Zahlen, bei »Anwesenheit«.
»Setze Drehsensor zurück«
+Mit dem Block »Setze Drehsensor zurück« kann der interne Sensor (Motor-Encoder) eines Motors auf den Wert 0 zurückgesetzt werden.
Einstellmöglichkeiten:
-Mit dem Block »Gib Umdrehungen/Grad/Abstand Drehsensor« kannst du einem anderen Block die - Motorumdrehungen »mitteilen«.
+»gib Umdrehungen/Grad/Abstand Drehsensor Port«
+Mit dem Block »Gib Umdrehungen/Grad/Abstand Drehsensor« kannst du einem anderen Block die Motorumdrehungen »mitteilen«.
Wenn »Umdrehungen« eingestellt wurde, wird die Zahl der Umdrehungen ausgegeben.
-Wenn »Grad« eingestellt wurde, wird die Gradzahl aller Umdrehungen ausgegeben, wobei eine volle Umdrehung - genau 360 Grad entspricht.
-Wenn »Abstand« eingestellt wurde, wird berechnet, welche Strecke das Rad des Motors zurückgelegt hat. Das - ist natürlich abhängig davon, wie groß das Rad in der Roboterkonfiguration eingestellt ist.
+Wenn »Grad« eingestellt wurde, wird die Gradzahl aller Umdrehungen ausgegeben, wobei eine volle Umdrehung genau 360 Grad entspricht.
+Wenn »Abstand« eingestellt wurde, wird berechnet, welche Strecke das Rad des Motors zurückgelegt hat. Das ist natürlich abhängig davon, wie groß das Rad in der Roboterkonfiguration eingestellt ist.
Einstellmöglichkeiten:
-Rückgabewert: -
-Mit dem Block »Taste« kannst du einem anderen Block »mitteilen« , ob die ausgewählte Taste auf dem EV3 - gedrückt wurde oder nicht. Dieser Block gibt die logischen Werte true = gedrückt oder false - = nicht gedrückt zurück. Auswahl aus »Mitte« / »Oben« / »Unten« / »Rechts« / »Links« / »Zurück« - / »irgendeine«.
+»Taste ... gedrückt?«
+Mit dem Block »Taste« kannst du einem anderen Block »mitteilen« , ob die ausgewählte Taste auf dem EV3 gedrückt wurde oder nicht. Dieser Block gibt die logischen Werte + true = gedrückt oder + false = nicht gedrückt zurück. Auswahl aus »Mitte« / »Oben« / »Unten« / »Rechts« / »Links« / »Zurück« / »irgendeine«.
Einstellmöglichkeiten:
-
Rückgabewert:
-
Mit dem Block »Setze Kreiselsensor zurück« kann der Kreiselsensor (auch Gyroskop genannt) auf den Wert 0 - zurückgesetzt werden.
+»Setze Kreiselsensor Port ... zurück«
+Mit dem Block »Setze Kreiselsensor zurück« kann der Kreiselsensor (auch Gyroskop genannt) auf den Wert 0 zurückgesetzt werden.
Einstellmöglichkeiten:
-Mit dem Block »Gib Winkel/Drehrate Kreiselsensor« kannst du einem anderen Block »mitteilen«, um welchen - Winkel der Kreiselsensor um seine vertikale Achse gedreht wurde. Der Winkel wird als Zahl übermittelt. - Zudem kann dieser Block im Auswahlmenü auf »Drehrate« gestellt werden. Mit dieser Einstellung wird statt - des Winkels die Drehung des Sensor in »Grad pro Sekunde« übermittelt.
-Im Modus Drehrate können maximal 440 Grad/Sekunde erfasst werden. Im Modus Winkel beträgt die - Genauigkeit des Kreiselsensors +/- 3 Grad.
+»gib Winkel/Drehrate Kreiselsensor«
+Mit dem Block »Gib Winkel/Drehrate Kreiselsensor« kannst du einem anderen Block »mitteilen«, um welchen Winkel der Kreiselsensor um seine vertikale Achse gedreht wurde. Der Winkel wird als Zahl übermittelt. Zudem kann dieser Block im Auswahlmenü auf »Drehrate« gestellt werden. Mit dieser Einstellung wird statt des Winkels die Drehung des Sensor in »Grad pro Sekunde« übermittelt.
+Im Modus Drehrate können maximal 440 Grad/Sekunde erfasst werden. Im Modus Winkel beträgt die Genauigkeit des Kreiselsensors +/- 3 Grad.
Einstellmöglichkeiten:
-Rückgabewert: -
-Mit dem Block »Gib Wert Zeitgeber« kannst du einem anderen Block den aktuellen Stand des internen - Zeitgebers in Millisekunden »mitteilen«. Der Zeitgeber wird automatisch mit dem Beginn eines Programms - gestartet. Es stehen 5 Zeitgeber zur Verfügung.
+»gib Wert Zeitgeber ...«
+Mit dem Block »Gib Wert Zeitgeber« kannst du einem anderen Block den aktuellen Stand des internen Zeitgebers in Millisekunden »mitteilen«. Der Zeitgeber wird automatisch mit dem Beginn eines Programms gestartet. Es stehen 5 Zeitgeber zur Verfügung.
Einstellöglichkeiten:
-Rückgabewert: -
-Mit dem Block »Setze Zeitgeber« können die internen Zeitgeber (1 bis 5) auf den Wert 0 zurückgesetzt - werden.
+»Setze Zeitgeber ... zurück«
+Mit dem Block »Setze Zeitgeber« können die internen Zeitgeber (1 bis 5) auf den Wert 0 zurückgesetzt werden.
Einstellmöglichkeiten:
-»gib Geräusch % Geräuschsensor Port ... «
Mit diesem Block kannst du die Lautstärke abfragen, die der Geräuschsensor misst.
Optionen:
-Rückgabewert: +
Rückgabewert:
-Mit diesem Block kannst du einen angeschlossenen HT Kompasssensor neu kalibrieren. Dieser Sensor misst - das Erdmagnetfeld und berechnet aus dessen Verlauf eine aktuelle Orientierung deines Roboters. Damit - diese berechnung möglicht genau funktioniert, musst du den Kompasssensor zu Beginn deines Programms neu - kalibrieren, um störende Einflüsse wie z.B. Motoren zu reduzieren.
+»Kalibriere HT Kompasssensor Port ... « +
+Mit diesem Block kannst du einen angeschlossenen HT Kompasssensor neu kalibrieren. Dieser Sensor misst das Erdmagnetfeld und berechnet aus dessen Verlauf eine aktuelle Orientierung deines Roboters. Damit diese berechnung möglicht genau funktioniert, musst du den Kompasssensor zu Beginn deines Programms neu kalibrieren, um störende Einflüsse wie z.B. Motoren zu reduzieren.
Optionen:
-Mit diesem Block kannst du verschiedene Werte des Kompasssensors abfragen. Der Kompasssensor kann dabei - den Winkel und die Kompassorientierung deines Roboters messen. Allerdings solltest du den Sensor neu - kalibrieren, bevor du ihn in deinem Programm verwendest.
+»gib ... HT Kompasssensor Port ... « +
+Mit diesem Block kannst du verschiedene Werte des Kompasssensors abfragen. Der Kompasssensor kann dabei den Winkel und die Kompassorientierung deines Roboters messen. Allerdings solltest du den Sensor neu kalibrieren, bevor du ihn in deinem Programm verwendest.
Optionen:
-Rückgabewert: +
Rückgabewert:
-Mit diesem Block kannst du den HT Infrarotsensor deines Roboters abfragen. Dieser Sensor sendet und - empfängt Infrarot-Signale und kann so die Distanz zu einem Objekt berechnen.
+»gib ... HT Infrarotsensor Port ... « +
+Mit diesem Block kannst du den HT Infrarotsensor deines Roboters abfragen. Dieser Sensor sendet und empfängt Infrarot-Signale und kann so die Distanz zu einem Objekt berechnen.
Optionen:
-Rückgabewert: +
Rückgabewert:
-Mit diesem Block kannst du den HT Farbsensor deines Roboters abfragen. Dieser Sensor verwendet mehrere - Leuchtdioden um den Untergrund zu beleuchten und misst dann, welche Farbe wie stark reflektiert wird. - Aus diesen Werten lassen sich Farben und RGB-Werte berechnen. Der Sensor kann außerdem die Helligkeit - des Untergrunds und der Umgebung messen.
+»gibt ... HT Farbsensor Port ... «
+Mit diesem Block kannst du den HT Farbsensor deines Roboters abfragen. Dieser Sensor verwendet mehrere Leuchtdioden um den Untergrund zu beleuchten und misst dann, welche Farbe wie stark reflektiert wird. Aus diesen Werten lassen sich Farben und RGB-Werte berechnen. Der Sensor kann außerdem die Helligkeit des Untergrunds und der Umgebung messen.
Optionen:
-Rückgabewerte: +
Rückgabewerte:
-Mit dem Block »Wenn mache« kannst du gezielt Aktionen auslösen, die von einer - Bedingung abhängen. Der »Wenn mache«-Block benötigt einen logischen Wert als Eingabewert. Falls die - Bedingung in »Wenn« erfüllt (wahr) ist, wird der eingefügte Block (oder die Blöcke) ausgeführt. Bei - einem verschachtelten »Wenn mache« Block, also wenn eine weitere Unterscheidung eingefügt wurde, wird - zuerst die erste »Wenn« Bedingung abgefragt und, falls diese nicht erfüllt ist (Bedingung = falsch), - wird die zweite »oder wenn« Bedingung geprüft. Auch diese zweite Bedingung benötigt wieder einen - logischen Wert als Eingabewert.
-Die Bedingungen können beliebig durch Anklicken des »+« Plus-Symbols erweitert - und durch das »-« Minus-Symbol wieder bis auf eine einzige Bedingung reduziert werden.
-Einstellmöglichkeiten und Eingabewerte: -
-Mit dem Block »Wenn mache« kannst du gezielt Aktionen auslösen, die von einer Bedingung abhängen. Der »Wenn mache«-Block benötigt einen logischen Wert als Eingabewert. Falls die Bedingung in »Wenn« erfüllt (wahr) ist, wird der eingefügte Block (oder die Blöcke) ausgeführt. Bei einem verschachtelten »Wenn mache« Block, also wenn eine weitere Unterscheidung eingefügt wurde, wird zuerst die erste »Wenn« Bedingung abgefragt und, falls diese nicht erfüllt ist (Bedingung = falsch), wird die zweite »oder wenn« Bedingung geprüft. Auch diese zweite Bedingung benötigt wieder einen logischen Wert als Eingabewert.
+Die Bedingungen können beliebig durch Anklicken des »+« Plus-Symbols erweitert und durch das »-« Minus-Symbol wieder bis auf eine einzige Bedingung reduziert werden.
+Einstellmöglichkeiten und Eingabewerte: +
+Mit dem Block »Wenn mache sonst« kannst du gezielt Aktionen auslösen, die von - einer Bedingung abhängen. Der »Wenn mache sonst«-Block benötigt hierfür einen logischen Wert als - Eingabewert. Falls die Bedingung erfüllt (wahr) ist, wird der dort eingefügte Block (oder die Blöcke) - ausgeführt, ansonsten (Bedingung nicht erfüllt = falsch) wird der Block (bzw. die Blöcke), der bei - »sonst« eingefügt wurde, ausgeführt. Bei einem verschachtelten »Wenn mache sonst« Block, also wenn eine - weitere Unterscheidung dazugefügt wurde, wird zuerst die erste »Wenn« Bedingung abgefragt und, falls - diese nicht erfüllt ist, wird die zweite »oder wenn« Bedingung geprüft. Auch diese zweite Bedingung - benötigt wieder einen logischen Wert als Eingabewert. Nur wenn beide Bedingungen nicht erfüllt sind, - wird der Block ausgeführt, der bei »sonst« eingefügt wurde.
-Die Bedingungen können beliebig durch anklicken des »+« Plus-Symbols erweitert - und durch das »-« Minus-Symbol wieder bis auf eine einzige Bedingung reduziert werden.
-Einstellmöglichkeiten und Eingabewerte: -
-Mit dem Block »Wenn mache sonst« kannst du gezielt Aktionen auslösen, die von einer Bedingung abhängen. Der »Wenn mache sonst«-Block benötigt hierfür einen logischen Wert als Eingabewert. Falls die Bedingung erfüllt (wahr) ist, wird der dort eingefügte Block (oder die Blöcke) ausgeführt, ansonsten (Bedingung nicht erfüllt = falsch) wird der Block (bzw. die Blöcke), der bei »sonst« eingefügt wurde, ausgeführt. Bei einem verschachtelten »Wenn mache sonst« Block, also wenn eine weitere Unterscheidung dazugefügt wurde, wird zuerst die erste »Wenn« Bedingung abgefragt und, falls diese nicht erfüllt ist, wird die zweite »oder wenn« Bedingung geprüft. Auch diese zweite Bedingung benötigt wieder einen logischen Wert als Eingabewert. Nur wenn beide Bedingungen nicht erfüllt sind, wird der Block ausgeführt, der bei »sonst« eingefügt wurde.
+Die Bedingungen können beliebig durch anklicken des »+« Plus-Symbols erweitert und durch das »-« Minus-Symbol wieder bis auf eine einzige Bedingung reduziert werden.
+Einstellmöglichkeiten und Eingabewerte: +
+Mit dem Block »Wiederhole unendlich oft« kannst du Blöcke endlos von deinem - Roboter ausführen lassen. Alle Blöcke, die sich im »Wiederhole unendlich oft«-Block befinden, werden - immer wieder ausgeführt. Die Blöcke werden dabei von oben nach unten ausgeführt. Sobald der letzte Block - ausgeführt wurde, beginnt das Programm wieder mit dem ersten Block. Deshalb wird dieser Block auch - »Endlosschleife« genannt.
-Eingaben: -
-Mit dem Block »Wiederhole unendlich oft« kannst du Blöcke endlos von deinem Roboter ausführen lassen. Alle Blöcke, die sich im »Wiederhole unendlich oft«-Block befinden, werden immer wieder ausgeführt. Die Blöcke werden dabei von oben nach unten ausgeführt. Sobald der letzte Block ausgeführt wurde, beginnt das Programm wieder mit dem ersten Block. Deshalb wird dieser Block auch »Endlosschleife« genannt.
+Eingaben: +
+Mit dem Block »Wiederhole n mal« kannst du andere Blöcke beliebig oft von - deinem Roboter ausführen lassen. Alle Blöcke, die sich im Block »Wiederhole n mal« befinden, werden so - oft ausgeführt, wie im Eingabefeld eingestellt ist. Die Blöcke werden dabei von oben nach unten - ausgeführt. Sobald der letzte Block ausgeführt wurde, beginnt das Programm wieder mit dem ersten Block, - bis die eingestellte Wiederholungszahl erreicht ist. Deshalb wird dieser Block auch »Schleife« genannt. -
-Nur ganzzahlige Werte können eingegeben werden.
-Mit dem Block »Wiederhole n mal« kannst du andere Blöcke beliebig oft von deinem Roboter ausführen lassen. Alle Blöcke, die sich im Block »Wiederhole n mal« befinden, werden so oft ausgeführt, wie im Eingabefeld eingestellt ist. Die Blöcke werden dabei von oben nach unten ausgeführt. Sobald der letzte Block ausgeführt wurde, beginnt das Programm wieder mit dem ersten Block, bis die eingestellte Wiederholungszahl erreicht ist. Deshalb wird dieser Block auch »Schleife« genannt.
+Nur ganzzahlige Werte können eingegeben werden.
Einstellmöglichkeiten und Eingabewerte: +
Einstellmöglichkeiten und Eingabewerte:
-Mit dem Block »Wiederhole solange/bis« kannst du andere Blöcke beliebig oft von - deinem Roboter ausführen lassen. Alle Blöcke, die sich im Block »Wiederhole solange/bis« befinden, - werden immer wieder ausgeführt, solange bzw. bis die Bedingung im Eingabefeld erfüllt ist. Die Blöcke - werden dabei von oben nach unten ausgeführt. Sobald der letzte Block ausgeführt wurde, beginnt das - Programm wieder mit dem ersten Block, solange bzw. bis die Bedingung im Eingabefeld erfüllt ist. Deshalb - wird dieser Block auch »bedingte Schleife« genannt.
-Einstellmöglichkeiten und Eingabewerte: -
-Mit dem Block »Wiederhole solange/bis« kannst du andere Blöcke beliebig oft von deinem Roboter ausführen lassen. Alle Blöcke, die sich im Block »Wiederhole solange/bis« befinden, werden immer wieder ausgeführt, solange bzw. bis die Bedingung im Eingabefeld erfüllt ist. Die Blöcke werden dabei von oben nach unten ausgeführt. Sobald der letzte Block ausgeführt wurde, beginnt das Programm wieder mit dem ersten Block, solange bzw. bis die Bedingung im Eingabefeld erfüllt ist. Deshalb wird dieser Block auch »bedingte Schleife« genannt.
+Einstellmöglichkeiten und Eingabewerte: +
+Mit dem Block »Für Wert aus der Liste« werden nacheinander alle Werte einer - Liste an eine Variable übergeben und können dann in der so genannten Schleife verarbeitet werden. Mit - jedem Schleifendurchlauf wird das nächste Element aus der Liste geholt, bis die Liste vollständig - abgearbeitet ist. Der Wert des Listenelements wird an die Variable Element gebunden und kann in den - enthaltenen Blöcken verwendet werden.
-Einstellmöglichkeiten und Eingabewerte: -
-Mit dem Block »Für Wert aus der Liste« werden nacheinander alle Werte einer Liste an eine Variable übergeben und können dann in der so genannten Schleife verarbeitet werden. Mit jedem Schleifendurchlauf wird das nächste Element aus der Liste geholt, bis die Liste vollständig abgearbeitet ist. Der Wert des Listenelements wird an die Variable Element gebunden und kann in den enthaltenen Blöcken verwendet werden.
+Einstellmöglichkeiten und Eingabewerte: +
+Mit dem Block »Zähle von bis« kannst du andere Blöcke mehrfach von deinem - Roboter ausführen lassen. Alle Blöcke, die sich im Block »Zähle von bis« befinden, werden so oft - ausgeführt, bis die Zählung im Eingabefeld abgearbeitet ist. Die Blöcke werden dabei von oben nach unten - ausgeführt. Sobald der letzte Block ausgeführt wurde, beginnt das Programm wieder mit dem ersten Block, - solange die Zählbedingung im Eingabefeld erfüllt ist, d.h. der Endwert der Zählung noch nicht erreicht - ist. Die Werte der Zählung werden jeweils an die Zählvariable gebunden, deren Name frei eingestellt - werden kann. Der Wert der Zählvariablen kann in den Blöcken der Schleife verwendet werden. Der letzte - Eingabewert gibt an, in welcher Schrittweite gezählt wird.
-Einstellmöglichkeiten und Eingabewerte: -
-Mit dem Block »Zähle von bis« kannst du andere Blöcke mehrfach von deinem Roboter ausführen lassen. Alle Blöcke, die sich im Block »Zähle von bis« befinden, werden so oft ausgeführt, bis die Zählung im Eingabefeld abgearbeitet ist. Die Blöcke werden dabei von oben nach unten ausgeführt. Sobald der letzte Block ausgeführt wurde, beginnt das Programm wieder mit dem ersten Block, solange die Zählbedingung im Eingabefeld erfüllt ist, d.h. der Endwert der Zählung noch nicht erreicht ist. Die Werte der Zählung werden jeweils an die Zählvariable gebunden, deren Name frei eingestellt werden kann. Der Wert der Zählvariablen kann in den Blöcken der Schleife verwendet werden. Der letzte Eingabewert gibt an, in welcher Schrittweite gezählt wird.
+Einstellmöglichkeiten und Eingabewerte: +
+Mit dem Block »Die Schleife abbrechen/mit der nächsten Iteration der Schleife - fortfahren« kann eine Schleife vorzeitig beendet bzw. wieder zum Anfang der Schleife gesprungen werden. - Sobald dieser Block in einer Reihe von Blöcken erscheint, werden alle nachfolgenden Blöcke bis zum Ende - der Schleife ignoriert.
-Einstellmöglichkeiten: -
-Mit dem Block »Die Schleife abbrechen/mit der nächsten Iteration der Schleife fortfahren« kann eine Schleife vorzeitig beendet bzw. wieder zum Anfang der Schleife gesprungen werden. Sobald dieser Block in einer Reihe von Blöcken erscheint, werden alle nachfolgenden Blöcke bis zum Ende der Schleife ignoriert.
+Einstellmöglichkeiten: +
+Mit dem Block »Warte bis« kannst du dein Programm an der Stelle »anhalten«, an - der du den »Warte bis«-Block eingefügt hast. Dein Programm wartet dann so lange, bis die Bedingung - erfüllt (wahr) ist. Den »Warte bis«-Block kannst du mit dem »+«-Zeichen um zusätzliche Bedingungen - erweitern. Dein Programm wartet dann solange, bis (mindestens) eine der Bedingungen deines »Warte - bis«-Blocks erfüllt ist.
-Einstelmöglichkeiten und Eingabewert: -
-Mit dem Block »Warte bis« kannst du dein Programm an der Stelle »anhalten«, an der du den »Warte bis«-Block eingefügt hast. Dein Programm wartet dann so lange, bis die Bedingung erfüllt (wahr) ist. Den »Warte bis«-Block kannst du mit dem »+«-Zeichen um zusätzliche Bedingungen erweitern. Dein Programm wartet dann solange, bis (mindestens) eine der Bedingungen deines »Warte bis«-Blocks erfüllt ist.
+Einstelmöglichkeiten und Eingabewert: +
+Mit dem Block »Warte« kannst du dein Programm an der Stelle "anhalten", an der - du den Block eingefügt hast. Dein Programm bleibt dann für die angegebene Dauer an dieser Stelle stehen. - Nach Ablauf der angegebenen Zeit wird dann der nachfolgende Block ausgeführt. Beispielsweise kannst du - dadurch einen Text in dem Display deines Roboters exakt für diese Zeit anzeigen lassen.
-Einstellmöglichkeiten: +
Mit dem Block »Warte« kannst du dein Programm an der Stelle "anhalten", an der du den Block eingefügt hast. Dein Programm bleibt dann für die angegebene Dauer an dieser Stelle stehen. Nach Ablauf der angegebenen Zeit wird dann der nachfolgende Block ausgeführt. Beispielsweise kannst du dadurch einen Text in dem Display deines Roboters exakt für diese Zeit anzeigen lassen.
+Einstellmöglichkeiten:
-Mit dem Block »Warte bis« kannst du dein Programm an der Stelle »anhalten«, an - der du den »Warte bis«-Block eingefügt hast. Dein Programm wartet dann so lange, bis die Bedingung - erfüllt (wahr) ist. Den »Warte bis«-Block kannst du mit dem »+«-Zeichen um zusätzliche Bedingungen - erweitern. Dein Programm wartet dann solange, bis (mindestens) eine der Bedingungen deines »Warte - bis«-Blocks erfüllt ist.
-Einstelmöglichkeiten und Eingabewert: -
-Mit dem Block »Warte bis« kannst du dein Programm an der Stelle »anhalten«, an der du den »Warte bis«-Block eingefügt hast. Dein Programm wartet dann so lange, bis die Bedingung erfüllt (wahr) ist. Den »Warte bis«-Block kannst du mit dem »+«-Zeichen um zusätzliche Bedingungen erweitern. Dein Programm wartet dann solange, bis (mindestens) eine der Bedingungen deines »Warte bis«-Blocks erfüllt ist.
+Einstelmöglichkeiten und Eingabewert: +
+Mit dem Block »Vergleiche« kannst du verschiedene Eingabewerte (Zahl, Farbe, - logischer Wert, Text) gleichen Typs miteinander vergleichen. Stimmt der Vergleich, wird der logische - Wert »wahr« zurückgegeben, sonst »falsch«.
-Einstellmöglichkeiten und Eingabewerte: -
-Rückgabewert: +
Mit dem Block »Vergleiche« kannst du verschiedene Eingabewerte (Zahl, Farbe, logischer Wert, Text) gleichen Typs miteinander vergleichen. Stimmt der Vergleich, wird der logische Wert »wahr« zurückgegeben, sonst »falsch«.
+Einstellmöglichkeiten und Eingabewerte:
-Mit dem Block »und/oder« kannst du logische Werte zueinander in Beziehung - setzen. Der »und/oder« Block liefert bei der Einstellung »und« nur dann den logischen Wert »wahr«, wenn - beide Eingabewerte des Blocks gleichzeitig »wahr« sind. Bei der Einstellung »oder« genügt es, wenn einer - der beiden Eingabewerte »wahr« ist, damit der »und/oder« Block als logischen Wert »wahr« liefert.
-Einstellmöglichkeiten und Eingabewerte: -
-Rückgabewert: -
-Mit dem Block »nicht« kannst du einen logischen Wert umkehren. Der logische - Wert ergibt sich aus der logischen Umkehrung des Eingabewertes, aus »wahr« wird »falsch« und umgekehrt. +
Rückgabewert:
-Eingabewert: +
Mit dem Block »und/oder« kannst du logische Werte zueinander in Beziehung setzen. Der »und/oder« Block liefert bei der Einstellung »und« nur dann den logischen Wert »wahr«, wenn beide Eingabewerte des Blocks gleichzeitig »wahr« sind. Bei der Einstellung »oder« genügt es, wenn einer der beiden Eingabewerte »wahr« ist, damit der »und/oder« Block als logischen Wert »wahr« liefert.
+Einstellmöglichkeiten und Eingabewerte: +
+Rückgabewert:
-Rückgabewert:
+
Mit dem Block »nicht« kannst du einen logischen Wert umkehren. Der logische Wert ergibt sich aus der logischen Umkehrung des Eingabewertes, aus »wahr« wird »falsch« und umgekehrt.
+Eingabewert: +
+Rückgabewert:
-Mit dem Block »wahr/falsch« kannst du entweder den logischen Wert »wahr« oder - »falsch« an einen anderen Block übermitteln.
-Einstellmöglichkeiten: -
-Rückgabewert:
+
Mit dem Block »wahr/falsch« kannst du entweder den logischen Wert »wahr« oder »falsch« an einen anderen Block übermitteln.
+Einstellmöglichkeiten:
-Der Block »null« ist ein Platzhalter für eine Eingabe, die noch unbestimmt ist. - Wenn z.B. eine neue Verbindungsvariable für die Kommunikation erzeugt wird und noch nicht belegt ist, - wird der Anfangswert auf »null« gesetzt.
-Rückgabewert: +
Rückgabewert:
-Mit dem Block »teste« kannst du einen Test durchführen und je nach Ergebnis - unterschiedliche Ergebnisse zurückgeben.
-Eingabewerte: -
-Der Block »null« ist ein Platzhalter für eine Eingabe, die noch unbestimmt ist. Wenn z.B. eine neue Verbindungsvariable für die Kommunikation erzeugt wird und noch nicht belegt ist, wird der Anfangswert auf »null« gesetzt.
+Rückgabewert: +
+Rückgabewert: -
-Mit dem Block »Wert« kannst du Zahlen an einen anderen Block übermitteln.
-Eingabewert: +
Mit dem Block »teste« kannst du einen Test durchführen und je nach Ergebnis unterschiedliche Ergebnisse zurückgeben.
+Eingabewerte:
-Rückgabewert: +
Rückgabewert:
-Mit dem Block »Rechnen« kannst du Zahlen addieren, subtrahieren, - multiplizieren, dividieren oder potenzieren. Dieser Block ist nur in Verbindung mit einem anderen Block - nutzbar, der eine Zahl als Eingabewert benötigt.
-Einstellmöglichkeiten und Eingabewerte: -
-Rückgabewert:
+
Mit dem Block »Wert« kannst du Zahlen an einen anderen Block übermitteln.
+Eingabewert:
-Mit dem Block »Mathematische Funktionen« können einige elementare mathematische - Funktionen berechnet werden.
-Einstellmöglichkeiten und Eingabewert: -
-Rückgabewert: +
Rückgabewert:
-Mit dem Block »Trigonometrische Funktionen« können Sinus, Cosinus, Tangens und - die zugehörigen Umkehrfunktionen berechnet werden. Die Eingabewerte werden im Bogenmaß erwartet (siehe - Hinweis oben).
-Einstellmöglichkeiten und Eingabewert: -
-Rückgabewert:
+
Mit dem Block »Rechnen« kannst du Zahlen addieren, subtrahieren, multiplizieren, dividieren oder potenzieren. Dieser Block ist nur in Verbindung mit einem anderen Block nutzbar, der eine Zahl als Eingabewert benötigt.
+Einstellmöglichkeiten und Eingabewerte: +
+Rückgabewert:
-Der Block »Konstanten« stellt einige mathematische Konstanten bereit. »π« - (3,1415...), »e« (2,718...), »φ« (1,618...), »sqrt(2)« (1,414...), »sqrt(½)« (0,7071...), »∞«.
-Einstellmöglichkeiten: +
Mit dem Block »Mathematische Funktionen« können einige elementare mathematische Funktionen berechnet werden.
+Einstellmöglichkeiten und Eingabewert: +
+Rückgabewert:
-Rückgabewert:
+
Mit dem Block »Trigonometrische Funktionen« können Sinus, Cosinus, Tangens und die zugehörigen Umkehrfunktionen berechnet werden. Die Eingabewerte werden im Bogenmaß erwartet (siehe Hinweis oben).
+Einstellmöglichkeiten und Eingabewert: +
+Rückgabewert:
-Mit dem Block »Zahleneigenschaft« wird geprüft, ob eine eingegebene Zahl eine - bestimmte Eigenschaft aufweist. »gerade«, »ungerade«, »ist Primzahl«, »ganze Zahl«, »positiv«, - »negativ«, »teilbar durch«.
-Einstellmöglichkeiten und Eingabewert: -
-Rückgabewert:
+
Der Block »Konstanten« stellt einige mathematische Konstanten bereit. »π« (3,1415...), »e« (2,718...), »φ« (1,618...), »sqrt(2)« (1,414...), »sqrt(½)« (0,7071...), »∞«.
+Einstellmöglichkeiten: +
+Rückgabewert:
-Mit dem Block »Erhöhe um x« wird der Wert einer numerischen Variable um einen - Betrag erhöht.
-Eingabewerte: +
Mit dem Block »Zahleneigenschaft« wird geprüft, ob eine eingegebene Zahl eine bestimmte Eigenschaft aufweist. »gerade«, »ungerade«, »ist Primzahl«, »ganze Zahl«, »positiv«, »negativ«, »teilbar durch«.
+Einstellmöglichkeiten und Eingabewert: +
+Rückgabewert:
-Mit dem Block »Erhöhe um x« wird der Wert einer numerischen Variable um einen Betrag erhöht.
+Eingabewerte: +
+Mit dem Block »runden« können Werte gerundet werden. Beim Runden werden die - Nachkommastellen auf 0 gesetzt. Es wird je nach Größe der Nachkommastellen automatisch auf- oder - abgerundet. Man kann jedoch auch einstellen, dass stets auf- bzw. stets abgerundet werden soll.
-Einstellmöglichkeiten und Eingabewert: -
-Mit dem Block »runden« können Werte gerundet werden. Beim Runden werden die Nachkommastellen auf 0 gesetzt. Es wird je nach Größe der Nachkommastellen automatisch auf- oder abgerundet. Man kann jedoch auch einstellen, dass stets auf- bzw. stets abgerundet werden soll.
+Einstellmöglichkeiten und Eingabewert: +
+Rückgabewert: +
Rückgabewert:
-Mit dem Block »Liste auswerten« können verschiedene Analysen einer Liste - vorgenommen werden:
-Mit dem Block »Liste auswerten« können verschiedene Analysen einer Liste vorgenommen werden:
+Einstellmöglichkeiten und Eingabewert:
-Rückgabewert: -
-Der Block »Rest von« führt eine Division durch und liefert den Rest der - Division, der nicht mehr durch den Divisor geteilt werden konnte.
-Eingabewerte: +
Rückgabewert:
-Rückgabewert:
+
Der Block »Rest von« führt eine Division durch und liefert den Rest der Division, der nicht mehr durch den Divisor geteilt werden konnte.
+Eingabewerte: +
+Rückgabewert:
-Der Block »Begrenze« sorgt dafür, dass Grenzwerte nicht überschritten werden. - Er erfordert drei Eingabewerte:
-Der Block »Begrenze« sorgt dafür, dass Grenzwerte nicht überschritten werden. Er erfordert drei Eingabewerte:
+Der Rückgabewert ist
-Der Rückgabewert ist
+Eingabewerte: +
Eingabewerte:
-Rückgabewert: +
Rückgabewert: +
+Mit dem Block »Ganzzahlige Zufallswerte« können ganzzahlige Zufallswerte innerhalb selbst gewählter Grenzen erzeugt werden.
+Eingabewerte: +
+Rückgabewert: +
+Mit dem Block »Zufallszahl« wird eine Zufallszahl zwischen 0,0 und 1,0 bestimmt.
+Rückgabewert:
-Mit dem Block »Ganzzahlige Zufallswerte« können ganzzahlige Zufallswerte - innerhalb selbst gewählter Grenzen erzeugt werden.
-Eingabewerte: +
Dieser Block wandelt eine Zahl in eine Zeichenkette um, die diese Zahl enthält. Als Beispiel wird die Zahl 123 in die Zeichenkette »123« umgewandelt.
+Optionen und Eingabewerte:
-Rückgabewert: + Rückgabewerte: +
Dieser Block wandelt eine einzelne Zahl den dazugehörigen ASCII-Buchstaben um. Falls es zu dieser Zahl kein dazugehöriges ASCII-Zeichen gibt, wird eine leere Zeichenkette weitergegeben. So wird z.B. die Zahl 97 in den Buchstaben »a« umgewandelt. +
+Optionen und Eingabewerte:
-Mit diesem Block führst du eine Berechnungsschritt deines Neuronalen Netzwerks aus. Bevor du diesen Block verwendest, solltest du die Werte der Eingabe-Neuronen mit dem Block »Schreibe Wert Eingabe-Neuron ...« setzen. + Die Eingabe-Werte werden in das Netzwerk gegeben und die Werte der Ausgabe-Neuronen werden anhand des Netzes aus dem Tab »Neuronales Netz« berechnet. Eine detaillierte Beschreibung des Neuronalen Netzwerks findest du hier. Die Werte der Ausgabe-Neuronen kannst du nach der Berechnung mit dem Block »gib Wert Ausgabe-Neuron ...« abfragen. +
Mit diesem Block kannst du den Wert eines Eingabeneurons setzen. Du kannst als Eingabewert entweder Variablen, Zahlen, Sensordaten oder mathematische Operationen verwenden, z.B. die Summe von zwei Zahlen.
+Optionen und Eingabewerte: +
+Mit dem Block »Zufallszahl« wird eine Zufallszahl zwischen 0,0 und 1,0 - bestimmt.
-Rückgabewert: +
Mit diesem Block kannst du den Wert eines Ausgabe-Neurons abfragen. Du solltest diesen Block erst nach dem Block »Mache einen NN Schritt« verwenden, da sonst noch kein Wert für die Ausgabeneuronen berechnet worden ist.
+Optionen: +
+Rückgabewert:
-Dieser Block wandelt eine Zahl in eine Zeichenkette um, die diese - Zahl enthält. Als Beispiel wird die Zahl 123 in die Zeichenkette »123« umgewandelt. -
-Optionen und Eingabewerte: -
-Rückgabewerte: -
-Mit diesem Block kannst du das Gewicht einer Verbindung zwischen zwei Neuronen setzen, die direkt miteinander verbunden sind.
+Optionen und Eingabewerte: +
+Dieser Block wandelt eine einzelne Zahl den dazugehörigen - ASCII-Buchstaben um. Falls es zu dieser Zahl kein dazugehöriges ASCII-Zeichen gibt, wird eine leere - Zeichenkette weitergegeben. So wird z.B. die Zahl 97 in den Buchstaben »a« umgewandelt.
-Optionen und Eingabewerte: -
-Rückgabewerte: -
-Mit diesem Block kannst du den Bias eines Neurons setzen.
+Optionen und Eingabewerte: +
+Mit dem einfachen »Text«-Block wird ein Stück Text bereitgestellt.
-Eingabewert: +
Mit diesem Block kannst du den aktuellen Wert des Gewichts einer Verbindung zwischen zwei Neuronen abfragen, die direkt miteinander verbunden sind.
+Optionen:
-Rückgabewert: +
Rückgabewert:
-Dokumentiere dein Programm mit diesem Block, damit du und andere es später - leichter haben, dein Programm zu verstehen. Dieser Kommentar wird auch im generierten Source Code zu - sehen sein.
-Eingabewert: +
Mit diesem Block kannst du den Bias eines Neurons abfragen.
+Optionen:
-Rückgabewert: +
+Mit dem »Erstelle Text«-Block wird ein Stück Text aus verschiedenen - Eingabewerten zusammengesetzt. Mit dem +-Zeichen können weitere Eingabemöglichkeiten geschaffen werden. - Alle Eingaben werden zu einer kontinuierlichen Zeichenkette zusammengefügt.
-Eingabewerte: -
-Mit dem einfachen »Text«-Block wird ein Stück Text bereitgestellt.
+Eingabewert: +
+Rückgabewert: +
Rückgabewert:
-Mit dem »Text anhängen«-Block können Zeichenketten erweitert werden, z.B. indem - an empfangene Nachrichten eine Signatur angehängt wird.
-Eingabemöglichkeiten: +
Dokumentiere dein Programm mit diesem Block, damit du und andere es später leichter haben, dein Programm zu verstehen. Dieser Kommentar wird auch im generierten Source Code zu sehen sein.
+Eingabewert:
-Dieser Block wandelt eine Zeichenkette in eine Zahl um, falls - dies möglich ist. Wenn eine Zeichenkette also nur Zahlen enthält, kann dieser Block die Zeichenkette - in eine Zahl umwandeln. Wenn der Block keine Zahlen enthält, gibt dieser Block »NaN« in der - Simulation des Open Roberta Labs weiter, kann aber auch ein anderes Verhalten aufweisen, welches von - der verwendeten Programmiersprache des Roboters abhängt. Falls die Zeichenkette zwar mit Zahlen beginnt, aber danach - weitere Zeichen enthält, die keine Zahlen sind, gibt dieser Block nur die Zahlen weiter und stoppt, - sobald das erste Zeichen in der Zeichenkette steht. Also als Beispiel macht dieser Block aus der - Zeichenkette »52abcd« die Zahl 52.
-Optionen und Eingabewerte: -
-Rückgabewerte: -
-Dieser Block wandelt einen Buchstaben oder ein Zeichen aus einer - Zeichenkette in die dazugehörige ASCII-Nummer um. Jedes Zeichen hat dabei eine dazugehörige Nummer - in der ASCII-Tabelle. So wird z.B. ein kleines »a« in die Zahl 97 umgewandelt.
-Optionen und Eingabewerte: -
-Rückgabewerte: -
-Der Block »Erzeuge eine leere Liste« erzeugt eine Liste ohne Inhalt. Der Block »Liste« erzeugt eine Liste - mit einigen voreingestellten Werten. Mit + und - können weitere Listenelemente am Ende hinzugefügt bzw. - entfernt werden. Wenn das letzte Element einer Liste entfernt wurde, liegt eine leere Liste vor.
-Einstellmöglichkeiten: +
Mit dem »Erstelle Text«-Block wird ein Stück Text aus verschiedenen Eingabewerten zusammengesetzt. Mit dem +-Zeichen können weitere Eingabemöglichkeiten geschaffen werden. Alle Eingaben werden zu einer kontinuierlichen Zeichenkette zusammengefügt.
+Eingabewerte:
-Rückgabewert: +
Rückgabewert: +
+Mit dem »werte ... als ...«-Block wird ein als Text eingegebener Ausdruck ("expression") ausgewertet und das Ergebnis zurückgegeben. Der Ausdruck kann z.B. "sqrt(a^2 + b^2)" sein. Er wird zu einer Zahl ausgewertet. Der Block ist sehr leistungsstark: nahezu alle Ausdrücke, die mit Blockly-Blöcken erzeugt werden können, lassen sich auch als Text schreiben.
+Wie der Ausdruck aufgebaut werden kann, ist auf einer eigenen Wiki-Seite beschrieben. Bitte beachten: es gibt allgemeine Ausdrücke, die für jeden Roboter gültig sind, und spezifische Teile, die nur für den jeweils ausgewählten Roboter gelten. Das muss so sein, weil jeder Roboter eigene Sensoren und Aktoren unterstützt. Das ist detailliert auf der Wiki-Seite beschrieben. +
+Der Benutzer muss in einem Drop-Down angeben, welchen Typ für das Ergebnis erwartet wird. Welche Typen möglich sind, hängt vom jeweils ausgewählten Roboter ab.
+Eingabewerte: +
+Optionen:
-Mit dem »Text anhängen«-Block können Zeichenketten erweitert werden, z.B. indem an empfangene Nachrichten eine Signatur angehängt wird.
+Eingabemöglichkeiten: +
+Der Block »Wiederhole Element in Liste« erzeugt eine Liste mit gleichen Elementen.
+Dieser Block wandelt eine Zeichenkette in eine Zahl um, falls dies möglich ist. Wenn eine Zeichenkette also nur Zahlen enthält, kann dieser Block die Zeichenkette in eine Zahl umwandeln. Wenn der Block keine Zahlen enthält, gibt dieser Block »NaN« in der Simulation des Open Roberta Labs weiter, kann aber auch ein anderes Verhalten aufweisen, welches von der verwendeten Programmiersprache des Roboters abhängt. Falls die Zeichenkette zwar mit Zahlen beginnt, aber danach weitere Zeichen enthält, die keine Zahlen sind, gibt dieser Block nur die Zahlen weiter und stoppt, sobald das erste Zeichen in der Zeichenkette steht. Also als Beispiel macht dieser Block aus der Zeichenkette »52abcd« die Zahl 52. +
+Optionen und Eingabewerte: +
+Dieser Block wandelt einen Buchstaben oder ein Zeichen aus einer Zeichenkette in die dazugehörige ASCII-Nummer um. Jedes Zeichen hat dabei eine dazugehörige Nummer in der ASCII-Tabelle. So wird z.B. ein kleines »a« in die Zahl 97 umgewandelt. +
+Optionen und Eingabewerte: +
+Der Block »Erzeuge eine leere Liste« erzeugt eine Liste ohne Inhalt. Der Block »Liste« erzeugt eine Liste mit einigen voreingestellten Werten. Mit + und - können weitere Listenelemente am Ende hinzugefügt bzw. entfernt werden. Wenn das letzte Element einer Liste entfernt wurde, liegt eine leere Liste vor.
Einstellmöglichkeiten:
-Rückgabewert: +
Der Block »Wiederhole Element in Liste« erzeugt eine Liste mit gleichen Elementen.
+Einstellmöglichkeiten:
-Der Block »Länge« gibt als Wert die Länge einer Liste zurück, die als Eingabewert angegeben wird. Eine - leere Liste hat die Länge 0.
+Der Block »Länge« gibt als Wert die Länge einer Liste zurück, die als Eingabewert angegeben wird. Eine leere Liste hat die Länge 0.
Eingabewert
-Rückgabewert: -
-Eine als Eingabewert gegebene Liste wird geprüft, ob sie leer ist.
Eingabewert
-Rückgabewert: -
-Eine Liste wird durchsucht, ob ein Element darin enthalten ist. Wenn das Element enthalten ist, wird die - Listenposition zurückgegeben. Wenn das Element nicht enthalten ist, ist das Ergebnis -1.
+Eine Liste wird durchsucht, ob ein Element darin enthalten ist. Wenn das Element enthalten ist, wird die Listenposition zurückgegeben. Wenn das Element nicht enthalten ist, ist das Ergebnis -1.
Einstellmöglichkeiten:
-Rückgabewert: -
-Zahl, die Position, an der das Element in der Liste steht.
-Beachte: Die Zählung der Listenpositionen beginnt bei 0.
-Mit diesem Block wird auf ein Element einer Liste zugegriffen. Das Element wird gegebenenfalls verändert. -
-Es wird eine Liste als Eingabe übergeben. Danach wird per Drop-Down-Liste spezifiziert, was mit dem - Listenelement geschehen soll. Anschließend wird angegeben, in welcher Richtung die Liste durchsucht - werden soll, ob von vorn (links), von hinten (rechts) oder zufällig.
+Zahl, die Position, an der das Element in der Liste steht.
+Beachte: Die Zählung der Listenpositionen beginnt bei 0.
Mit diesem Block wird auf ein Element einer Liste zugegriffen. Das Element wird gegebenenfalls verändert.
+Es wird eine Liste als Eingabe übergeben. Danach wird per Drop-Down-Liste spezifiziert, was mit dem Listenelement geschehen soll. Anschließend wird angegeben, in welcher Richtung die Liste durchsucht werden soll, ob von vorn (links), von hinten (rechts) oder zufällig.
Einstellmöglichkeiten und Eingabewerte
-Zahl, Listenposition. Dieser Eingabewert entfällt, wenn zuvor »erste«, »letzte« oder »zufälliges« - als Position bestimmt wurde.
-Beachte: Die Zählung der Listenpositionen beginnt bei 0.
+Zahl, Listenposition. Dieser Eingabewert entfällt, wenn zuvor »erste«, »letzte« oder »zufälliges« als Position bestimmt wurde.
+Beachte: Die Zählung der Listenpositionen beginnt bei 0.
Rückgabewert: -
-In einer als Eingabewert übergebenen Liste wird ein näher spezifiziertes Element durch einen neuen Wert - ersetzt bzw. es wird ein Wert eingefügt.
+ +In einer als Eingabewert übergebenen Liste wird ein näher spezifiziertes Element durch einen neuen Wert ersetzt bzw. es wird ein Wert eingefügt.
Einstellmöglichkeiten und Eingabewerte:
-Aus einer als Eingabewert übergebenen Liste wird eine Unterliste erzeugt. In der Unterliste sind alle - Elemente enthalten, die den weiteren Spezifikationen dieses Blocks entsprechen.
+Aus einer als Eingabewert übergebenen Liste wird eine Unterliste erzeugt. In der Unterliste sind alle Elemente enthalten, die den weiteren Spezifikationen dieses Blocks entsprechen.
Einstellmöglichkeiten und Eingabewerte:
-Rückgabewert: -
-Mit diesem Block kannst du eine Farbe aus einer Auswahl von vordefinierten Farben auswählen.
Option:
-Rückgabewert: +
Rückgabewert:
-Mit diesem Block kannst du eine Farbe aus einer Auswahl von vordefinierten Farben auswählen.
Option:
-Rückgabewert: +
Rückgabewert:
-Mit diesem Block kannst du eine Farbe aus einer Auswahl von vordefinierten Farben auswählen.
Option:
-Rückgabewert: +
Rückgabewert:
-Mit diesem Block kannst du dir eine eigene Farbe erstellen, indem du deine Farbe aus Rot, Grün und Blau - mischst.
-Eingabewerte: -
-Rückgabewert: -
-Mit diesem Block kannst du dir eine eigene Farbe erstellen, indem du deine Farbe aus Rot, Grün und Blau - mischst.
+Mit diesem Block kannst du dir eine eigene Farbe erstellen, indem du deine Farbe aus Rot, Grün und Blau mischst.
Eingabewerte:
-Rückgabewert: -
-Mit diesem Block kannst du dir eine eigene Farbe erstellen, indem du deine Farbe aus Rot, Grün und Blau - mischst.
+Roboter erkennen den genauen Farbton oft nicht Präzise. Durch die Lichtverhältnisse kann so eine Farbe als zu dunkel oder zu hell wahrgenommen werden. Dieser Block ermöglicht die Einstellung eines Toleranzbereichs für die zu erkennende Farbe, damit beispielsweise jeder Rotton als Rot erkannt wird.
Eingabewerte:
-Rückgabewert: -
-Mit dem Block »Schreibe Variable« kannst du den Wert einer Variablen verändern. Je nach Typ der Variablen - (Zahl, Zeichenkette, logischer Wert, Liste, Farbe, Verbindung) kann der Variablen ein passender Wert - übergeben werden.
+Mit dem Block »Schreibe Variable« kannst du den Wert einer Variablen verändern. Je nach Typ der Variablen (Zahl, Zeichenkette, logischer Wert, Liste, Farbe, Verbindung) kann der Variablen ein passender Wert übergeben werden.
Einstellmöglichkeit und Eingabewert:
-Mit dem Block »lies Variable« kannst du den Wert einer Variablen an einen anderen Block übergeben. Der - Typ des Ausgabewertes entspricht immer dem Typ, mit dem die Variablen im Block »Start« initialisiert - wurde.
+Mit dem Block »lies Variable« kannst du den Wert einer Variablen an einen anderen Block übergeben. Der Typ des Ausgabewertes entspricht immer dem Typ, mit dem die Variablen im Block »Start« initialisiert wurde.
Einstellmöglichkeit:
-Rückgabewert: -
-In einem Funktionsblock ohne/mit Eingabe- und Rückgabewert wird eine Folge von Anweisungen - zusammengefasst. Die Eingabewerte werden durch die lokalen Variablen im Funktionsblock festgelegt. Mit - dem »+«-Zeichen können lokale Variablen als Eingabewerte für den Funktionsblock erzeugt werden. Lokale - Variablen werden nicht initialisiert.
-Falls in einen Funktionsblock eine Wenn-Abfrage (siehe unten) eingebaut wird, kann es zu einem - vorzeitigen Abbruch der Funktion kommen.
-Der Funktionsblock steht nach seiner Definition als zusätzlicher Block in der Kategorie »Funktion« zur - Verfügung. Auf diese Weise kann die Lesbarkeit komplexer Programme wesentlich vereinfacht werden.
+In einem Funktionsblock ohne/mit Eingabe- und Rückgabewert wird eine Folge von Anweisungen zusammengefasst. Die Eingabewerte werden durch die lokalen Variablen im Funktionsblock festgelegt. Mit dem »+«-Zeichen können lokale Variablen als Eingabewerte für den Funktionsblock erzeugt werden. Lokale Variablen werden nicht initialisiert.
+Falls in einen Funktionsblock eine Wenn-Abfrage (siehe unten) eingebaut wird, kann es zu einem vorzeitigen Abbruch der Funktion kommen.
+Der Funktionsblock steht nach seiner Definition als zusätzlicher Block in der Kategorie »Funktion« zur Verfügung. Auf diese Weise kann die Lesbarkeit komplexer Programme wesentlich vereinfacht werden.
Einstellmöglichkeiten:
-In einem Funktionsblock ohne/mit Eingabe- und mit Rückgabewert wird eine Folge von Anweisungen - zusammengefasst. Mit dem »+«-Zeichen können lokale Variablen als Eingabewerte für den Funktionsblock - erzeugt werden. Nachdem alle Anweisungen durchlaufen wurden, wird abschließend ein Wert als - Funktionswert zurückgegeben.
-Falls in einen Funktionsblock eine Wenn-Abfrage eingebaut wird, kann es zu einem vorzeitigen Abbruch der - Funktion kommen, und es kann ein alternativer Funktionswert zurückgegeben werden.
-Der Funktionsblock steht nach seiner Definition als zusätzlicher Block in der Kategorie »Funktion« zur - Verfügung. Auf diese Weise kann die Lesbarkeit komplexer Programme wesentlich vereinfacht werden.
+In einem Funktionsblock ohne/mit Eingabe- und mit Rückgabewert wird eine Folge von Anweisungen zusammengefasst. Mit dem »+«-Zeichen können lokale Variablen als Eingabewerte für den Funktionsblock erzeugt werden. Nachdem alle Anweisungen durchlaufen wurden, wird abschließend ein Wert als Funktionswert zurückgegeben.
+Falls in einen Funktionsblock eine Wenn-Abfrage eingebaut wird, kann es zu einem vorzeitigen Abbruch der Funktion kommen, und es kann ein alternativer Funktionswert zurückgegeben werden.
+Der Funktionsblock steht nach seiner Definition als zusätzlicher Block in der Kategorie »Funktion« zur Verfügung. Auf diese Weise kann die Lesbarkeit komplexer Programme wesentlich vereinfacht werden.
Einstellmöglichkeiten:
-Rückgabewert: -
-Die Wenn-Abfrage innerhalb einer Funktion ist von besonderer Bedeutung. Sobald der Funktionsablauf auf - eine Wenn-Abfrage trifft, wird die Gültigkeit der Bedingung geprüft.
-Die Wenn-Abfrage innerhalb einer Funktion ist von besonderer Bedeutung. Sobald der Funktionsablauf auf eine Wenn-Abfrage trifft, wird die Gültigkeit der Bedingung geprüft.
+Einstellgabewerte:
-Rückgabewert: -
-Mit diesem Block kannst du eine vorher definierte Funktion aufrufen. Diese Funktion gibt dabei keinen - Wert zurück.
+Mit diesem Block kannst du eine vorher definierte Funktion aufrufen. Diese Funktion gibt dabei keinen Wert zurück.
Eingabewerte:
-Mit diesem Block kannst du eine vorher definierte Funktion aufrufen und den Rückgabewerte abrufen.
Eingabewerte:
-Rückgabewerte: -
-Der Verbindungsaufbau wird von einem EV3-Roboter initiiert, wie z.B. ein Telefonanruf von einem Anrufer. - Dazu muss bekannt sein, wie der Kommunikationspartner heißt.
-Die Verbindung zwischen zwei EV3-Robotern wird in einer globalen Variablen vom Typ "Verbindung" - gespeichert. Solange diese globale Verbindungsvariable gültig ist, "steht" die Nachrichtenverbindung. - Achte darauf, dass die Roboter unterschiedliche Namen haben.
+Der Verbindungsaufbau wird von einem EV3-Roboter initiiert, wie z.B. ein Telefonanruf von einem Anrufer. Dazu muss bekannt sein, wie der Kommunikationspartner heißt.
+Die Verbindung zwischen zwei EV3-Robotern wird in einer globalen Variablen vom Typ "Verbindung" gespeichert. Solange diese globale Verbindungsvariable gültig ist, "steht" die Nachrichtenverbindung. Achte darauf, dass die Roboter unterschiedliche Namen haben.
Schritt 1: Erzeuge eine globale Variable vom Typ "Verbindung".
-Schritt 2: Füge einen Verbindungsblock an. Gib als Eingabewert den Namen des EV3-Roboters ein, mit dem - die Nachrichtenverbingung aufgebaut werden soll.
-Beim Kommunikationspartner wird die Verbindungsvariable automatisch über den Experten-Block "Warte auf - Verbindung" gesetzt. Die Verbindungsvariable wird gesetzt, wenn der rufende EV3-Roboter den Block - "Verbinde mit Robotername" ausgeführt hat.
+Schritt 2: Füge einen Verbindungsblock an. Gib als Eingabewert den Namen des EV3-Roboters ein, mit dem die Nachrichtenverbingung aufgebaut werden soll.
+Beim Kommunikationspartner wird die Verbindungsvariable automatisch über den Experten-Block "Warte auf Verbindung" gesetzt. Die Verbindungsvariable wird gesetzt, wenn der rufende EV3-Roboter den Block "Verbinde mit Robotername" ausgeführt hat.
Eingabewert:
-Rückgabewert: -
-Eine Nachricht wird über eine globale Verbindungsvariable übermittelt. Die Nachricht wird über einen - Block eingegeben, der dem Nachrichtentyp entspricht (gegenwärtig: Zeichenkette). Damit der Roboter weiß, - über welche Verbindung die Kommunikation stattfindet, wird der Wert der globalen Verbindungsvariablen - gelesen.
-Es können gegenwärtig nur Textnachrichten via Bluetooth verschickt werden.
-Eine Nachricht wird über eine globale Verbindungsvariable übermittelt. Die Nachricht wird über einen Block eingegeben, der dem Nachrichtentyp entspricht (gegenwärtig: Zeichenkette). Damit der Roboter weiß, über welche Verbindung die Kommunikation stattfindet, wird der Wert der globalen Verbindungsvariablen gelesen.
+Es können gegenwärtig nur Textnachrichten via Bluetooth verschickt werden.
Einstellmöglichkeiten und Eingabewerte:
-Eine Textnachricht wird über eine globale Verbindungsvariable übermittelt. Die Textnachricht wird an - einen Textblock übergeben. Damit der EV3-Roboter weiß, über welche Verbindung die Kommunikation - stattfindet, wird der Wert der globalen Verbindungsvariablen gelesen.
+Eine Textnachricht wird über eine globale Verbindungsvariable übermittelt. Die Textnachricht wird an einen Textblock übergeben. Damit der EV3-Roboter weiß, über welche Verbindung die Kommunikation stattfindet, wird der Wert der globalen Verbindungsvariablen gelesen.
Einstellmöglichkeiten und Eingabewert:
-Rückgabewert: -
-Der Verbindungsaufbau wird von einem EV3-Roboter initiiert, wie z.B. ein Telefonanruf von einem Anrufer. - Ein angerufener Roboter wartet auf eine Verbindung.
-Die Verbindung zwischen zwei EV3-Robotern wird in einer globalen Variablen vom Typ "Verbindung" - gespeichert. Solange diese globale Verbindungsvariable gültig ist, "steht" die Nachrichtenverbindung. -
+Der Verbindungsaufbau wird von einem EV3-Roboter initiiert, wie z.B. ein Telefonanruf von einem Anrufer. Ein angerufener Roboter wartet auf eine Verbindung.
+Die Verbindung zwischen zwei EV3-Robotern wird in einer globalen Variablen vom Typ "Verbindung" gespeichert. Solange diese globale Verbindungsvariable gültig ist, "steht" die Nachrichtenverbindung.
Schritt 1: Erzeuge eine globale Variable vom Typ "Verbindung".
-Schritt 2: Als Wert der globalen Verbindungsvariablen wird auf den Wert des Experten-Blocks "Warte auf - Verbindung" gesetzt.
-Die Verbindungsvariable wird dann gesetzt, wenn der rufende EV3-Roboter die Verbindung aufgerufen hat - (siehe oben: Verbinde mit Robotername).
+Schritt 2: Als Wert der globalen Verbindungsvariablen wird auf den Wert des Experten-Blocks "Warte auf Verbindung" gesetzt.
+Die Verbindungsvariable wird dann gesetzt, wenn der rufende EV3-Roboter die Verbindung aufgerufen hat (siehe oben: Verbinde mit Robotername).
Rückgabewert:
-Each program starts with the red »Program start« block.
-This block is always available in the Open Roberta Lab and cannot be deleted. The little triangle below - the start block is called »sequence connector«. The first block you want to use will be connected by - using the »sequence connector« at the start block. The sequence connector color changes to yellow when a - suitable block comes into its range.
+This block is always available in the Open Roberta Lab and cannot be deleted. The little triangle below the start block is called »sequence connector«. The first block you want to use will be connected by using the »sequence connector« at the start block. The sequence connector color changes to yellow when a suitable block comes into its range.
Settings:
-If global variables have been created: -
-With the »motor port ... on« block you can program the speed (velocity) of the selected motor. Your robot - starts the selected motor, until it is stopped or another block specifies new moving parameters.
+If global variables have been created: +
+With the »motor port ... on« block you can program the speed (velocity) of the selected motor. Your robot starts the selected motor, until it is stopped or another block specifies new moving parameters.
Options and Arguments:
-With the »motor port ... rotation« block you can program the speed (velocity) of the selected motor. Your - robot starts the selected motor and rotates the motor until the specified number of rotations or degrees - is done.
+With the »motor port ... rotation« block you can program the speed (velocity) of the selected motor. Your robot starts the selected motor and rotates the motor until the specified number of rotations or degrees is done.
Options and Arguments:
-The block »get speed motor port - « reads the speed (velocity) of the selected motor. The motor can have a speed from -100 - (rotating backwards) to 100.
+The block »get speed motor port « reads the speed (velocity) of the selected motor. The motor can have a speed from -100 (rotating backwards) to 100. +
Options and Arguments:
-Return value:
-The block »set motor port ... speed« sets the speed (velocity) of one selected motor to a new - value.
+The block »set motor port ... speed« sets the speed (velocity) of one selected motor to a new value.
Options and Arguments:
-Using the block »stop motor port « switches off one selected motor. You can - decide the motor to run out slowly (float) or to break immediately
+Using the block »stop motor port « switches off one selected motor. You can decide the motor to run out slowly (float) or to break immediately +
Setting options:
-With the »drive« block you can program the direction and also the speed (velocity) of your robot. - Your robot moves until it is stopped or another block specifies new driving parameters. The - driving speed can be set in the field »speed«.
+ Your robot moves until it is stopped or another block specifies new driving parameters. The driving speed can be set in the field »speed«. +Options and Arguments:
-With the »drive distance« block you can program the direction and the speed of the robot. The speed of - your robot is set in the »speed« parameter. Once the block has been executed the motors stop - automatically.
-»drive distance« controls both motors of the robot at the same time, meaning that the settings you make - here apply to both motors of the robot. If the robot's actions don't correspond with the block's - settings when running the program, check the robot configuration settings, especially the wheel diameter - and the track width.
+With the »drive distance« block you can program the direction and the speed of the robot. The speed of your robot is set in the »speed« parameter. Once the block has been executed the motors stop automatically.
+»drive distance« controls both motors of the robot at the same time, meaning that the settings you make here apply to both motors of the robot. If the robot's actions don't correspond with the block's settings when running the program, check the robot configuration settings, especially the wheel diameter and the track width.
Settings and input values:
-The »stop« block stops the motors immediately.
-Settings: none
-With the »turn« block you set the direction (right/left) which the robot will turn. Your robot turns - until it is stopped or another block is used for driving. You can set the speed in the block parameter - field »speed«.
-»turn« controls both motors of the robot at the same time, therefore the robot turns on the spot. If the - EV3 Robot's actions don't correspond with the block's settings when running the program, check the EV3 - robot configuration settings, especially the wheel diameter and the track width.
+Settings: none
With the »turn« block you set the direction (right/left) which the robot will turn. Your robot turns until it is stopped or another block is used for driving. You can set the speed in the block parameter field »speed«.
+»turn« controls both motors of the robot at the same time, therefore the robot turns on the spot. If the EV3 Robot's actions don't correspond with the block's settings when running the program, check the EV3 robot configuration settings, especially the wheel diameter and the track width.
Settings and input values:
-If your robot turns into the wrong direction, then the motors are connected to the wrong ports. - Just swap the ports and your robot will turn into the right way.
+If your robot turns into the wrong direction, then the motors are connected to the wrong ports. Just swap the ports and your robot will turn into the right way.
With the »turn degree« block you program the direction (right/left) that your robot will turn. In - addition to the direction you can also program the »degrees«, allowing you to program how many degrees - your robot should rotate (around its axis). This means that you do a complete rotation by setting a 360 - degree turn..
-The »turn degree« block controls both motors of the robot in such a way that the robot turns around its - own axis. If the robot's actions don't correspond with the block's settings when running the program, - check the EV3 robot configuration settings, especially the wheel diameter and the track width.
+With the »turn degree« block you program the direction (right/left) that your robot will turn. In addition to the direction you can also program the »degrees«, allowing you to program how many degrees your robot should rotate (around its axis). This means that you do a complete rotation by setting a 360 degree turn..
+The »turn degree« block controls both motors of the robot in such a way that the robot turns around its own axis. If the robot's actions don't correspond with the block's settings when running the program, check the EV3 robot configuration settings, especially the wheel diameter and the track width.
Settings and input values:
-The block »steer ... speed left ... speed right ...« programs the robot to - drive a curve by setting different speeds for the left and right motor. The robot configuration - influences the radius of the curve depending from wheel distance and wheel diameter. The turning - direction will define the driving direction.
-Settings and input values: -
-The block »steer ... speed left ... speed right ... distance ...« programs the - robot to drive a curve by setting different speeds for the left and right motor and also a distance - related to the middle between both wheels. The robot configuration influences the radius of the curve - depending from wheel distance and wheel diameter. The turning direction will define the driving - direction.
-Settings and input values: -
-With the »show text« block you can display text and numbers on the display of your robot. You can also - specify in which column and row the text or numbers should be displayed on the robot screen.
+The block »steer ... speed left ... speed right ...« programs the robot to drive a curve by setting different speeds for the left and right motor. The robot configuration influences the radius of the curve depending from wheel distance and wheel diameter. The turning direction will define the driving direction.
+Settings and input values: +
+The block »steer ... speed left ... speed right ... distance ...« programs the robot to drive a curve by setting different speeds for the left and right motor and also a distance related to the middle between both wheels. The robot configuration influences the radius of the curve depending from wheel distance and wheel diameter. The turning direction will define the driving direction.
+Settings and input values: +
+With the »show text« block you can display text and numbers on the display of your robot. You can also specify in which column and row the text or numbers should be displayed on the robot screen.
The EV3 display contains some rows and columns, counted from 0 in the top left corner.
-If there was text on the display prior to the show text block then the former text will be overwritten. -
+If there was text on the display prior to the show text block then the former text will be overwritten.
Input values:
-With the »show picture« block you can show one of some stored pictures on the EV3 display of your robot. - Avaliable pictures are »glasses«, »eyes open«, »eyes closed«, »flowers«, »tacho«.
+With the »show picture« block you can show one of some stored pictures on the EV3 display of your robot. Avaliable pictures are »glasses«, »eyes open«, »eyes closed«, »flowers«, »tacho«.
Settings and input values:
-With the »clear display« block you can delete text and numbers on the display of your robot, therefore - nothing appears on your display.
-Settings: none
-With the »play frequency« block you can program the frequency (pitch level) and the time (how long the - sound should be played) that a sound is played. The sound is played by the built-in speaker of your LEGO - MINDSTORMS EV3 brick for a defined of time. The frequency setting corresponds directly to the frequency - in Hertz, for example, setting the frequency to 400 corresponds to 400 Hertz. Example: 261 = C.
-Note that the human ear can perceive frequencies from about 30Hz to about 15,000Hz (15kHz). - This can vary depending on the person and their age.
-With the »clear display« block you can delete text and numbers on the display of your robot, therefore nothing appears on your display.
+Settings: none
With the »play frequency« block you can program the frequency (pitch level) and the time (how long the sound should be played) that a sound is played. The sound is played by the built-in speaker of your LEGO MINDSTORMS EV3 brick for a defined of time. The frequency setting corresponds directly to the frequency in Hertz, for example, setting the frequency to 400 corresponds to 400 Hertz. Example: 261 = C.
++ Note that the human ear can perceive frequencies from about 30Hz to about 15,000Hz (15kHz). This can vary depending on the person and their age. +
Settings:
-With this block you can make a robot play a note.
Options:
-With the »play file« block your robot plays one of five stored sounds.
Settings:
-With the »set volume« block you can program the sound volume played. The volume ranges from 0 (no sound) - to 100 (full volume). The volume setting remains unchanged until you change it with another »set volume« - block.
+With the »set volume« block you can program the sound volume played. The volume ranges from 0 (no sound) to 100 (full volume). The volume setting remains unchanged until you change it with another »set volume« block.
Setting:
-With the »get volume« block you can read the currend sound volume level.
Return value:
-With this block you can control the language of your robot. If you are using C4EV3 as your robot system, - you will need to download additional files for the speech. You can find instructions here.
+With this block you can control the language of your robot. If you are using C4EV3 as your robot system, you will need to download additional files for the speech. You can find instructions + here.
Options:
-With this block you can control the voice output of your robot. The robot uses the language you set with - the "Set Language..." block. The default language is German.
+With this block you can control the voice output of your robot. The robot uses the language you set with the "Set Language..." block. The default language is German.
Input values:
-With this block you can control the voice output of your robot. You can also control your robot's voice - pitch and speaking speed.
+With this block you can control the voice output of your robot. You can also control your robot's voice pitch and speaking speed.
Input values:
-With the »brick light« block you can program the background light of the EV3 buttons. In addition to - color, you can also turn on and off the EV3 brick light. The EV3 brick light stays on until you - reprogram it. The following colors are available: »green«, »orange« or »red«.
+With the »brick light« block you can program the background light of the EV3 buttons. In addition to color, you can also turn on and off the EV3 brick light. The EV3 brick light stays on until you reprogram it. The following colors are available: »green«, »orange« or »red«.
Settings:
-With the »brick light off« block you can turn off the brick light.
-With the »brick light off« block you can turn off the brick light.
With the »reset EV3 brick light« block you can reset EV3 brick light back to the default settings.
-Settings: none
-With the block »touch sensor« you can "tell" another block whether the touch sensor is pressed or not. - This block returns the logical values true = pressed or false = not pressed. This - block can only be used in conjunction with another block which requires a logical value as an input - parameter, for example together with the »if then« block.
+Settings: none
With the block »touch sensor« you can "tell" another block whether the touch sensor is pressed or not. This block returns the logical values + true = pressed or + false = not pressed. This block can only be used in conjunction with another block which requires a logical value as an input parameter, for example together with the »if then« block. +
Settings:
-Return value:
-With the block »get distance/presence« you "tell" another block the distance the ultrasonic sensor - measures. The distance is transmitted as a number (in cm). In addition, this block can be set to - "presence" in the drop down menu. This setting can check whether another ultrasonic sensor is active. - This setting specifies the logical values true = another ultrasonic sensor is present or - false = no other ultrasonic is present back.
-Ultrasound, which was not sent by the own ultrasonic sensor, can result in erroneous - measurements.
-With the block »get distance/presence« you "tell" another block the distance the ultrasonic sensor measures. The distance is transmitted as a number (in cm). In addition, this block can be set to "presence" in the drop down menu. This setting can check whether another ultrasonic sensor is active. This setting specifies the logical values + true = another ultrasonic sensor is present or false = no other ultrasonic is present back.
+Ultrasound, which was not sent by the own ultrasonic sensor, can result in erroneous measurements.
Settings:
-Return value:
-If »presence« was selected, a boolean value: »true«, if another ultrasonic sensor was detected, - otherwise »false«.
-If »distance« was selected, a number, indicating the distance between the ultrasonic sensor and - an obstacle in cm.
-If »presence« was selected, a boolean value: »true«, if another ultrasonic sensor was detected, otherwise »false«.
+If »distance« was selected, a number, indicating the distance between the ultrasonic sensor and an obstacle in cm.
With the block »get colour« you can "tell" another block which color the light sensor measures. The color - is transmitted as type »colour« . In addition, this block provides within the drop down menu the - settings »light«, »RGB« and »ambient light«. These three additional settings transmit all the same type - »number«. The numerical values are between 0 (black) to 100(white). With these various settings this - block can be configured according to the specific requirements.
-In mode »colour« the light sensor emits light and detects the basic colour under the sensor. Values for - basic colours are BLACK, WHITE, RED, GREEN, BLUE, YELLOW, BROWN. The colour GREY means, that the - registered colour doesn't match any of the predefined ones.
-In mode »light« the light sensor emits light with its red LED and measures the light intensity of the - reflected light on a scale of 0 to 100.
-In the mode »RGB« the light sensor emits red, green and blue light and measures the reflected light - corresponding to the components red, green and blue on a scale from 0 to 100 for each color. A list of - three numbers is returned.
-In mode »ambient light« the same scale (0-100) as in the mode light is used. Here, the ambient light - inciding the sensor is measured.
+With the block »get colour« you can "tell" another block which color the light sensor measures. The color is transmitted as type »colour« . In addition, this block provides within the drop down menu the settings »light«, »RGB« and »ambient light«. These three additional settings transmit all the same type »number«. The numerical values are between 0 (black) to 100(white). With these various settings this block can be configured according to the specific requirements.
+In mode »colour« the light sensor emits light and detects the basic colour under the sensor. Values for basic colours are BLACK, WHITE, RED, GREEN, BLUE, YELLOW, BROWN. The colour GREY means, that the registered colour doesn't match any of the predefined ones.
+In mode »light« the light sensor emits light with its red LED and measures the light intensity of the reflected light on a scale of 0 to 100.
+In the mode »RGB« the light sensor emits red, green and blue light and measures the reflected light corresponding to the components red, green and blue on a scale from 0 to 100 for each color. A list of three numbers is returned.
+In mode »ambient light« the same scale (0-100) as in the mode light is used. Here, the ambient light inciding the sensor is measured.
Settings:
-Return value:
-With the block »give distance/presence« for infrared sensor you can "tell" another block which distance - the infrared sensor measures.
-Working in the "distance" mode the distance is transmitted as a number with values between 0 (very close) - and 100 (far away). In this mode the sensor detects objects in a distance up to 70 cm.
-In addition, this block can be set to "presence" mode in the drop down menu. With this setting you can - check whether an infrared sender/beacon is active. This setting returns a list of 4 pairs of values, - i.e. 8 numbers. Each pair of values indicates an orientation value and a - distance value of the infrared sender. The first pair of values is related to channel 1 - of the sender, the second pair to channel 2 etc. Orientation values are between -25 and +25. The value - of 0 indikates that the infrared signal comes directly from the front. Values out of the -25/+25 range - represent angles of 110° to the left or right, respectively. The distance value of the sender is a - relative value between 0 (very close) and 100 (far away). Infrared signals may be detected from a - maximum distance of 200 cm.
-Example: Result of an infrared sensor measure is [ 0 0 -10 40 0 0 0 0 ]. This means that - on channel 2 the direction of the sender/beacon gives a value of -10, which is about 60 degrees to the - left, while the distance value of 35 has been found, which represents nearly 70 cm.
-An exact measurement of distances in cm is not possible with the infrared sonsor.
-With the block »give distance/presence« for infrared sensor you can "tell" another block which distance the infrared sensor measures.
+Working in the "distance" mode the distance is transmitted as a number with values between 0 (very close) and 100 (far away). In this mode the sensor detects objects in a distance up to 70 cm.
+In addition, this block can be set to "presence" mode in the drop down menu. With this setting you can check whether an infrared sender/beacon is active. This setting returns a list of 4 pairs of values, i.e. 8 numbers. Each pair of values indicates an + orientation value and a + distance value of the infrared sender. The first pair of values is related to channel 1 of the sender, the second pair to channel 2 etc. Orientation values are between -25 and +25. The value of 0 indikates that the infrared signal comes directly from the front. Values out of the -25/+25 range represent angles of 110° to the left or right, respectively. The distance value of the sender is a relative value between 0 (very close) and 100 (far away). Infrared signals may be detected from a maximum distance of 200 cm. +
++ Example: Result of an infrared sensor measure is [ 0 0 -10 40 0 0 0 0 ]. This means that on channel 2 the direction of the sender/beacon gives a value of -10, which is about 60 degrees to the left, while the distance value of 35 has been found, which represents nearly 70 cm. +
+An exact measurement of distances in cm is not possible with the infrared sonsor.
Settins:
-Return value:
-»Distance« mode: number indicating the distance in cm, maximalum distance is 70 cm.
-»Presence« mode: list of numbers.
-»Distance« mode: number indicating the distance in cm, maximalum distance is 70 cm.
+»Presence« mode: list of numbers.
With the block »reset encoder« the internal sensor (motor encoder) of a motor can be reset to 0 .
Setting:
-With the block »get rotation/degree« you can "tell" another block the rotation of the motor. The distance - is transmitted as a number (in cm). In addition, this block can be set to »degree« in the drop down - menu. With this setting the number of degrees is transmitted instead of cm. This block can only be used - in conjunction with another block, which requires a number as an input parameter.
+With the block »get rotation/degree« you can "tell" another block the rotation of the motor. The distance is transmitted as a number (in cm). In addition, this block can be set to »degree« in the drop down menu. With this setting the number of degrees is transmitted instead of cm. This block can only be used in conjunction with another block, which requires a number as an input parameter.
Settings:
-Return value:
-With the block »button« you can "tell" another block whether the selected button is pressed or not. - Available buttons are »enter« / »up« / »down« / »left« / »right« / »escape« / »any«. This block returns - logical values true = pressed or false = not pressed.
+With the block »button« you can "tell" another block whether the selected button is pressed or not. Available buttons are »enter« / »up« / »down« / »left« / »right« / »escape« / »any«. This block returns logical values + true = pressed or false = not pressed.
Settings:
-Return value
-With the block »reset gyroscope« the gyroscope (also called gyro sensor) can be reset to 0.
Settings:
-With the block »get angle/rate gyroscope« you can "tell" another block the angle in which the gyro sensor - was rotated around its vertical axis. The angle is transmitted as a number. Alternatively the return - value can be set to »rate« in the drop down menu. This setting allows to send the rotation rate of the - sensor in "degrees per second" instead of the angle.
-In mode »rate« a maximum of 440 degrees/second can be captured. In mode »angle« the accuracy of - the gyro sensor is +/- 3 degrees.
-With the block »get angle/rate gyroscope« you can "tell" another block the angle in which the gyro sensor was rotated around its vertical axis. The angle is transmitted as a number. Alternatively the return value can be set to »rate« in the drop down menu. This setting allows to send the rotation rate of the sensor in "degrees per second" instead of the angle.
+In mode »rate« a maximum of 440 degrees/second can be captured. In mode »angle« the accuracy of the gyro sensor is +/- 3 degrees.
Settings:
-Return value:
-With the block »get value« you can "tell" another block the current time in milliseconds of the internal - timer. 5 timers are available.
+With the block »get value« you can "tell" another block the current time in milliseconds of the internal timer. 5 timers are available.
Setting:
-Return value:
-With the block »reset timer« the internal timer (1 to 5) can be reset to the value 0.
Setting:
-This block allows you to query the volume that the sound sensor measures.
Options:
-Return value:
-Use this block to recalibrate a connected HT compass sensor. This sensor measures the earth's magnetic - field and calculates a current orientation of your robot from its course. In order for this calculation - to be as accurate as possible, you must recalibrate the compass sensor at the beginning of your program - to reduce disturbing influences such as motors.
+Use this block to recalibrate a connected HT compass sensor. This sensor measures the earth's magnetic field and calculates a current orientation of your robot from its course. In order for this calculation to be as accurate as possible, you must recalibrate the compass sensor at the beginning of your program to reduce disturbing influences such as motors.
Options:
-With this block you can request different values of the compass sensor. The compass sensor can measure - the angle and compass orientation of your robot. However, you should recalibrate the sensor before using - it in your program.
+With this block you can request different values of the compass sensor. The compass sensor can measure the angle and compass orientation of your robot. However, you should recalibrate the sensor before using it in your program.
Options:
-Return value: +
Return value:
-With this block you can poll the HT infrared sensor of your robot. This sensor sends and receives - infrared signals and can calculate the distance to an object.
+With this block you can poll the HT infrared sensor of your robot. This sensor sends and receives infrared signals and can calculate the distance to an object.
Options:
-Return value:
-With this block you can query the HT color sensor of your robot. This sensor uses several light emitting - diodes to illuminate the background and then measures which color is reflected how much. From these - values you can calculate colors and RGB values. The sensor can also measure the brightness of the - background and the environment.
+With this block you can query the HT color sensor of your robot. This sensor uses several light emitting diodes to illuminate the background and then measures which color is reflected how much. From these values you can calculate colors and RGB values. The sensor can also measure the brightness of the background and the environment.
Options:
-Return value:
-Colour, the colour of the underground.
+Colour, the colour of the underground.
Number, the brightness of the underground or surroundings.
-List of numbers, splitting the color of the background into red, green and blue.
-With the block »if do« you can selectively trigger actions to be executed by your robot. The »if do« - block therefore requires a logical value as an input parameter, the condition. Only if the condition of - the »if« statement is true, the inserted block will be executed. In a nested »if do« block, if a further - distinction was added, the first »if« condition is queried. If it is not fulfilled (condition = false), - the second »else if« condition will be checked. Also this second condition requires a logical value as - an input parameter.
-The conditions may arbitrarily be expanded by clicking the "+" plus symbol. The "-" minus symbol reduces - the block.
+List of numbers, splitting the color of the background into red, green and blue.
+ +With the block »if do« you can selectively trigger actions to be executed by your robot. The »if do« block therefore requires a logical value as an input parameter, the condition. Only if the condition of the »if« statement is true, the inserted block will be executed. In a nested »if do« block, if a further distinction was added, the first »if« condition is queried. If it is not fulfilled (condition = false), the second »else if« condition will be checked. Also this second condition requires a logical value as an input parameter.
+The conditions may arbitrarily be expanded by clicking the "+" plus symbol. The "-" minus symbol reduces the block.
Settings and input values:
-With the block »if do else« you can selectively trigger actions which are executed by your robot. The »if - do then« block therefore requires a logical value as an input parameter. If the condition in »if« is - true the inserted block will be executed, otherwise (condition is not fulfilled = false) the block - connected to the »else« statement will be executed. In a nested »if do else« block with further - distinctions added, the first »if« condition is queried. If it is not true, the second condition »else - if« is checked. Also the second condition requires a logical value as an input parameter. Only when both - conditions are not true, the block which is inserted at the »else« statement will be executed.
-The conditions may arbitrarily be expanded by clicking the "+" plus symbol. The "-" minus symbol reduces - the block.
+With the block »if do else« you can selectively trigger actions which are executed by your robot. The »if do then« block therefore requires a logical value as an input parameter. If the condition in »if« is true the inserted block will be executed, otherwise (condition is not fulfilled = false) the block connected to the »else« statement will be executed. In a nested »if do else« block with further distinctions added, the first »if« condition is queried. If it is not true, the second condition »else if« is checked. Also the second condition requires a logical value as an input parameter. Only when both conditions are not true, the block which is inserted at the »else« statement will be executed.
+The conditions may arbitrarily be expanded by clicking the "+" plus symbol. The "-" minus symbol reduces the block.
Settings:
-With the block »repeat indefinitely« you can endlessly run the blocks on your robot. All blocks which are - within the »repeat indefinitely« block will be executed endlessly. The blocks are applied sequentially - from top to bottom. Once the last block has been executed, the program repeats with the first block - again. Therefore, this block is also called »loop«.
+With the block »repeat indefinitely« you can endlessly run the blocks on your robot. All blocks which are within the »repeat indefinitely« block will be executed endlessly. The blocks are applied sequentially from top to bottom. Once the last block has been executed, the program repeats with the first block again. Therefore, this block is also called »loop«.
Input:
-With the block »repeat« you can run other block as many times as you like. All blocks in the »repeat« - block will be executed as often as defined in the entry field. The blocks are applied sequentially from - top to bottom. Once the last block has been executed, the program repeats with the first block again. - Therefore, this block is also called »loop«.
-Only integer values can be entered.
-With the block »repeat« you can run other block as many times as you like. All blocks in the »repeat« block will be executed as often as defined in the entry field. The blocks are applied sequentially from top to bottom. Once the last block has been executed, the program repeats with the first block again. Therefore, this block is also called »loop«.
+Only integer values can be entered.
Settings and input:
-With the block »wait« you can "pause" your program at the point where you inserted the »wait« block. Your - program will then remain for the specified duration at this point. After the specified time the next - block will be executed. For example you can display text in the screen of your robot for exactly the - time you specified in the »wait« block.
+With the block »wait« you can "pause" your program at the point where you inserted the »wait« block. Your program will then remain for the specified duration at this point. After the specified time the next block will be executed. For example you can display text in the screen of your robot for exactly the time you specified in the »wait« block.
Settings and input values:
-With the block »wait until« you can "stop" your program at the point you insert the »wait until« block. - Your program then waits until the condition is true. The »wait until« block you can extended by click on - "+" symbol. Your program then waits until (at least) one of the condition of your »wait until« block is - true.
+With the block »wait until« you can "stop" your program at the point you insert the »wait until« block. Your program then waits until the condition is true. The »wait until« block you can extended by click on "+" symbol. Your program then waits until (at least) one of the condition of your »wait until« block is true.
Settings:
-With the block »wait until« you can "stop" your program at the point you insert the »wait until« block. - Your program then waits until the condition is true. The »wait until« block you can extended by click on - "+" symbol. Your program then waits until (at least) one of the condition of your »wait until« block is - true.
+With the block »wait until« you can "stop" your program at the point you insert the »wait until« block. Your program then waits until the condition is true. The »wait until« block you can extended by click on "+" symbol. Your program then waits until (at least) one of the condition of your »wait until« block is true.
Settings:
-With the block »break out/continue with next iteration of loop« a loop can be terminated ahead of - schedule. As soon as the block is entered within a sequence of blocks, all further blocks up to the end - of the loop will be ignored.
+With the block »break out/continue with next iteration of loop« a loop can be terminated ahead of schedule. As soon as the block is entered within a sequence of blocks, all further blocks up to the end of the loop will be ignored.
Settings:
-With the block »count with from to« you can run other block as many times as you like. All blocks in the - »count with from to« block will be executed as long as the counting is in progress. The blocks are - applied sequentially from top to bottom. Once the last block has been executed, the program repeats with - the first block again if the counting is in progress. The last parameter declares the step width for - counting.
+With the block »count with from to« you can run other block as many times as you like. All blocks in the »count with from to« block will be executed as long as the counting is in progress. The blocks are applied sequentially from top to bottom. Once the last block has been executed, the program repeats with the first block again if the counting is in progress. The last parameter declares the step width for counting.
Settings:
-With the block »for each item in list« all list items will successively be bound to a variable. The - variable can be used within the loop. With each loop cycle the next item of the list will be bound until - all list elements have been processed.
+With the block »for each item in list« all list items will successively be bound to a variable. The variable can be used within the loop. With each loop cycle the next item of the list will be bound until all list elements have been processed.
Settings and input value:
-With the block »repeat while/until« you can run other block as many times as you like. All blocks in the - »repeat while/until« block will be executed as long as the condition in the entry field is true. The - blocks are applied sequentially from top to bottom. Once the last block has been executed, the program - repeats with the first block again if the condition is still true. Therefore, this block is also called - »conditional loop«.
+With the block »repeat while/until« you can run other block as many times as you like. All blocks in the »repeat while/until« block will be executed as long as the condition in the entry field is true. The blocks are applied sequentially from top to bottom. Once the last block has been executed, the program repeats with the first block again if the condition is still true. Therefore, this block is also called »conditional loop«.
Settings and input values:
-With the block »comparison« you can compare different parameters of the same type (number, color, logical - value, text). This block can only be used in conjunction with another block which requires a logical - value as an input parameter.
+With the block »comparison« you can compare different parameters of the same type (number, color, logical value, text). This block can only be used in conjunction with another block which requires a logical value as an input parameter.
Settings and input values:
-Return value: +
Return value:
-With the block »and/or« you can interrelate logical values with each other. The »and/or« block with the - setting "and" will be true only if both logical parameters are "'true"'. If the block has the setting - »or« it is sufficient if one of the two parameters is "true", so that the »and/or« block will return - true.
+With the block »and/or« you can interrelate logical values with each other. The »and/or« block with the setting "and" will be true only if both logical parameters are "'true"'. If the block has the setting »or« it is sufficient if one of the two parameters is "true", so that the »and/or« block will return true.
Settings:
-Return value:
-With the block »true/false« you can return either the logical value »true« or »false« to another block. -
+With the block »true/false« you can return either the logical value »true« or »false« to another block.
Settings:
-Return value:
-Using the »not« lets you invert a logical value and pass this value to another block.
Input value:
-Return value:
-Using the »test« block will perform a test and returns a value which depends on the test result.
Input values:
-Return value:
-The block »null« is a place holder for an input value that is not yet - specified. If for instance a new connection variable has been created and is not yet bound, the initial - value of this connection will be set to »null«.
-Return value:: +
The block »null« is a place holder for an input value that is not yet specified. If for instance a new connection variable has been created and is not yet bound, the initial value of this connection will be set to »null«.
+Return value::
-With the block »parameter« you can send numbers to another block.
Settings and input values:
-Return value: +
Return value:
-With the block »calculating« you can sum up, subtract, multiply, and divide numbers. This block can only - be used in conjunction with another block which requires a number as an input parameter.
+With the block »calculating« you can sum up, subtract, multiply, and divide numbers. This block can only be used in conjunction with another block which requires a number as an input parameter.
Settings and input values:
-Return value:
-With the block »mathematical function« some elementary mathematical functions may be calculated. - Available functions are »square root«, »absolute«, »invert« (multiply by -1), »ln« (natural logarithm), - »log10« (decadic logarithm), »e^« (exponential function), »10^« (base 10 exponent)
+With the block »mathematical function« some elementary mathematical functions may be calculated. Available functions are »square root«, »absolute«, »invert« (multiply by -1), »ln« (natural logarithm), »log10« (decadic logarithm), »e^« (exponential function), »10^« (base 10 exponent)
Settings and input value:
-Return value:
-With the block »trigonometric function« sine, cosine, tangent and their respective revers functions can - be calculated. Input values are expected in radian measure(see hint above).
+With the block »trigonometric function« sine, cosine, tangent and their respective revers functions can be calculated. Input values are expected in radian measure(see hint above).
Settings and input value:
-Return value:
-With the »constant« block some mathematical constant values are available: »π« (3,1415...), »e« - (2,718...), »φ« (1,618...), »sqrt(2)« (1,414...), »sqrt(½)« (0,7071...), »∞«
+With the »constant« block some mathematical constant values are available: »π« (3,1415...), »e« (2,718...), »φ« (1,618...), »sqrt(2)« (1,414...), »sqrt(½)« (0,7071...), »∞«
Settings:
-Return value:
-With the block »number property« you check whether a given number has a specific property: »even«, »odd«, - »prime«, »whole«, »positive«, »negative«, »divisible by«.
+With the block »number property« you check whether a given number has a specific property: »even«, »odd«, »prime«, »whole«, »positive«, »negative«, »divisible by«.
Settings and input values:
-Return value:
-The block »change by ... « increments a numerical variable by a defined value.
Settings and input values:
-With the block »round« values may be rounded. Rounding will set the decimal places to 0. It depends on - the value of the decimal places whether the block rounds up or down. You may also decide by settings to - always round up or down.
+With the block »round« values may be rounded. Rounding will set the decimal places to 0. It depends on the value of the decimal places whether the block rounds up or down. You may also decide by settings to always round up or down.
Settings and input value:
-Return value:
-With the block »list evaluation« you may analyse a list.
Modes for list evaluation:
-Settings and input value:
-Return value:
-The block »remainder of« calculates a divison and returns the remainder of the division.
Input values:
-Return value:
-The block »constrain« ensures that given boundaries will not be exceeded.
Input values:
-Return value:
-With the block »random integer« you may generate random integer numbers within defined limits
Input values:
-Return value:
-With the block »random fraction« a random value between 0.0 and 1.0 is calculated.
Return value:
-This block converts a number into a string containing that number. So for example the number 123 would be - converted into the string »123«.
+This block converts a number into a string containing that number. So for example the number 123 would be converted into the string »123«.
Options and input values:
Return value:
-This block converts a single number to the corresponding ASCII letter. If there is no associated ASCII - character for this number, an empty string is passed on. So for example the number 97 gets converted - into the lower-case letter »a«.
+This block converts a single number to the corresponding ASCII letter. If there is no associated ASCII character for this number, an empty string is passed on. So for example the number 97 gets converted into the lower-case letter »a«.
Options and input values:
-Return values:
-With this block you perform a calculation step of your neural network. Before you use this block, you should set the values of the input neurons with the block "set value input neuron ...". The input values are given into the network and the values of the output neurons are calculated using the network from the tab »Neural Network«. A detailed description of the neural network can be found + here. You can query the values of the output neurons after the calculation with the block »gett value output neuron ...«. +
With this block you can set the value of an input neuron. You can use either variables, numbers, sensor data or mathematical operations as input values, e.g. the sum of two numbers.
+Options and input values: +
+With this block you can query the value of an output neuron. You should only use this block after the block »make one NN step«, otherwise no value has been calculated for the output neurons and the value is defaulted to 0.
+Options: +
+Return value: +
+With this block you can set the weight of a connection between two neurons that are directly connected.
+Options and input values: +
+With this block you can set the bias of a neuron.
+Options and input values: +
+With this block you can query the current value of the weight of a connection between two neurons that are directly connected.
+Options: +
+Return value: +
+With this block you can query the bias of a neuron.
+Options: +
+Return value: +
+The simple »Text« block creates a little text.
Input value:
-Return value:
-Document your program with this block, so that you and others will find it easier to understand your - program later. This comment will also be visible in the generated source code.
+Document your program with this block, so that you and others will find it easier to understand your program later. This comment will also be visible in the generated source code.
Input value:
-The »create text« block compiles a text from different input parameters. Using the + sign will insert - further input slots. All input parameters will be connected one after the other. Essentially the »create - text« block converts an arbitrary input value into a text string.
+The »create text« block compiles a text from different input parameters. Using the + sign will insert further input slots. All input parameters will be connected one after the other. Essentially the »create text« block converts an arbitrary input value into a text string.
Input values:
-Return value:
-The »append text« block will append some string to a given string, for instance to extend a message with - a signature.
+The »value ... as ...« block evaluates an expression entered as text (”expression") and returns the result. The expression can be “sqrt(a^2 + b^2)”, for example. It is evaluated to a number. The block is very powerful: almost all expressions that can be generated with Blockly blocks can also be written as text.
+How the expression can be constructed is described on a separate wiki page. Please note: there are general expressions that are valid for every robot and specific parts that are only valid for the selected robot. This is necessary because each robot supports its own sensors and actuators. This is described in detail on the wiki page. +
+The user must specify in a drop-down menu which type is expected for the result. Which types are possible depends on the selected robot.
+Input value: +
+The »append text« block will append some string to a given string, for instance to extend a message with a signature.
Input values:
-This block converts a string into a number if this is possible. So if a string contains only numbers, - this block can convert the string into a number. If the block does not contain numbers, this block will - pass »NaN« when used in th Open Roberta Lab simulation and may have a different behavior depending on the programming language of the robot you are - currently using. If the string starts with numbers but - then contains other characters that are not numbers, this block will pass only the numbers and stop - as soon as the first character is in the string. So, as an example, this block makes the number 52 - out of the string »52abcd«.
+This block converts a string into a number if this is possible. So if a string contains only numbers, this block can convert the string into a number. If the block does not contain numbers, this block will pass »NaN« when used in th Open Roberta Lab simulation and may have a different + behavior depending on the programming language of the robot you are currently using. If the string starts with numbers but then contains other characters that are not numbers, this block will pass only the numbers and stop as soon as the first character is in the string. So, as an example, this block makes the number 52 out of the string »52abcd«. +
Options and input values:
-Return values:
-This block converts a letter or a character from a character string into the corresponding ASCII number. - Each character has an associated number in the ASCII table. For example, a lower-case »a« is converted - into the number 97.
+This block converts a letter or a character from a character string into the corresponding ASCII number. Each character has an associated number in the ASCII table. For example, a lower-case »a« is converted into the number 97.
Options and input values:
-Return values:
-The block »empty list« creates a list with no content.The block »list« generates a list with some - predefined values.
+The block »empty list« creates a list with no content.The block »list« generates a list with some predefined values.
This block may only be used in the context of a »set variable« block.
Using »+« or »−« enables you to extend or reduce the list at its end.
Settings and input values:
-Return value:
-The »repeat element in list« block generates a list of equal elements.
Settings and input values:
-Return value:
-The »length of« block returns a value which is the length of the list given as parameter. An empty list - has a length of 0.
+The »length of« block returns a value which is the length of the list given as parameter. An empty list has a length of 0.
Input value:
-Return value:
-A list given as parameter will be checked whether it is empty.
Input value:
-Return value:
-A list is searched for an item. If the item is in the list, the list position will be returned. If the - item is not in the list the result is -1.
+A list is searched for an item. If the item is in the list, the list position will be returned. If the item is not in the list the result is -1.
Settings and input values:
-Return value:
-Number, indicating the position where the element was found in the list.
-Note: Counting list positions will start with 0.
-Number, indicating the position where the element was found in the list.
+Note: Counting list positions will start with 0.
This block accesses an item of a list. Depending on the settings this item may be altered.
-A list is given as parameter. Then a drop-down-list specifies what will happen to the list item under - consideration.
+A list is given as parameter. Then a drop-down-list specifies what will happen to the list item under consideration.
Settings:
-Number, indicating the list position. This input value is not required if »first«, »last« or - »random« was selected as position.
-Note: Counting of list positions starts with 0.
-Number, indicating the list position. This input value is not required if »first«, »last« or »random« was selected as position.
+Note: Counting of list positions starts with 0.
Return value:
-List element that has been found at the specified list position; »undefined«, if the list - position does not exist.
-With selection of »remove« there is no return value; instead the list will be shortened by this - list element.
-List element that has been found at the specified list position; »undefined«, if the list position does not exist.
+With selection of »remove« there is no return value; instead the list will be shortened by this list element.
In a list given as input parameter one specified element will be replaced by a new value.
Settings and input values:
-From a list given as parameter a sublist will be created. The sublist contains all those elements that - match the further specifications of the block.
+From a list given as parameter a sublist will be created. The sublist contains all those elements that match the further specifications of the block.
Settings and input values:
-Number, indicating the list position. This input value is not required if »first« has been - selected.
-Note: Counting of list positions starts with 0.
-Number, indicating the list position. This input value is not required if »last« has been - selected.
-Note: Counting of list positions starts with 0.
-Number, indicating the list position. This input value is not required if »first« has been selected.
+Note: Counting of list positions starts with 0.
Number, indicating the list position. This input value is not required if »last« has been selected.
+Note: Counting of list positions starts with 0.
Return value:
-With this block you can choose from a pool of predefined colours for your robot.
options:
-Return value:
-With this block you can choose from a pool of predefined colours for your robot.
options:
-Return value: +
Return value:
-With this block you can choose from a pool of predefined colours for your robot.
options:
-Return value:
-With this block you can create your own colour by mixing red, green and blue.
-Input values: -
-With this block you can create your own colour by mixing red, green and blue.
Input values:
-With this block you can create your own colour by mixing red, green and blue.
+Robots often do not recognise the exact colour tone precisely. The lighting conditions can cause a colour to be perceived as too dark or too light. This block allows you to set a tolerance range for the colour to be detected, so that every shade of red, for example, is detected as red.
Input values:
-Using the block »set variable« will assign a value to a variable. Depending on the variable type the - value may be assigned by an input connector.
+Using the block »set variable« will assign a value to a variable. Depending on the variable type the value may be assigned by an input connector.
Settings and input value:
-Using the block »get variable« returns the value of a variable to another block.The type of the output - parameter is equal to the type that has been assigned to the variable in the »start« block.
+Using the block »get variable« returns the value of a variable to another block.The type of the output parameter is equal to the type that has been assigned to the variable in the »start« block.
Settings:
Return value:
In a function block with/without input parameter and without return parameter a sequence of program - statements will be condensed. The input parameters will be determined by the local variables of the - function block. Local variables may be generated by using the »+« sign of the function block. Local - variables will not be initialized.
+In a function block with/without input parameter and without return parameter a sequence of program statements will be condensed. The input parameters will be determined by the local variables of the function block. Local variables may be generated by using the »+« sign of the function block. Local variables will not be initialized.
If a function block contains an if-block the function may be terminated before reaching it's end.
-The function block is available in the »Functions« category immediately after its definition. Using - function blocks improves the readability of complex programs.
+The function block is available in the »Functions« category immediately after its definition. Using function blocks improves the readability of complex programs.
Settings:
-The name of a function block has to start with a lower case letter. Special characters - are not allowed in a function block name.
+The name of a function block has to start with a lower case letter. Special characters are not allowed in a function block name.
If the function block defines input parameters (local variables), all the parameter slots - have to be occupied when calling the function.
+If the function block defines input parameters (local variables), all the parameter slots have to be occupied when calling the function.
In a function block with/without input parameter and with return parameter a sequence of program - statements will be condensed. The input parameters will be determined by the local variables of the - function block. Local variables may be generated by using the »+« sign of the function block. Local - variables will not be initialized. After running through all the blocks of the function a value will be - returned.
-If a function block contains an if-block the function may be terminated before reaching it's end. An - alternative value may be returned by the if-block.
-The function block is available in the »Functions« category immediately after its definition. Using - function blocks improves the readability of complex programs.
+In a function block with/without input parameter and with return parameter a sequence of program statements will be condensed. The input parameters will be determined by the local variables of the function block. Local variables may be generated by using the »+« sign of the function block. Local variables will not be initialized. After running through all the blocks of the function a value will be returned.
+If a function block contains an if-block the function may be terminated before reaching it's end. An alternative value may be returned by the if-block.
+The function block is available in the »Functions« category immediately after its definition. Using function blocks improves the readability of complex programs.
Settings:
-Return value:
-The if statement within a function is of special importance. As the function sequence meets an if - statement the validity of the condition will be checked.
-The if statement within a function is of special importance. As the function sequence meets an if statement the validity of the condition will be checked.
+Settings and input values:
-Return value:
-With this block you can call a previous defined function in your program.
Input values:
-With this block you can call a previous defined function in your program.
Input values:
-Return value: +
Return value:
-A message interchange connection is initiated by an EV3 robot, like a telephone call that is initiated by - the caller. You need to know the name of the communication partner.
-The connection between two EV3 robots is stored in a global variable of type "connection". As long as - this global variable is valid the message connection is available.
+A message interchange connection is initiated by an EV3 robot, like a telephone call that is initiated by the caller. You need to know the name of the communication partner.
+The connection between two EV3 robots is stored in a global variable of type "connection". As long as this global variable is valid the message connection is available.
Step 1: Create a global variable of type "connection".
Step 2: Enter the name of an EV3 robot that is partner of the message exchange.
-The connection variable of the communication partner will automatically be initiated by using the expert - block "wait for connection" (see below). The connection variable will be initiated when the calling EV3 - robot has established the connection by using the block "connect to robot name".
+The connection variable of the communication partner will automatically be initiated by using the expert block "wait for connection" (see below). The connection variable will be initiated when the calling EV3 robot has established the connection by using the block "connect to robot name".
Input value:
-Return value:
-A text message will be transferred using a global connection variable. The text message will be entered - in a text block. To give the connection information to the EV3 robot the value of the global connection - variable will be read.
-Currently only strings can be sent via bluetooth.
-A text message will be transferred using a global connection variable. The text message will be entered in a text block. To give the connection information to the EV3 robot the value of the global connection variable will be read.
+Currently only strings can be sent via bluetooth.
Settings:
-A text message will be transferred using a global connection variable. The text message will be - transferred into a text block. To give the connection information to the EV3 robot the value of the - global connection variable will be read.
+A text message will be transferred using a global connection variable. The text message will be transferred into a text block. To give the connection information to the EV3 robot the value of the global connection variable will be read.
Settings and input value:
-Return value:
-A message interchange connection is initiated by an EV3 robot, like a telephone call that is initiated by - the caller. A robot that is called is waiting for a connection.
-The connection between two EV3 robots is stored in a global variable of type "connection". As long as - this global variable is valid the message connection is available.
+A message interchange connection is initiated by an EV3 robot, like a telephone call that is initiated by the caller. A robot that is called is waiting for a connection.
+The connection between two EV3 robots is stored in a global variable of type "connection". As long as this global variable is valid the message connection is available.
Step 1: Create a global variable of type "connection".
Step 2: The value of the connection variable is set to the expert block "wait for connection".
-The connection variable will be set when the calling EV3 robot has initiated the connection (see above: - connect to robot name).
-Return value: +
The connection variable will be set when the calling EV3 robot has initiated the connection (see above: connect to robot name).
+Return value:
-Jedes Programm beginnt mit dem »Start«-Block, welcher nicht gelöscht werden kann. Den ersten Block, den man verwenden möchte, verbindet man direkt mit der »Sequenzverbindung« am »Start«-Block.
Einstellmöglichkeiten: +
Wenn globale Variablen erzeugt wurden: +
Mit diesem Block kannst du einen Text auf dem Bildschirm des micro:bits ausgeben.
Optionen und Eingabewerte: +
Mit diesem Block kannst du ein Bild oder eine Animation auf dem Bildschirm des micro:bits darstellen.
Optionen und Eingabewerte: +
Mit diesem Block kannst du den Bildschirm deines micro:bits zurücksetzen. Dabei werden alle LEDs des Bildschirms ausgeschaltet.
Mit diesem Block kannst du die Helligkeit einer einzelnen LED des Bildschirms deines micro:bits steuern.
Optionen und Eingabewerte: +
Mit diesem Block kannst du die Helligkeit einer LED des Bildschirms deines micro:bits abfragen. Dieser Block gibt die Helligkeit an den verbundenen Block zurück.
Optionen und Eingabewerte: +
Rückgabewerte: +
Mit diesem Block kannst du einen Text auf deinem Computer ausgeben. Dieser Text wird per Serial Port auf deinen Computer übertragen. Wie du einen Serial Monitor einrichtest, kannst du hier nachlesen.
Optionen und Eingabewerte: +
Mit diesem Block kannst du deinen Roboter einen Ton abspielen lassen. Du kannst dabei die Frequenz und die Länge des Tons frei wählen. Der Ton wird auf dem eingebauten Lautsprecher des Joy-Car wiedergegeben.
Bitte beachte, dass das menschliche Gehör Frequenzen zwischen ca. 30 Hz und ca. 15.000 Hz (15 kHz) wahrnehmen kann - je nach Person und Alter kann dies variieren.
Eingabewerte: +
Mit diesem Block lässt du deinen Roboter eine ganze, halbe, viertel, achtel oder sechzehntel Note spielen. Du hast dabei die Auswahl aus drei Oktaven.
Optionen: +
Mit diesem Block lässt du deinen Roboter eine vordefinierte Sounddatei abspielen.
Optionen: +
Mit diesem Block lässt du deinen Roboter eine vordefinierte Sounddatei abspielen.
Optionen: +
Mit diesem Block kannst du die Lautstärke des Lautsprechers deines Roboters verändern.
Optionen: +
Mit diesem Block kannst du entweder einen digitalen oder analogen Wert auf einem der Pins deines micro:bits ausgeben.
Optionen und Eingabewerte: +
Mit diesem Baustein kannst du deine LED-Matrix ein- und ausschalten.
Optionen: +
Mit diesem Block kannst du abfragen, ob ein Knopf gerade gedrückt wird oder nicht.
Optionen: +
Rückgabewert: +
Mit diesem Block kannst du das Mikrofon deines Roboters abfragen. Das Mikrofon misst die Lautstärke der Umgebungsgeräusche.
Rückgabewert:
+Mit diesem Block kannst du den Lagesensor deines micro:bits abfragen. Dieser Sensor misst, in welcher Lage sich dein micro.bit befindet.
Optionen: +
Rückgabewert: +
Mit diesem Block kannst du den Kompasssensor deines micro:bits abfragen. Dieser Sensor kann den Winkel messen, um den sich dein micro.bit gedreht hat.
Rückgabewert: +
Mit diesem Block kannst du den Wert eines Zeitgebers abfragen. Der erste Zeitgeber wird beim Start des Programms automatisch gestartet, alle andren müssen erst mit dem »Setze Zeitgeber ... zurück « gestartet werden.
Rückgabewert: +
Mit diesem Block kannst du den Zeitgeber zurücksetzen.
Mit diesem Block kannst du den Temperatursensor des micro:bits abfragen. Dieser kann die Umgebungstemperatur messen.
Rückgabewert: +
Mit diesem Block kannst du abfragen, ob gerade einer der großen Pins des micro.bits gedrückt wird. nur die großen Pins mit Nummer 0 bis 2 haben die Sensoren, um eine Berührung zu registrieren.
Optionen: +
Rückgabewert: +
Mit diesem Block kannst du den Logo Touch Sensor des Roboters abfragen, ob er gerade gedrückt wird.
Rückgabewerte: +
Mit diesem Block kannst du einen Wert an einem der Pins der micro:bits auslesen. Dieser Wert kann entweder »digital« sein, das bedeutet eine 1 oder eine 0 sein, oder der Wert ist »analog«, kann also zwischen 0 und 1 liegen. Du kannst zudem die Zeit messen, wie lange entweder eine hohe, »Pulszeit HIGH«, oder eine niedrige, »Pulszeit LOW«, an dem Pin registriert wurde.
Optionen: +
Rückgabewerte: +
Mit diesem Sensor kannst du eine Beschleunigung messen, die auf deinem micro:bit wirkt. Eine Beschleunigung äußert sich immer durch eine wirkende Kraft. Wenn du also z.B. deinen micro:bit in eine Richtung schiebst, übst du eine kraft auf ihn aus und damit eine Beschleunigung. Diese beschleunigung kann der Sensor messen und ihr Wert wird in Einheiten der Erdbeschleunigung gemessen. Dabei gilt 1000 milli-g = 1 g = 9,81 m/s²
Optionen: +
Rückgabewerte: +
Mit diesem Block kannst du den Lichtsensor deines micro:bits abfragen.
Rückgabewerte: +
Mit dem Block »Wenn mache« kannst du gezielt Aktionen auslösen, die von einer Bedingung abhängen. Der »Wenn mache«-Block benötigt einen logischen Wert als Eingabewert. Falls die Bedingung in »Wenn« erfüllt (wahr) ist, wird der eingefügte Block (oder die Blöcke) ausgeführt. Bei einem verschachtelten »Wenn mache« Block, also wenn eine weitere Unterscheidung eingefügt wurde, wird zuerst die erste »Wenn« Bedingung abgefragt und, falls diese nicht erfüllt ist (Bedingung = falsch), wird die zweite »oder wenn« Bedingung geprüft. Auch diese zweite Bedingung benötigt wieder einen logischen Wert als Eingabewert.
Die Bedingungen können beliebig durch Anklicken des »+« Plus-Symbols erweitert und durch das »-« Minus-Symbol wieder bis auf eine einzige Bedingung reduziert werden.
Einstellmöglichkeiten und Eingabewerte: +
Mit dem Block »Wenn mache sonst« kannst du gezielt Aktionen auslösen, die von einer Bedingung abhängen. Der »Wenn mache sonst«-Block benötigt hierfür einen logischen Wert als Eingabewert. Falls die Bedingung erfüllt (wahr) ist, wird der dort eingefügte Block (oder die Blöcke) ausgeführt, ansonsten (Bedingung nicht erfüllt = falsch) wird der Block (bzw. die Blöcke), der bei »sonst« eingefügt wurde, ausgeführt. Bei einem verschachtelten »Wenn mache sonst« Block, also wenn eine weitere Unterscheidung dazugefügt wurde, wird zuerst die erste »Wenn« Bedingung abgefragt und, falls diese nicht erfüllt ist, wird die zweite »oder wenn« Bedingung geprüft. Auch diese zweite Bedingung benötigt wieder einen logischen Wert als Eingabewert. Nur wenn beide Bedingungen nicht erfüllt sind, wird der Block ausgeführt, der bei »sonst« eingefügt wurde.
Die Bedingungen können beliebig durch anklicken des »+« Plus-Symbols erweitert und durch das »-« Minus-Symbol wieder bis auf eine einzige Bedingung reduziert werden.
Einstellmöglichkeiten und Eingabewerte: +
Mit dem Block »Wiederhole unendlich oft« kannst du Blöcke endlos von deinem Roboter ausführen lassen. Alle Blöcke, die sich im »Wiederhole unendlich oft«-Block befinden, werden immer wieder ausgeführt. Die Blöcke werden dabei von oben nach unten ausgeführt. Sobald der letzte Block ausgeführt wurde, beginnt das Programm wieder mit dem ersten Block. Deshalb wird dieser Block auch »Endlosschleife« genannt.
Eingaben: +
Mit dem Block »Wiederhole n mal« kannst du andere Blöcke beliebig oft von deinem Roboter ausführen lassen. Alle Blöcke, die sich im Block »Wiederhole n mal« befinden, werden so oft ausgeführt, wie im Eingabefeld eingestellt ist. Die Blöcke werden dabei von oben nach unten ausgeführt. Sobald der letzte Block ausgeführt wurde, beginnt das Programm wieder mit dem ersten Block, bis die eingestellte Wiederholungszahl erreicht ist. Deshalb wird dieser Block auch »Schleife« genannt.
Nur ganzzahlige Werte können eingegeben werden.
Einstellmöglichkeiten und Eingabewerte: +
Mit dem Block »Wiederhole solange/bis« kannst du andere Blöcke beliebig oft von deinem Roboter ausführen lassen. Alle Blöcke, die sich im Block »Wiederhole solange/bis« befinden, werden immer wieder ausgeführt, solange bzw. bis die Bedingung im Eingabefeld erfüllt ist. Die Blöcke werden dabei von oben nach unten ausgeführt. Sobald der letzte Block ausgeführt wurde, beginnt das Programm wieder mit dem ersten Block, solange bzw. bis die Bedingung im Eingabefeld erfüllt ist. Deshalb wird dieser Block auch »bedingte Schleife« genannt.
Einstellmöglichkeiten und Eingabewerte: +
Mit dem Block »Für Wert aus der Liste« werden nacheinander alle Werte einer Liste an eine Variable übergeben und können dann in der so genannten Schleife verarbeitet werden. Mit jedem Schleifendurchlauf wird das nächste Element aus der Liste geholt, bis die Liste vollständig abgearbeitet ist. Der Wert des Listenelements wird an die Variable Element gebunden und kann in den enthaltenen Blöcken verwendet werden.
Einstellmöglichkeiten und Eingabewerte: +
Mit dem Block »Zähle von bis« kannst du andere Blöcke mehrfach von deinem Roboter ausführen lassen. Alle Blöcke, die sich im Block »Zähle von bis« befinden, werden so oft ausgeführt, bis die Zählung im Eingabefeld abgearbeitet ist. Die Blöcke werden dabei von oben nach unten ausgeführt. Sobald der letzte Block ausgeführt wurde, beginnt das Programm wieder mit dem ersten Block, solange die Zählbedingung im Eingabefeld erfüllt ist, d.h. der Endwert der Zählung noch nicht erreicht ist. Die Werte der Zählung werden jeweils an die Zählvariable gebunden, deren Name frei eingestellt werden kann. Der Wert der Zählvariablen kann in den Blöcken der Schleife verwendet werden. Der letzte Eingabewert gibt an, in welcher Schrittweite gezählt wird.
Einstellmöglichkeiten und Eingabewerte: +
Mit dem Block »Die Schleife abbrechen/mit der nächsten Iteration der Schleife fortfahren« kann eine Schleife vorzeitig beendet bzw. wieder zum Anfang der Schleife gesprungen werden. Sobald dieser Block in einer Reihe von Blöcken erscheint, werden alle nachfolgenden Blöcke bis zum Ende der Schleife ignoriert.
Einstellmöglichkeiten: +
Mit dem Block »Warte bis« kannst du dein Programm an der Stelle »anhalten«, an der du den »Warte bis«-Block eingefügt hast. Dein Programm wartet dann so lange, bis die Bedingung erfüllt (wahr) ist. Den »Warte bis«-Block kannst du mit dem »+«-Zeichen um zusätzliche Bedingungen erweitern. Dein Programm wartet dann solange, bis (mindestens) eine der Bedingungen deines »Warte bis«-Blocks erfüllt ist.
Einstelmöglichkeiten und Eingabewert: +
Mit dem Block »Warte« kannst du dein Programm an der Stelle "anhalten", an der du den Block eingefügt hast. Dein Programm bleibt dann für die angegebene Dauer an dieser Stelle stehen. Nach Ablauf der angegebenen Zeit wird dann der nachfolgende Block ausgeführt. Beispielsweise kannst du dadurch einen Text in dem Display deines Roboters exakt für diese Zeit anzeigen lassen.
Einstellmöglichkeiten: +
Mit dem Block »Warte bis« kannst du dein Programm an der Stelle »anhalten«, an der du den »Warte bis«-Block eingefügt hast. Dein Programm wartet dann so lange, bis die Bedingung erfüllt (wahr) ist. Den »Warte bis«-Block kannst du mit dem »+«-Zeichen um zusätzliche Bedingungen erweitern. Dein Programm wartet dann solange, bis (mindestens) eine der Bedingungen deines »Warte bis«-Blocks erfüllt ist.
Einstelmöglichkeiten und Eingabewert: +
Mit dem Block »Vergleiche« kannst du verschiedene Eingabewerte (Zahl, Farbe, logischer Wert, Text) gleichen Typs miteinander vergleichen. Stimmt der Vergleich, wird der logische Wert »wahr« zurückgegeben, sonst »falsch«.
Einstellmöglichkeiten und Eingabewerte: +
Rückgabewert: +
Mit dem Block »und/oder« kannst du logische Werte zueinander in Beziehung setzen. Der »und/oder« Block liefert bei der Einstellung »und« nur dann den logischen Wert »wahr«, wenn beide Eingabewerte des Blocks gleichzeitig »wahr« sind. Bei der Einstellung »oder« genügt es, wenn einer der beiden Eingabewerte »wahr« ist, damit der »und/oder« Block als logischen Wert »wahr« liefert.
Einstellmöglichkeiten und Eingabewerte: +
Rückgabewert: +
Mit dem Block »nicht« kannst du einen logischen Wert umkehren. Der logische Wert ergibt sich aus der logischen Umkehrung des Eingabewertes, aus »wahr« wird »falsch« und umgekehrt.
Eingabewert: +
Rückgabewert: +
Mit dem Block »wahr/falsch« kannst du entweder den logischen Wert »wahr« oder »falsch« an einen anderen Block übermitteln.
Einstellmöglichkeiten: +
Rückgabewert: +
Der Block »null« ist ein Platzhalter für eine Eingabe, die noch unbestimmt ist. Wenn z.B. eine neue Verbindungsvariable für die Kommunikation erzeugt wird und noch nicht belegt ist, wird der Anfangswert auf »null« gesetzt.
Rückgabewert: +
Mit dem Block »teste« kannst du einen Test durchführen und je nach Ergebnis unterschiedliche Ergebnisse zurückgeben.
Eingabewerte: +
Rückgabewert: +
Mit dem Block »Wert« kannst du Zahlen an einen anderen Block übermitteln.
Eingabewert: +
Rückgabewert: +
Mit dem Block »Rechnen« kannst du Zahlen addieren, subtrahieren, multiplizieren, dividieren oder potenzieren. Dieser Block ist nur in Verbindung mit einem anderen Block nutzbar, der eine Zahl als Eingabewert benötigt.
Einstellmöglichkeiten und Eingabewerte: +
Rückgabewert: +
Mit dem Block »Mathematische Funktionen« können einige elementare mathematische Funktionen berechnet werden.
Einstellmöglichkeiten und Eingabewert: +
Rückgabewert: +
Mit dem Block »Trigonometrische Funktionen« können Sinus, Cosinus, Tangens und die zugehörigen Umkehrfunktionen berechnet werden. Die Eingabewerte werden im Bogenmaß erwartet (siehe Hinweis oben).
Einstellmöglichkeiten und Eingabewert: +
Rückgabewert: +
Der Block »Konstanten« stellt einige mathematische Konstanten bereit. »π« (3,1415...), »e« (2,718...), »φ« (1,618...), »sqrt(2)« (1,414...), »sqrt(½)« (0,7071...), »∞«.
Einstellmöglichkeiten: +
Rückgabewert: +
Mit dem Block »Zahleneigenschaft« wird geprüft, ob eine eingegebene Zahl eine bestimmte Eigenschaft aufweist. »gerade«, »ungerade«, »ist Primzahl«, »ganze Zahl«, »positiv«, »negativ«, »teilbar durch«.
Einstellmöglichkeiten und Eingabewert: +
Rückgabewert: +
Mit dem Block »Erhöhe um x« wird der Wert einer numerischen Variable um einen Betrag erhöht.
Eingabewerte: +
Mit dem Block »runden« können Werte gerundet werden. Beim Runden werden die Nachkommastellen auf 0 gesetzt. Es wird je nach Größe der Nachkommastellen automatisch auf- oder abgerundet. Man kann jedoch auch einstellen, dass stets auf- bzw. stets abgerundet werden soll.
Einstellmöglichkeiten und Eingabewert: +
Rückgabewert: +
Mit dem Block »Liste auswerten« können verschiedene Analysen einer Liste vorgenommen werden:
Einstellmöglichkeiten und Eingabewert: +
Rückgabewert: +
Der Block »Rest von« führt eine Division durch und liefert den Rest der Division, der nicht mehr durch den Divisor geteilt werden konnte.
Eingabewerte: +
Rückgabewert: +
Der Block »Begrenze« sorgt dafür, dass Grenzwerte nicht überschritten werden. Er erfordert drei Eingabewerte:
Der Rückgabewert ist
Eingabewerte: +
Rückgabewert: +
Mit dem Block »Ganzzahlige Zufallswerte« können ganzzahlige Zufallswerte innerhalb selbst gewählter Grenzen erzeugt werden.
Eingabewerte: +
Rückgabewert: +
Mit dem Block »Zufallszahl« wird eine Zufallszahl zwischen 0,0 und 1,0 bestimmt.
Rückgabewert: +
Dieser Block wandelt eine Zahl in eine Zeichenkette um, die diese Zahl enthält. Als Beispiel wird die Zahl 123 in die Zeichenkette »123« umgewandelt.
Optionen und Eingabewerte: +
Dieser Block wandelt eine einzelne Zahl den dazugehörigen ASCII-Buchstaben um. Falls es zu dieser Zahl kein dazugehöriges ASCII-Zeichen gibt, wird eine leere Zeichenkette weitergegeben. So wird z.B. die Zahl 97 in den Buchstaben »a« umgewandelt.
Optionen und Eingabewerte: +
Mit diesem Block führst du eine Berechnungsschritt deines Neuronalen Netzwerks aus. Bevor du diesen Block verwendest, solltest du die Werte der Eingabe-Neuronen mit dem Block »Schreibe Wert Eingabe-Neuron ...« setzen. Die Eingabe-Werte werden in das Netzwerk gegeben und die Werte der Ausgabe-Neuronen werden anhand des Netzes aus dem Tab »Neuronales Netz« berechnet. Eine detaillierte Beschreibung des Neuronalen Netzwerks findest du hier. Die Werte der Ausgabe-Neuronen kannst du nach der Berechnung mit dem Block »gib Wert Ausgabe-Neuron ...« abfragen.
Mit diesem Block kannst du den Wert eines Eingabeneurons setzen. Du kannst als Eingabewert entweder Variablen, Zahlen, Sensordaten oder mathematische Operationen verwenden, z.B. die Summe von zwei Zahlen.
Optionen und Eingabewerte: +
Mit diesem Block kannst du den Wert eines Ausgabe-Neurons abfragen. Du solltest diesen Block erst nach dem Block »Mache einen NN Schritt« verwenden, da sonst noch kein Wert für die Ausgabeneuronen berechnet worden ist.
Optionen: +
Rückgabewert: +
Mit diesem Block kannst du das Gewicht einer Verbindung zwischen zwei Neuronen setzen, die direkt miteinander verbunden sind.
Optionen und Eingabewerte: +
Mit diesem Block kannst du den Bias eines Neurons setzen.
Optionen und Eingabewerte: +
Mit diesem Block kannst du den aktuellen Wert des Gewichts einer Verbindung zwischen zwei Neuronen abfragen, die direkt miteinander verbunden sind.
Optionen: +
Rückgabewert: +
Mit diesem Block kannst du den Bias eines Neurons abfragen.
Optionen: +
Rückgabewert: +
Mit dem einfachen »Text«-Block wird ein Stück Text bereitgestellt.
Eingabewert: +
Rückgabewert: +
Dokumentiere dein Programm mit diesem Block, damit du und andere es später leichter haben, dein Programm zu verstehen. Dieser Kommentar wird auch im generierten Source Code zu sehen sein.
Eingabewert: +
Mit dem »Erstelle Text«-Block wird ein Stück Text aus verschiedenen Eingabewerten zusammengesetzt. Mit dem +-Zeichen können weitere Eingabemöglichkeiten geschaffen werden. Alle Eingaben werden zu einer kontinuierlichen Zeichenkette zusammengefügt.
Eingabewerte: +
Rückgabewert: +
Mit dem »werte ... als ...«-Block wird ein als Text eingegebener Ausdruck ("expression") ausgewertet und das Ergebnis zurückgegeben. Der Ausdruck kann z.B. "sqrt(a^2 + b^2)" sein. Er wird zu einer Zahl ausgewertet. Der Block ist sehr leistungsstark: nahezu alle Ausdrücke, die mit Blockly-Blöcken erzeugt werden können, lassen sich auch als Text schreiben.
Wie der Ausdruck aufgebaut werden kann, ist auf einer eigenen Wiki-Seite beschrieben. Bitte beachten: es gibt allgemeine Ausdrücke, die für jeden Roboter gültig sind, und spezifische Teile, die nur für den jeweils ausgewählten Roboter gelten. Das muss so sein, weil jeder Roboter eigene Sensoren und Aktoren unterstützt. Das ist detailliert auf der Wiki-Seite beschrieben.
Der Benutzer muss in einem Drop-Down angeben, welchen Typ für das Ergebnis erwartet wird. Welche Typen möglich sind, hängt vom jeweils ausgewählten Roboter ab.
Eingabewerte: +
Optionen: +
Mit dem »Text anhängen«-Block können Zeichenketten erweitert werden, z.B. indem an empfangene Nachrichten eine Signatur angehängt wird.
Eingabemöglichkeiten: +
Dieser Block wandelt eine Zeichenkette in eine Zahl um, falls dies möglich ist. Wenn eine Zeichenkette also nur Zahlen enthält, kann dieser Block die Zeichenkette in eine Zahl umwandeln. Wenn der Block keine Zahlen enthält, gibt dieser Block »NaN« in der Simulation des Open Roberta Labs weiter, kann aber auch ein anderes Verhalten aufweisen, welches von der verwendeten Programmiersprache des Roboters abhängt. Falls die Zeichenkette zwar mit Zahlen beginnt, aber danach weitere Zeichen enthält, die keine Zahlen sind, gibt dieser Block nur die Zahlen weiter und stoppt, sobald das erste Zeichen in der Zeichenkette steht. Also als Beispiel macht dieser Block aus der Zeichenkette »52abcd« die Zahl 52.
Optionen und Eingabewerte: +
Dieser Block wandelt einen Buchstaben oder ein Zeichen aus einer Zeichenkette in die dazugehörige ASCII-Nummer um. Jedes Zeichen hat dabei eine dazugehörige Nummer in der ASCII-Tabelle. So wird z.B. ein kleines »a« in die Zahl 97 umgewandelt.
Optionen und Eingabewerte: +
Der Block »Erzeuge eine leere Liste« erzeugt eine Liste ohne Inhalt. Der Block »Liste« erzeugt eine Liste mit einigen voreingestellten Werten. Mit + und - können weitere Listenelemente am Ende hinzugefügt bzw. entfernt werden. Wenn das letzte Element einer Liste entfernt wurde, liegt eine leere Liste vor.
Einstellmöglichkeiten: +
Der Block »Wiederhole Element in Liste« erzeugt eine Liste mit gleichen Elementen.
Einstellmöglichkeiten: +
Der Block »Länge« gibt als Wert die Länge einer Liste zurück, die als Eingabewert angegeben wird. Eine leere Liste hat die Länge 0.
Eingabewert +
Eine als Eingabewert gegebene Liste wird geprüft, ob sie leer ist.
Eingabewert +
Eine Liste wird durchsucht, ob ein Element darin enthalten ist. Wenn das Element enthalten ist, wird die Listenposition zurückgegeben. Wenn das Element nicht enthalten ist, ist das Ergebnis -1.
Einstellmöglichkeiten: +
Zahl, die Position, an der das Element in der Liste steht.
Beachte: Die Zählung der Listenpositionen beginnt bei 0.
Mit diesem Block wird auf ein Element einer Liste zugegriffen. Das Element wird gegebenenfalls verändert.
Es wird eine Liste als Eingabe übergeben. Danach wird per Drop-Down-Liste spezifiziert, was mit dem Listenelement geschehen soll. Anschließend wird angegeben, in welcher Richtung die Liste durchsucht werden soll, ob von vorn (links), von hinten (rechts) oder zufällig.
Einstellmöglichkeiten und Eingabewerte +
Zahl, Listenposition. Dieser Eingabewert entfällt, wenn zuvor »erste«, »letzte« oder »zufälliges« als Position bestimmt wurde.
Beachte: Die Zählung der Listenpositionen beginnt bei 0.
In einer als Eingabewert übergebenen Liste wird ein näher spezifiziertes Element durch einen neuen Wert ersetzt bzw. es wird ein Wert eingefügt.
Einstellmöglichkeiten und Eingabewerte: +
Aus einer als Eingabewert übergebenen Liste wird eine Unterliste erzeugt. In der Unterliste sind alle Elemente enthalten, die den weiteren Spezifikationen dieses Blocks entsprechen.
Einstellmöglichkeiten und Eingabewerte: +
Mit diesem Block kannst du eine Farbe aus einer Auswahl von vordefinierten Farben auswählen.
Option: +
Rückgabewert: +
Mit diesem Block kannst du eine Farbe aus einer Auswahl von vordefinierten Farben auswählen.
Option: +
Rückgabewert: +
Mit diesem Block kannst du eine Farbe aus einer Auswahl von vordefinierten Farben auswählen.
Option: +
Rückgabewert: +
Mit diesem Block kannst du dir eine eigene Farbe erstellen, indem du deine Farbe aus Rot, Grün und Blau mischst.
Eingabewerte: +
Roboter erkennen den genauen Farbton oft nicht Präzise. Durch die Lichtverhältnisse kann so eine Farbe als zu dunkel oder zu hell wahrgenommen werden. Dieser Block ermöglicht die Einstellung eines Toleranzbereichs für die zu erkennende Farbe, damit beispielsweise jeder Rotton als Rot erkannt wird.
Eingabewerte: +
Mit dem Block »Schreibe Variable« kannst du den Wert einer Variablen verändern. Je nach Typ der Variablen (Zahl, Zeichenkette, logischer Wert, Liste, Farbe, Verbindung) kann der Variablen ein passender Wert übergeben werden.
Einstellmöglichkeit und Eingabewert: +
Mit dem Block »lies Variable« kannst du den Wert einer Variablen an einen anderen Block übergeben. Der Typ des Ausgabewertes entspricht immer dem Typ, mit dem die Variablen im Block »Start« initialisiert wurde.
Einstellmöglichkeit: +
In einem Funktionsblock ohne/mit Eingabe- und Rückgabewert wird eine Folge von Anweisungen zusammengefasst. Die Eingabewerte werden durch die lokalen Variablen im Funktionsblock festgelegt. Mit dem »+«-Zeichen können lokale Variablen als Eingabewerte für den Funktionsblock erzeugt werden. Lokale Variablen werden nicht initialisiert.
Falls in einen Funktionsblock eine Wenn-Abfrage (siehe unten) eingebaut wird, kann es zu einem vorzeitigen Abbruch der Funktion kommen.
Der Funktionsblock steht nach seiner Definition als zusätzlicher Block in der Kategorie »Funktion« zur Verfügung. Auf diese Weise kann die Lesbarkeit komplexer Programme wesentlich vereinfacht werden.
Einstellmöglichkeiten: +
In einem Funktionsblock ohne/mit Eingabe- und mit Rückgabewert wird eine Folge von Anweisungen zusammengefasst. Mit dem »+«-Zeichen können lokale Variablen als Eingabewerte für den Funktionsblock erzeugt werden. Nachdem alle Anweisungen durchlaufen wurden, wird abschließend ein Wert als Funktionswert zurückgegeben.
Falls in einen Funktionsblock eine Wenn-Abfrage eingebaut wird, kann es zu einem vorzeitigen Abbruch der Funktion kommen, und es kann ein alternativer Funktionswert zurückgegeben werden.
Der Funktionsblock steht nach seiner Definition als zusätzlicher Block in der Kategorie »Funktion« zur Verfügung. Auf diese Weise kann die Lesbarkeit komplexer Programme wesentlich vereinfacht werden.
Einstellmöglichkeiten: +
Die Wenn-Abfrage innerhalb einer Funktion ist von besonderer Bedeutung. Sobald der Funktionsablauf auf eine Wenn-Abfrage trifft, wird die Gültigkeit der Bedingung geprüft.
Einstellgabewerte: +
Mit diesem Block kannst du eine vorher definierte Funktion aufrufen. Diese Funktion gibt dabei keinen Wert zurück.
Eingabewerte: +
Mit diesem Block kannst du eine vorher definierte Funktion aufrufen und den Rückgabewerte abrufen.
Eingabewerte: +
Mit diesem Block kannst du eine Nachricht an andere Roboter in deiner Umgebung senden. Die Nachricht kann dabei entweder eine zahl, ein logischer Wert oder eine Zeichenkette sein.
Optionen und Eingabewerte: +
Mit diesem Block kannst du Nachrichten von anderen Robotern empfangen. Du kannst dabei einstellen, welche Daten die Nachricht enthalten soll.
Optionen: +
Rückgabewerte: +
Mit diesem Block kannst du den Kanal ändern, auf dem dein Roboter seine Nachrichten sendet und empfängt. Du kannst nur mit anderen Robotern kommunizieren, die auf dem gleichen Kanal senden und empfangen.
Eingabewerte: +
Each program starts with the »Program start block«, which cannot be deleted. The first block to be used is connected directly to the »Sequence connection« on the program start block.
+Settings: +
+If global variables have been created: +
+With this block you can output a text on the screen of the micro:bit.
+Options and Input values: +
+With this block you can display an image or animation on the micro:bit screen.
+Options and Input values: +
+With this block you can clear the display of your micro:bit, that means that all LEDs are turned off.
With this block you can set the brightness of one specific LED to a desired value between 0 and 9, where 0 is off and 9 is the maximum brightness.
+Options and input values +
+With this block you can querry the brightness of on of your micro:bits LEDs.
+Options ans input values: +
+Return value: +
+With this block you can display a text on your computer. This text is transferred to your computer via serial port. You can read how to set up a Serial Monitor + here.
+Options and input values: +
+With this block you can program the frequency (pitch of a tone) and the time (how long the tone is played). The sound is played through the built-in speaker of the + Joy-Car chassis until the set duration is reached.
+Please note that human hearing can perceive frequencies between about 30 Hz to about 15,000 Hz (15 kHz) - depending on the person and age, this may vary.
+Input values: +
+With this block you make your robot play a whole, half, quarter, eighth or sixteenth note.
+Options: +
+With this block you make your robot play a predefined sound file.
+Options: +
+With this block, you can let your robot play a predefined sound.
+Options: +
+With this block you can set the volume of your robots speaker.
+Options: +
+With this block you can output either a digital or analog value on one of the pins of your micro:bit.
+Options and input values: +
+With this block you can turn your LED matrix on and off.
+Options: +
+With this button you can check whether a button is currently being pressed.
+Options: +
+Return value: +
+With this block you can check whether your micro.bit is in a certain position or certain gesture is being done.
+Options: +
+Return value: +
+With this block you can check the compass sensor of your micro:bits. This sensor can measure the angle by which your micro.bit has rotated.
+Return value: +
+With this block you can query the value of a timer. The first timer is started automatically at the start of the program, all other timers have to be set first with the "Set timer ..." button. back " can be started.
+Options: +
+Return value: +
+With this block you can reset the timer of your micro:bit.
With this block you can check the temperature sensor for the ambient temperature.
+Return value: +
+With this block you can check whether the chosen pin is pressed by a person. But be aware that not all pins can check whether they are being pressed.
+Options: +
+Return value: +
+With this block you can read a value at one of the pins of the micro:bit. This value can be either »digital«, meaning 1 or 0, or the value can be »analog«, meaning between 0 and 1. You can also measure the time how long either a high, »pulse time HIGH«, or a low, »pulse time LOW«, was registered at the pin.
+Options: +
+Return value: +
+With this sensor you can measure an acceleration that acts on your micro:bit. An acceleration is always expressed by an acting force. For example, if you push your micro:bit in one direction, you exert a force on it and thus an acceleration. The sensor can measure this acceleration and its value is measured in units of acceleration due to gravity. The following applies: 1000 milli-g = 1 g = 9.81 m/s²
+Options: +
+Return value: +
+With this block you can query the value of your light sensor.
+Return value: +
+With the block »if do« you can selectively trigger actions to be executed by your robot. The »if do« block therefore requires a logical value as an input parameter, the condition. Only if the condition of the »if« statement is true, the inserted block will be executed. In a nested »if do« block, if a further distinction was added, the first »if« condition is queried. If it is not fulfilled (condition = false), the second »else if« condition will be checked. Also this second condition requires a logical value as an input parameter.
+The conditions may arbitrarily be expanded by clicking the "+" plus symbol. The "-" minus symbol reduces the block.
+Settings and input values: +
+With the block »if do else« you can selectively trigger actions which are executed by your robot. The »if do then« block therefore requires a logical value as an input parameter. If the condition in »if« is true the inserted block will be executed, otherwise (condition is not fulfilled = false) the block connected to the »else« statement will be executed. In a nested »if do else« block with further distinctions added, the first »if« condition is queried. If it is not true, the second condition »else if« is checked. Also the second condition requires a logical value as an input parameter. Only when both conditions are not true, the block which is inserted at the »else« statement will be executed.
+The conditions may arbitrarily be expanded by clicking the "+" plus symbol. The "-" minus symbol reduces the block.
+Settings: +
+With the block »repeat indefinitely« you can endlessly run the blocks on your robot. All blocks which are within the »repeat indefinitely« block will be executed endlessly. The blocks are applied sequentially from top to bottom. Once the last block has been executed, the program repeats with the first block again. Therefore, this block is also called »loop«.
+Input: +
+With the block »repeat« you can run other block as many times as you like. All blocks in the »repeat« block will be executed as often as defined in the entry field. The blocks are applied sequentially from top to bottom. Once the last block has been executed, the program repeats with the first block again. Therefore, this block is also called »loop«.
+Only integer values can be entered.
Settings and input: +
+With the block »wait« you can "pause" your program at the point where you inserted the »wait« block. Your program will then remain for the specified duration at this point. After the specified time the next block will be executed. For example you can display text in the screen of your robot for exactly the time you specified in the »wait« block.
+Settings and input values: +
+With the block »wait until« you can "stop" your program at the point you insert the »wait until« block. Your program then waits until the condition is true. The »wait until« block you can extended by click on "+" symbol. Your program then waits until (at least) one of the condition of your »wait until« block is true.
+Settings: +
+With the block »wait until« you can "stop" your program at the point you insert the »wait until« block. Your program then waits until the condition is true. The »wait until« block you can extended by click on "+" symbol. Your program then waits until (at least) one of the condition of your »wait until« block is true.
+Settings: +
+With the block »break out/continue with next iteration of loop« a loop can be terminated ahead of schedule. As soon as the block is entered within a sequence of blocks, all further blocks up to the end of the loop will be ignored.
+Settings: +
+With the block »count with from to« you can run other block as many times as you like. All blocks in the »count with from to« block will be executed as long as the counting is in progress. The blocks are applied sequentially from top to bottom. Once the last block has been executed, the program repeats with the first block again if the counting is in progress. The last parameter declares the step width for counting.
+Settings: +
+With the block »for each item in list« all list items will successively be bound to a variable. The variable can be used within the loop. With each loop cycle the next item of the list will be bound until all list elements have been processed.
+Settings and input value: +
+With the block »repeat while/until« you can run other block as many times as you like. All blocks in the »repeat while/until« block will be executed as long as the condition in the entry field is true. The blocks are applied sequentially from top to bottom. Once the last block has been executed, the program repeats with the first block again if the condition is still true. Therefore, this block is also called »conditional loop«.
+Settings and input values: +
+With the block »comparison« you can compare different parameters of the same type (number, color, logical value, text). This block can only be used in conjunction with another block which requires a logical value as an input parameter.
+Settings and input values: +
+Return value: +
+With the block »and/or« you can interrelate logical values with each other. The »and/or« block with the setting "and" will be true only if both logical parameters are "'true"'. If the block has the setting »or« it is sufficient if one of the two parameters is "true", so that the »and/or« block will return true.
+Settings: +
+Return value: +
+With the block »true/false« you can return either the logical value »true« or »false« to another block.
+Settings: +
+Return value: +
+Using the »not« lets you invert a logical value and pass this value to another block.
+Input value: +
+Return value: +
+Using the »test« block will perform a test and returns a value which depends on the test result.
+Input values: +
+Return value: +
+The block »null« is a place holder for an input value that is not yet specified. If for instance a new connection variable has been created and is not yet bound, the initial value of this connection will be set to »null«.
+Return value:: +
+With the block »parameter« you can send numbers to another block.
+Settings and input values: +
+Return value: +
+With the block »calculating« you can sum up, subtract, multiply, and divide numbers. This block can only be used in conjunction with another block which requires a number as an input parameter.
+Settings and input values: +
+Return value: +
+With the block »mathematical function« some elementary mathematical functions may be calculated. Available functions are »square root«, »absolute«, »invert« (multiply by -1), »ln« (natural logarithm), »log10« (decadic logarithm), »e^« (exponential function), »10^« (base 10 exponent)
+Settings and input value: +
+Return value: +
+With the block »trigonometric function« sine, cosine, tangent and their respective revers functions can be calculated. Input values are expected in radian measure(see hint above).
+Settings and input value: +
+Return value: +
+With the »constant« block some mathematical constant values are available: »π« (3,1415...), »e« (2,718...), »φ« (1,618...), »sqrt(2)« (1,414...), »sqrt(½)« (0,7071...), »∞«
+Settings: +
+Return value: +
+With the block »number property« you check whether a given number has a specific property: »even«, »odd«, »prime«, »whole«, »positive«, »negative«, »divisible by«.
+Settings and input values: +
+Return value: +
+The block »change by ... « increments a numerical variable by a defined value.
+Settings and input values: +
+With the block »round« values may be rounded. Rounding will set the decimal places to 0. It depends on the value of the decimal places whether the block rounds up or down. You may also decide by settings to always round up or down.
+Settings and input value: +
+Return value: +
+With the block »list evaluation« you may analyse a list.
+Modes for list evaluation: +
+Settings and input value: +
+Return value: +
+The block »remainder of« calculates a divison and returns the remainder of the division.
+Input values: +
+Return value: +
+The block »constrain« ensures that given boundaries will not be exceeded.
+Input values: +
+Return value: +
+With the block »random integer« you may generate random integer numbers within defined limits
+Input values: +
+Return value: +
+With the block »random fraction« a random value between 0.0 and 1.0 is calculated.
+Return value: +
+This block converts a number into a string containing that number. So for example the number 123 would be converted into the string »123«.
+
Options and input values:
+
Return value: +
+This block converts a single number to the corresponding ASCII letter. If there is no associated ASCII character for this number, an empty string is passed on. So for example the number 97 gets converted into the lower-case letter »a«.
+Options and input values: +
+Return values: +
+With this block you perform a calculation step of your neural network. Before you use this block, you should set the values of the input neurons with the block "set value input neuron ...". The input values are given into the network and the values of the output neurons are calculated using the network from the tab »Neural Network«. A detailed description of the neural network can be found + here. You can query the values of the output neurons after the calculation with the block »gett value output neuron ...«. +
With this block you can set the value of an input neuron. You can use either variables, numbers, sensor data or mathematical operations as input values, e.g. the sum of two numbers.
+Options and input values: +
+With this block you can query the value of an output neuron. You should only use this block after the block »make one NN step«, otherwise no value has been calculated for the output neurons and the value is defaulted to 0.
+Options: +
+Return value: +
+With this block you can set the weight of a connection between two neurons that are directly connected.
+Options and input values: +
+With this block you can set the bias of a neuron.
+Options and input values: +
+With this block you can query the current value of the weight of a connection between two neurons that are directly connected.
+Options: +
+Return value: +
+With this block you can query the bias of a neuron.
+Options: +
+Return value: +
+The simple »Text« block creates a little text.
+Input value: +
+Return value: +
+Document your program with this block, so that you and others will find it easier to understand your program later. This comment will also be visible in the generated source code.
+Input value: +
+The »create text« block compiles a text from different input parameters. Using the + sign will insert further input slots. All input parameters will be connected one after the other. Essentially the »create text« block converts an arbitrary input value into a text string.
+Input values: +
+Return value: +
+The »value ... as ...« block evaluates an expression entered as text (”expression") and returns the result. The expression can be “sqrt(a^2 + b^2)”, for example. It is evaluated to a number. The block is very powerful: almost all expressions that can be generated with Blockly blocks can also be written as text.
+How the expression can be constructed is described on a separate wiki page. Please note: there are general expressions that are valid for every robot and specific parts that are only valid for the selected robot. This is necessary because each robot supports its own sensors and actuators. This is described in detail on the wiki page. +
+The user must specify in a drop-down menu which type is expected for the result. Which types are possible depends on the selected robot.
+Input value: +
+The »append text« block will append some string to a given string, for instance to extend a message with a signature.
+Input values: +
+This block converts a string into a number if this is possible. So if a string contains only numbers, this block can convert the string into a number. If the block does not contain numbers, this block will pass »NaN« when used in th Open Roberta Lab simulation and may have a different + behavior depending on the programming language of the robot you are currently using. If the string starts with numbers but then contains other characters that are not numbers, this block will pass only the numbers and stop as soon as the first character is in the string. So, as an example, this block makes the number 52 out of the string »52abcd«. +
+Options and input values: +
+Return values: +
+This block converts a letter or a character from a character string into the corresponding ASCII number. Each character has an associated number in the ASCII table. For example, a lower-case »a« is converted into the number 97.
+Options and input values: +
+Return values: +
+The block »empty list« creates a list with no content.The block »list« generates a list with some predefined values.
+This block may only be used in the context of a »set variable« block.
+Using »+« or »−« enables you to extend or reduce the list at its end.
+Settings and input values: +
+Return value: +
+The »repeat element in list« block generates a list of equal elements.
+Settings and input values: +
+Return value: +
+The »length of« block returns a value which is the length of the list given as parameter. An empty list has a length of 0.
+Input value: +
+Return value: +
+A list given as parameter will be checked whether it is empty.
+Input value: +
+Return value: +
+A list is searched for an item. If the item is in the list, the list position will be returned. If the item is not in the list the result is -1.
+Settings and input values: +
+Return value: +
+Number, indicating the position where the element was found in the list.
+Note: Counting list positions will start with 0.
This block accesses an item of a list. Depending on the settings this item may be altered.
+A list is given as parameter. Then a drop-down-list specifies what will happen to the list item under consideration.
+Settings: +
+Number, indicating the list position. This input value is not required if »first«, »last« or »random« was selected as position.
+Note: Counting of list positions starts with 0.
Return value: +
+List element that has been found at the specified list position; »undefined«, if the list position does not exist.
+With selection of »remove« there is no return value; instead the list will be shortened by this list element.
In a list given as input parameter one specified element will be replaced by a new value.
+Settings and input values: +
+From a list given as parameter a sublist will be created. The sublist contains all those elements that match the further specifications of the block.
+Settings and input values: +
+Number, indicating the list position. This input value is not required if »first« has been selected.
+Note: Counting of list positions starts with 0.
Number, indicating the list position. This input value is not required if »last« has been selected.
+Note: Counting of list positions starts with 0.
Return value: +
+With this block you can choose from a pool of predefined colours for your robot.
+options: +
+Return value: +
+With this block you can choose from a pool of predefined colours for your robot.
+options: +
+Return value: +
+With this block you can choose from a pool of predefined colours for your robot.
+options: +
+Return value: +
+With this block you can create your own colour by mixing red, green and blue.
+Input values: +
+Robots often do not recognise the exact colour tone precisely. The lighting conditions can cause a colour to be perceived as too dark or too light. This block allows you to set a tolerance range for the colour to be detected, so that every shade of red, for example, is detected as red.
+Input values: +
+Using the block »set variable« will assign a value to a variable. Depending on the variable type the value may be assigned by an input connector.
+Settings and input value: +
+Using the block »get variable« returns the value of a variable to another block.The type of the output parameter is equal to the type that has been assigned to the variable in the »start« block.
+Settings:
+
Return value:
+
In a function block with/without input parameter and without return parameter a sequence of program statements will be condensed. The input parameters will be determined by the local variables of the function block. Local variables may be generated by using the »+« sign of the function block. Local variables will not be initialized.
+If a function block contains an if-block the function may be terminated before reaching it's end.
+The function block is available in the »Functions« category immediately after its definition. Using function blocks improves the readability of complex programs.
+Settings: +
+The name of a function block has to start with a lower case letter. Special characters are not allowed in a function block name.
+If the function block defines input parameters (local variables), all the parameter slots have to be occupied when calling the function.
+In a function block with/without input parameter and with return parameter a sequence of program statements will be condensed. The input parameters will be determined by the local variables of the function block. Local variables may be generated by using the »+« sign of the function block. Local variables will not be initialized. After running through all the blocks of the function a value will be returned.
+If a function block contains an if-block the function may be terminated before reaching it's end. An alternative value may be returned by the if-block.
+The function block is available in the »Functions« category immediately after its definition. Using function blocks improves the readability of complex programs.
+Settings: +
+Return value: +
+The if statement within a function is of special importance. As the function sequence meets an if statement the validity of the condition will be checked.
+Settings and input values: +
+Return value: +
+With this block you can call a previous defined function in your program.
+Input values: +
+With this block you can call a previous defined function in your program.
+Input values: +
+Return value: +
+With this block you can send a message to other robots in your environment. The message can be either a number, a logical value or a string.
+Options and input values: +
+With this block you can receive messages from other robots. You can choose which data the message should contain.
+Options: +
+Return values: +
+With this block you can change the channel on which your robot sends and receives its messages. You can only communicate with other robots that send and receive on the same channel.
+Input values: +
+Mit dem Block »Fahre ... Tempo ... Strecke« kannst du zusätzlich zu Richtung und Tempo auch die Fahrstrecke des Roboters programmieren. Dein Roboter fährt so lange, bis die eingestellte Strecke gefahren ist. Die Geschwindigkeit kannst du im Feld Tempo einstellen. Wenn dieser Block »zu Ende« ist, stoppen die Motoren automatisch.
»Fahre« steuert beide Motoren des Roboters gleichzeitig.
Wenn die eingestellten Werte der Aktionen mit der Programmausführung nicht übereinstimmen, prüfe die Roboter-Konfiguration, insbesondere den Raddurchmesser.
Einstellmöglichkeiten und Eingabewerte: -
Mit dem Block »Fahre ... Tempo« kannst du die Richtung und das Tempo (Geschwindigkeit) deines Roboters programmieren. Dein Roboter fährt so lange vorwärts oder rückwärts, bis er gestoppt wird oder ein anderer Block zum Fahren verwendet wird.
»Fahre« steuert beide Motoren des Roboters gleichzeitig.
Einstellmöglichkeiten und Eingabewert: -
Mit dem Block »Stoppe« werden die Motoren deines Roboters gestoppt. Das bedeutet, dein Roboter hält an.
Mit dem Block »Steure ... Tempo links ... Tempo rechts ...« kannst du den Roboter so programmieren, dass er eine Kurve fährt, indem du das Tempo für den linken und den rechten Motor auf unterschiedliche Werte setzt. Die Roboterkonfiguration beeinflusst den Radius der Kurve in Abhängigkeit von Radabstand und Raddurchmesser. Mit der Drehrichtung legst du die Fahrtrichtung fest.
Einstellmöglichkeiten und Eingabewerte: -
Mit dem Block »Steure ... Tempo links ... Tempo rechts ... Strecke ...« kannst du den Roboter so programmieren, dass er eine vorgegebene Strecke als Kurve fährt, indem du das Tempo für den linken und den rechten Motor auf unterschiedliche Werte setzt. Die Strecke bezieht sich auf die Mitte zwischen beiden Rädern. Die Roboterkonfiguration beeinflusst den Radius der Kurve in Abhängigkeit von Radabstand und Raddurchmesser. Mit der Richtung legst du die Fahrtrichtung fest.
Einstellmöglichkeiten und Eingabewerte: -
Mit dem Block »Drehe ... Tempo ... Grad« kannst du die Richtung (rechts/links), in der sich der Roboter um die eigene Achse drehen soll, programmieren. Zusätzlich zur Richtung kann noch im Feld »Grad« angegeben werden, um wie viel Grad sich dein Roboter (um die eigene Achse) drehen soll. Dies bedeutet, dass du beispielsweise mit der Einstellung 360 Grad deinen Roboter einmal um die eigene Achse drehen lassen kannst. Der Block »Drehe ... Tempo ... Grad« steuert beide Motoren des Roboters, damit sich der Roboter um die eigene Achse dreht.
Wenn die eingestellten Werte der Aktionen mit der Programmausführung nicht übereinstimmen, prüfe die Roboter-Konfiguration, insbesondere den Raddurchmesser und die Spurbreite.
Einstellmöglichkeiten und Eingabewerte: -
Mit dem Block »Drehe ... Tempo« kannst du die Richtung (rechts/links), in der sich der Roboter drehen soll, programmieren. Dein Roboter dreht sich so lange auf der Stelle, bis er gestoppt wird oder ein anderer Block zum Fahren verwendet wird. Die Geschwindigkeit kannst Du im Feld »Tempo« einstellen. »Drehe« steuert beide Motoren des Roboters gleichzeitig in entgegengesetzten Richtungen, dadurch dreht sich der Roboter auf der Stelle.
Einstellmöglichkeiten und Eingabewert: -
Falls sich dein Roboter in die falsche Richtung dreht, sind die Motoren an die falschen Ports angeschlossen. Es genügt dann, die Ports zu tauschen, damit der Roboter in die richtige Richtung dreht.
Mit dem Block »Motor Port ... an Tempo ... Umdrehungen/Grad« stellst du das Tempo (Geschwindigkeit) eines Motors ein. Dein Roboter startet den gewählten Motor, bis er die eingestellte Anzahl Umdrehungen bzw. Winkelgrade gemacht hat.
Einstellmöglichkeiten und Eingabewerte: -
Mit dem Block »Motor Port ... an Tempo« programmierst du das Tempo (Geschwindigkeit) eines Motors. Dein Roboter startet den gewählten Motor, bis er gestoppt wird oder ein anderer Block zum Fahren verwendet wird.
Einstellmöglichkeiten und Eingabewert: -
Dieser Block setzt das Tempo (Geschwindigkeit) eines Motors auf einen neuen Wert.
Optionen und/oder Eingabewerte: -
Mit diesem Block kannst du einen Motor deines Roboters stoppen.
Optionen: -
Dieser Block steuert einen der Servomotoren. Wähle aus, welches Servo du betätigen willst und wie weit es sich bewegen soll.
Optionen und/oder Eingabewerte: -
Mit dem Block »Zeige Text« kannst du Text und Zahlen auf dem Display deines Roboters anzeigen lassen. Dabei kannst du zusätzlich noch bestimmen, in welcher Zeile der Text auf dem Bildschirm erscheinen soll.
Das Display ist für Texte in mehreren Zeilen (von links nach rechts) eingeteilt.
Wenn zuvor schon etwas auf dem Display angezeigt war, werden nur die Stellen überschrieben, in die der Text geschrieben wird.
Eingabewerte: -
Mit diesem Block kann der Bildschirminhalt deines Roboters gelöscht werden.
Mit diesem Block kannst du Text auf dem Serial Monitor über USB anzeigen.
Eingabewert: -
Mit diesem Block kannst du den Roboter einen Klang aus dem Auswahlmenü abspielen lassen.
Auswahlmöglichkeiten: -
Mit dem Block »Statusleuchte« kannst du die Statusleuchte, also die Hintergrundfarbe des Bildschirms programmieren.
Einstellmöglichkeiten: -
Mit dem Block »Statusleuchte aus« kannst du die Statusleuchte des Bildschirms ausschalten.
Einstellmöglichkeiten:
-Mit diesem Block kannst du die Bildschirmtasten deines Roboters abfragen, ob sie gerade gedrückt werden.
Optionen: -
Mit diesem Block kannst du den Ultraschallsensor deines Roboters abfragen. Dieser Sensor misst die Entfernung zum nächsten Objekt, indem er Ultraschallwellen aussendet und aus der Reflexion dieser Wellen die Distanz zu dem Objekt berechnet.
Rückgabewert: -
Mit diesem Block kannst du den Infrarotsensor deines Roboters verwenden, um eine Linie zu erkennen. Eine heller Bereich der Linie wird als »0« gelesen, ein dunkler Bereich wird als »1« gelesen.
Optionen:
-Rückgabewert:
-Mit dem Block »Gib Umdrehungen/Grad/Abstand Drehsensor« kannst du einem anderen Block die Motorumdrehungen »mitteilen«.
Wenn »Umdrehungen« eingestellt wurde, wird die Zahl der Umdrehungen ausgegeben.
Wenn »Grad« eingestellt wurde, wird die Gradzahl aller Umdrehungen ausgegeben, wobei eine volle Umdrehung genau 360 Grad entspricht.
Wenn »Abstand« eingestellt wurde, wird berechnet, welche Strecke das Rad des Motors zurückgelegt hat. Das ist natürlich abhängig davon, wie groß das Rad in der Roboterkonfiguration eingestellt ist.
Einstellmöglichkeiten: -
Rückgabewert: -
Mit dem Block »Setze Drehsensor zurück« kann der interne Sensor (Motor-Encoder) eines Motors auf den Wert 0 zurückgesetzt werden.
Einstellmöglichkeiten: -
Mit dem Block »Gib Wert Zeitgeber« kannst du einem anderen Block den aktuellen Stand des internen Zeitgebers in Millisekunden »mitteilen«. Der Zeitgeber wird automatisch mit dem Beginn eines Programms gestartet. Es stehen 5 Zeitgeber zur Verfügung.
Einstellöglichkeiten: -
Rückgabewert: -
Mit dem Block »Setze Zeitgeber« können die internen Zeitgeber (1 bis 5) auf den Wert 0 zurückgesetzt werden.
Einstellmöglichkeiten: -
Mit dem Block »Gib Farbe Kamera« wird die Fabe eines in der Konfiguration festgelegten Areals des erfassten Bildes ausgegeben.
Rückgabewert: -
Mit dem Block »Gib Anzahl Linien Kamera« kannst du die Kamera benutzen, um die vom Roboter erkannten Linien zu zählen. Dabei können maximal 4 Linien gleichzeitig erkannt werden.
Rückgabewert: -
Mit dem Block »Gib Informationen von Linie #« kann einem andern Block die Position der Linie im Kamerabild, sowie die erkannte breite mitgeteilt werden. Die Maximal 4 von der Kamera erkannten Bilder werden mit den Zahlen 0-3 Indiziert.
Dabei Ist zu beachten, dass die erste Linie den Index »0« hat, und die vierte den Index »3«.
Eingabewert: -
Mit dem Block »Gib Farbe von Linie #« kann einem anderen Block die Farbe einer Linie am ausgewählten Index (0-3) mitgeteilt werden.
Dabei Ist zu beachten, dass die erste Linie den Index »0« hat, und die vierte den Index »3«.
Eingabewert: -
Mit dem Block »Gib Ball Informationen« kann einem anderen Block die Position des Balls im Kamerabild sowie dessen vom Roboter gemessener Durchmesser mitgeteilt werden.
Damit ein Ball erkannt wird, muss in der Konfiguration dessen Farbe festgelegt werden.
Rückgabewert: -
Mit dem Block »Gib Bewegung Kamera« kann einem anderen Block mitgeteilt werden, ob der Roboter im Kamerabild eine Bewegung wahrnimmt.
Rückgabewert: -
Mit dem Block »Mini-Taster ... gedrückt?« kann einem anderen Block mitgeteilt werden, ob der ausgewählte Taster gedrückt wird.
Eingabewert: -
Mit dem Block »Gib Wert % Lichtsensor« kann einem anderen Block mitgeteilt werden, wie hell das Licht ist, das den Lichtsensor des Roboters trifft.
Rückgabewert: -
Mit dem Block »Gib ... Umweltsensor« kann einem Block ein bestimmter Messwert des Umweltsensors mitgeteilt werden. Der Umweltsensor hat diverse Funktionen. Er kann die Temperatur, die Luftfeuchtigkeit, den Luftdruck und die Innenraumluftqualität messen.
Rückgabewert: -
Mit dem Block »Umweltsensor kalibrieren« kann der Umweltsensor neu kalibriert werden. Das ist am Anfang nötig und wenn er ungenaue Messwerte liefert. Die Kalibrierung dauert etwa 5 Minuten.
Mit dem Block »Gib ... RGB Gestensensor« kann einem anderen Block diverse Rückgabewerte des RGB Gestensensors mitgeteilt werden. Der Sensor nimmt Farbe, Umgebungslicht, Geste, Nähe und RGB wahr.
Rückgabewert: -
Mit dem Block »Gib Beschleunigung g Kombisensor« kann einem anderen Block mitgeteilt werden, wie schnell der mit Kombisensor ausgestattete Roboter beschleunigt.
Eingabewert: -
Rückgabewert: -
Mit dem Block »Gib magnetischer Fluss °« kann über den Kombisensor anhand des Magnetfelds der Erde ermittelt werden, in welche Himmelsrichtung der Roboter gedreht ist.
Rückgabewert: -
Mit dem Block »Gib gyroscope °« kann einem anderen Block über den Kombisensor mitgeteilt werden, wie schnell sich der Roboter in eine bestimmte Richtung dreht. Die gemessene Achse (x,y,z) muss dabei angegeben werden.
Eingabewert: -
Mit dem Block »Wenn mache« kannst du gezielt Aktionen auslösen, die von einer Bedingung abhängen. Der »Wenn mache«-Block benötigt einen logischen Wert als Eingabewert. Falls die Bedingung in »Wenn« erfüllt (wahr) ist, wird der eingefügte Block (oder die Blöcke) ausgeführt. Bei einem verschachtelten »Wenn mache« Block, also wenn eine weitere Unterscheidung eingefügt wurde, wird zuerst die erste »Wenn« Bedingung abgefragt und, falls diese nicht erfüllt ist (Bedingung = falsch), wird die zweite »oder wenn« Bedingung geprüft. Auch diese zweite Bedingung benötigt wieder einen logischen Wert als Eingabewert.
Die Bedingungen können beliebig durch Anklicken des »+« Plus-Symbols erweitert und durch das »-« Minus-Symbol wieder bis auf eine einzige Bedingung reduziert werden.
Einstellmöglichkeiten und Eingabewerte: -
Mit dem Block »Wenn mache sonst« kannst du gezielt Aktionen auslösen, die von einer Bedingung abhängen. Der »Wenn mache sonst«-Block benötigt hierfür einen logischen Wert als Eingabewert. Falls die Bedingung erfüllt (wahr) ist, wird der dort eingefügte Block (oder die Blöcke) ausgeführt, ansonsten (Bedingung nicht erfüllt = falsch) wird der Block (bzw. die Blöcke), der bei »sonst« eingefügt wurde, ausgeführt. Bei einem verschachtelten »Wenn mache sonst« Block, also wenn eine weitere Unterscheidung dazugefügt wurde, wird zuerst die erste »Wenn« Bedingung abgefragt und, falls diese nicht erfüllt ist, wird die zweite »oder wenn« Bedingung geprüft. Auch diese zweite Bedingung benötigt wieder einen logischen Wert als Eingabewert. Nur wenn beide Bedingungen nicht erfüllt sind, wird der Block ausgeführt, der bei »sonst« eingefügt wurde.
Die Bedingungen können beliebig durch anklicken des »+« Plus-Symbols erweitert und durch das »-« Minus-Symbol wieder bis auf eine einzige Bedingung reduziert werden.
Einstellmöglichkeiten und Eingabewerte: -
Mit dem Block »Wiederhole unendlich oft« kannst du Blöcke endlos von deinem Roboter ausführen lassen. Alle Blöcke, die sich im »Wiederhole unendlich oft«-Block befinden, werden immer wieder ausgeführt. Die Blöcke werden dabei von oben nach unten ausgeführt. Sobald der letzte Block ausgeführt wurde, beginnt das Programm wieder mit dem ersten Block. Deshalb wird dieser Block auch »Endlosschleife« genannt.
Eingaben: -
Mit dem Block »Wiederhole n mal« kannst du andere Blöcke beliebig oft von deinem Roboter ausführen lassen. Alle Blöcke, die sich im Block »Wiederhole n mal« befinden, werden so oft ausgeführt, wie im Eingabefeld eingestellt ist. Die Blöcke werden dabei von oben nach unten ausgeführt. Sobald der letzte Block ausgeführt wurde, beginnt das Programm wieder mit dem ersten Block, bis die eingestellte Wiederholungszahl erreicht ist. Deshalb wird dieser Block auch »Schleife« genannt.
Nur ganzzahlige Werte können eingegeben werden.
Einstellmöglichkeiten und Eingabewerte: -
Mit dem Block »Wiederhole solange/bis« kannst du andere Blöcke beliebig oft von deinem Roboter ausführen lassen. Alle Blöcke, die sich im Block »Wiederhole solange/bis« befinden, werden immer wieder ausgeführt, solange bzw. bis die Bedingung im Eingabefeld erfüllt ist. Die Blöcke werden dabei von oben nach unten ausgeführt. Sobald der letzte Block ausgeführt wurde, beginnt das Programm wieder mit dem ersten Block, solange bzw. bis die Bedingung im Eingabefeld erfüllt ist. Deshalb wird dieser Block auch »bedingte Schleife« genannt.
Einstellmöglichkeiten und Eingabewerte: -
Mit dem Block »Für Wert aus der Liste« werden nacheinander alle Werte einer Liste an eine Variable übergeben und können dann in der so genannten Schleife verarbeitet werden. Mit jedem Schleifendurchlauf wird das nächste Element aus der Liste geholt, bis die Liste vollständig abgearbeitet ist. Der Wert des Listenelements wird an die Variable Element gebunden und kann in den enthaltenen Blöcken verwendet werden.
Einstellmöglichkeiten und Eingabewerte: -
Mit dem Block »Zähle von bis« kannst du andere Blöcke mehrfach von deinem Roboter ausführen lassen. Alle Blöcke, die sich im Block »Zähle von bis« befinden, werden so oft ausgeführt, bis die Zählung im Eingabefeld abgearbeitet ist. Die Blöcke werden dabei von oben nach unten ausgeführt. Sobald der letzte Block ausgeführt wurde, beginnt das Programm wieder mit dem ersten Block, solange die Zählbedingung im Eingabefeld erfüllt ist, d.h. der Endwert der Zählung noch nicht erreicht ist. Die Werte der Zählung werden jeweils an die Zählvariable gebunden, deren Name frei eingestellt werden kann. Der Wert der Zählvariablen kann in den Blöcken der Schleife verwendet werden. Der letzte Eingabewert gibt an, in welcher Schrittweite gezählt wird.
Einstellmöglichkeiten und Eingabewerte: -
Mit dem Block »Die Schleife abbrechen/mit der nächsten Iteration der Schleife fortfahren« kann eine Schleife vorzeitig beendet bzw. wieder zum Anfang der Schleife gesprungen werden. Sobald dieser Block in einer Reihe von Blöcken erscheint, werden alle nachfolgenden Blöcke bis zum Ende der Schleife ignoriert.
Einstellmöglichkeiten: -
Mit dem Block »Warte bis« kannst du dein Programm an der Stelle »anhalten«, an der du den »Warte bis«-Block eingefügt hast. Dein Programm wartet dann so lange, bis die Bedingung erfüllt (wahr) ist. Den »Warte bis«-Block kannst du mit dem »+«-Zeichen um zusätzliche Bedingungen erweitern. Dein Programm wartet dann solange, bis (mindestens) eine der Bedingungen deines »Warte bis«-Blocks erfüllt ist.
Einstelmöglichkeiten und Eingabewert: -
Mit dem Block »Warte« kannst du dein Programm an der Stelle "anhalten", an der du den Block eingefügt hast. Dein Programm bleibt dann für die angegebene Dauer an dieser Stelle stehen. Nach Ablauf der angegebenen Zeit wird dann der nachfolgende Block ausgeführt. Beispielsweise kannst du dadurch einen Text in dem Display deines Roboters exakt für diese Zeit anzeigen lassen.
Einstellmöglichkeiten: -
Mit dem Block »Warte bis« kannst du dein Programm an der Stelle »anhalten«, an der du den »Warte bis«-Block eingefügt hast. Dein Programm wartet dann so lange, bis die Bedingung erfüllt (wahr) ist. Den »Warte bis«-Block kannst du mit dem »+«-Zeichen um zusätzliche Bedingungen erweitern. Dein Programm wartet dann solange, bis (mindestens) eine der Bedingungen deines »Warte bis«-Blocks erfüllt ist.
Einstelmöglichkeiten und Eingabewert: -
Mit dem Block »Vergleiche« kannst du verschiedene Eingabewerte (Zahl, Farbe, logischer Wert, Text) gleichen Typs miteinander vergleichen. Stimmt der Vergleich, wird der logische Wert »wahr« zurückgegeben, sonst »falsch«.
Einstellmöglichkeiten und Eingabewerte: -
Rückgabewert: -
Mit dem Block »und/oder« kannst du logische Werte zueinander in Beziehung setzen. Der »und/oder« Block liefert bei der Einstellung »und« nur dann den logischen Wert »wahr«, wenn beide Eingabewerte des Blocks gleichzeitig »wahr« sind. Bei der Einstellung »oder« genügt es, wenn einer der beiden Eingabewerte »wahr« ist, damit der »und/oder« Block als logischen Wert »wahr« liefert.
Einstellmöglichkeiten und Eingabewerte: -
Rückgabewert: -
Mit dem Block »nicht« kannst du einen logischen Wert umkehren. Der logische Wert ergibt sich aus der logischen Umkehrung des Eingabewertes, aus »wahr« wird »falsch« und umgekehrt.
Eingabewert: -
Rückgabewert: -
Mit dem Block »wahr/falsch« kannst du entweder den logischen Wert »wahr« oder »falsch« an einen anderen Block übermitteln.
Einstellmöglichkeiten: -
Rückgabewert: -
Der Block »null« ist ein Platzhalter für eine Eingabe, die noch unbestimmt ist. Wenn z.B. eine neue Verbindungsvariable für die Kommunikation erzeugt wird und noch nicht belegt ist, wird der Anfangswert auf »null« gesetzt.
Rückgabewert: -
Mit dem Block »teste« kannst du einen Test durchführen und je nach Ergebnis unterschiedliche Ergebnisse zurückgeben.
Eingabewerte: -
Rückgabewert: -
Mit dem Block »Wert« kannst du Zahlen an einen anderen Block übermitteln.
Eingabewert: -
Rückgabewert: -
Mit dem Block »Rechnen« kannst du Zahlen addieren, subtrahieren, multiplizieren, dividieren oder potenzieren. Dieser Block ist nur in Verbindung mit einem anderen Block nutzbar, der eine Zahl als Eingabewert benötigt.
Einstellmöglichkeiten und Eingabewerte: -
Rückgabewert: -
Mit dem Block »Mathematische Funktionen« können einige elementare mathematische Funktionen berechnet werden.
Einstellmöglichkeiten und Eingabewert: -
Rückgabewert: -
Mit dem Block »Trigonometrische Funktionen« können Sinus, Cosinus, Tangens und die zugehörigen Umkehrfunktionen berechnet werden. Die Eingabewerte werden im Bogenmaß erwartet (siehe Hinweis oben).
Einstellmöglichkeiten und Eingabewert: -
Rückgabewert: -
Der Block »Konstanten« stellt einige mathematische Konstanten bereit. »π« (3,1415...), »e« (2,718...), »φ« (1,618...), »sqrt(2)« (1,414...), »sqrt(½)« (0,7071...), »∞«.
Einstellmöglichkeiten: -
Rückgabewert: -
Mit dem Block »Zahleneigenschaft« wird geprüft, ob eine eingegebene Zahl eine bestimmte Eigenschaft aufweist. »gerade«, »ungerade«, »ist Primzahl«, »ganze Zahl«, »positiv«, »negativ«, »teilbar durch«.
Einstellmöglichkeiten und Eingabewert: -
Rückgabewert: -
Mit dem Block »Erhöhe um x« wird der Wert einer numerischen Variable um einen Betrag erhöht.
Eingabewerte: -
Mit dem Block »runden« können Werte gerundet werden. Beim Runden werden die Nachkommastellen auf 0 gesetzt. Es wird je nach Größe der Nachkommastellen automatisch auf- oder abgerundet. Man kann jedoch auch einstellen, dass stets auf- bzw. stets abgerundet werden soll.
Einstellmöglichkeiten und Eingabewert: -
Rückgabewert: -
Mit dem Block »Liste auswerten« können verschiedene Analysen einer Liste vorgenommen werden:
Einstellmöglichkeiten und Eingabewert: -
Rückgabewert: -
Der Block »Rest von« führt eine Division durch und liefert den Rest der Division, der nicht mehr durch den Divisor geteilt werden konnte.
Eingabewerte: -
Rückgabewert: -
Der Block »Begrenze« sorgt dafür, dass Grenzwerte nicht überschritten werden. Er erfordert drei Eingabewerte:
Der Rückgabewert ist
Eingabewerte: -
Rückgabewert: -
Mit dem Block »Ganzzahlige Zufallswerte« können ganzzahlige Zufallswerte innerhalb selbst gewählter Grenzen erzeugt werden.
Eingabewerte: -
Rückgabewert: -
Mit dem Block »Zufallszahl« wird eine Zufallszahl zwischen 0,0 und 1,0 bestimmt.
Rückgabewert: -
Dieser Block wandelt eine Zahl in eine Zeichenkette um, die diese Zahl enthält. Als Beispiel wird die Zahl 123 in die Zeichenkette »123« umgewandelt.
Optionen und Eingabewerte: -
Rückgabewerte: -
Dieser Block wandelt eine einzelne Zahl den dazugehörigen ASCII-Buchstaben um. Falls es zu dieser Zahl kein dazugehöriges ASCII-Zeichen gibt, wird eine leere Zeichenkette weitergegeben. So wird z.B. die Zahl 97 in den Buchstaben »a« umgewandelt.
Optionen und Eingabewerte: -
Rückgabewerte: -
Mit diesem Block führst du eine Berechnungsschritt deines Neuronalen Netzwerks aus. Bevor du diesen Block verwendest, solltest du die Werte der Eingabe-Neuronen mit dem Block »Schreibe Wert Eingabe-Neuron ...« setzen. Die Eingabe-Werte werden in das Netzwerk gegeben und die Werte der Ausgabe-Neuronen werden anhand des Netzes aus dem Tab »Neuronales Netz« berechnet. Eine detaillierte Beschreibung des Neuronalen Netzwerks findest du hier. Die Werte der Ausgabe-Neuronen kannst du nach der Berechnung mit dem Block »gib Wert Ausgabe-Neuron ...« abfragen.
Mit diesem Block kannst du den Wert eines Eingabeneurons setzen. Du kannst als Eingabewert entweder Variablen, Zahlen, Sensordaten oder mathematische Operationen verwenden, z.B. die Summe von zwei Zahlen.
Optionen und Eingabewerte: -
Mit diesem Block kannst du den Wert eines Ausgabe-Neurons abfragen. Du solltest diesen Block erst nach dem Block »Mache einen NN Schritt« verwenden, da sonst noch kein Wert für die Ausgabeneuronen berechnet worden ist.
Optionen: -
Rückgabewert: -
Mit diesem Block kannst du das Gewicht einer Verbindung zwischen zwei Neuronen setzen, die direkt miteinander verbunden sind.
Optionen und Eingabewerte: -
Mit diesem Block kannst du den Bias eines Neurons setzen.
Optionen und Eingabewerte: -
Mit diesem Block kannst du den aktuellen Wert des Gewichts einer Verbindung zwischen zwei Neuronen abfragen, die direkt miteinander verbunden sind.
Optionen: -
Rückgabewert: -
Mit diesem Block kannst du den Bias eines Neurons abfragen.
Optionen: -
Rückgabewert: -
Mit dem einfachen »Text«-Block wird ein Stück Text bereitgestellt.
Eingabewert: -
Rückgabewert: -
Dokumentiere dein Programm mit diesem Block, damit du und andere es später leichter haben, dein Programm zu verstehen. Dieser Kommentar wird auch im generierten Source Code zu sehen sein.
Eingabewert: -
Mit dem »Erstelle Text«-Block wird ein Stück Text aus verschiedenen Eingabewerten zusammengesetzt. Mit dem +-Zeichen können weitere Eingabemöglichkeiten geschaffen werden. Alle Eingaben werden zu einer kontinuierlichen Zeichenkette zusammengefügt.
Eingabewerte: -
Rückgabewert: -
Mit dem »Text anhängen«-Block können Zeichenketten erweitert werden, z.B. indem an empfangene Nachrichten eine Signatur angehängt wird.
Eingabemöglichkeiten: -
Dieser Block wandelt eine Zeichenkette in eine Zahl um, falls dies möglich ist. Wenn eine Zeichenkette also nur Zahlen enthält, kann dieser Block die Zeichenkette in eine Zahl umwandeln. Wenn der Block keine Zahlen enthält, gibt dieser Block »NaN« in der Simulation des Open Roberta Labs weiter, kann aber auch ein anderes Verhalten aufweisen, welches von der verwendeten Programmiersprache des Roboters abhängt. Falls die Zeichenkette zwar mit Zahlen beginnt, aber danach weitere Zeichen enthält, die keine Zahlen sind, gibt dieser Block nur die Zahlen weiter und stoppt, sobald das erste Zeichen in der Zeichenkette steht. Also als Beispiel macht dieser Block aus der Zeichenkette »52abcd« die Zahl 52.
Optionen und Eingabewerte: -
Rückgabewerte: -
Dieser Block wandelt einen Buchstaben oder ein Zeichen aus einer Zeichenkette in die dazugehörige ASCII-Nummer um. Jedes Zeichen hat dabei eine dazugehörige Nummer in der ASCII-Tabelle. So wird z.B. ein kleines »a« in die Zahl 97 umgewandelt.
Optionen und Eingabewerte: -
Rückgabewerte: -
Der Block »Erzeuge eine leere Liste« erzeugt eine Liste ohne Inhalt. Der Block »Liste« erzeugt eine Liste mit einigen voreingestellten Werten. Mit + und - können weitere Listenelemente am Ende hinzugefügt bzw. entfernt werden. Wenn das letzte Element einer Liste entfernt wurde, liegt eine leere Liste vor.
Einstellmöglichkeiten: -
Rückgabewert: -
Der Block »Wiederhole Element in Liste« erzeugt eine Liste mit gleichen Elementen.
Einstellmöglichkeiten: -
Rückgabewert: -
Der Block »Länge« gibt als Wert die Länge einer Liste zurück, die als Eingabewert angegeben wird. Eine leere Liste hat die Länge 0.
Eingabewert -
Rückgabewert: -
Eine als Eingabewert gegebene Liste wird geprüft, ob sie leer ist.
Eingabewert -
Rückgabewert: -
Eine Liste wird durchsucht, ob ein Element darin enthalten ist. Wenn das Element enthalten ist, wird die Listenposition zurückgegeben. Wenn das Element nicht enthalten ist, ist das Ergebnis -1.
Einstellmöglichkeiten: -
Rückgabewert: -
Zahl, die Position, an der das Element in der Liste steht.
Beachte: Die Zählung der Listenpositionen beginnt bei 0.
Mit diesem Block wird auf ein Element einer Liste zugegriffen. Das Element wird gegebenenfalls verändert.
Es wird eine Liste als Eingabe übergeben. Danach wird per Drop-Down-Liste spezifiziert, was mit dem Listenelement geschehen soll. Anschließend wird angegeben, in welcher Richtung die Liste durchsucht werden soll, ob von vorn (links), von hinten (rechts) oder zufällig.
Einstellmöglichkeiten und Eingabewerte -
Zahl, Listenposition. Dieser Eingabewert entfällt, wenn zuvor »erste«, »letzte« oder »zufälliges« als Position bestimmt wurde.
Beachte: Die Zählung der Listenpositionen beginnt bei 0.
Rückgabewert: -
In einer als Eingabewert übergebenen Liste wird ein näher spezifiziertes Element durch einen neuen Wert ersetzt bzw. es wird ein Wert eingefügt.
Einstellmöglichkeiten und Eingabewerte: -
Aus einer als Eingabewert übergebenen Liste wird eine Unterliste erzeugt. In der Unterliste sind alle Elemente enthalten, die den weiteren Spezifikationen dieses Blocks entsprechen.
Einstellmöglichkeiten und Eingabewerte: -
Rückgabewert: -
Mit diesem Block kannst du eine Farbe aus einer Auswahl von vordefinierten Farben auswählen.
Option: -
Rückgabewert: -
Mit diesem Block kannst du eine Farbe aus einer Auswahl von vordefinierten Farben auswählen.
Option: -
Rückgabewert: -
Mit diesem Block kannst du eine Farbe aus einer Auswahl von vordefinierten Farben auswählen.
Option: -
Rückgabewert: -
Mit diesem Block kannst du dir eine eigene Farbe erstellen, indem du deine Farbe aus Rot, Grün und Blau mischst.
Eingabewerte: -
Rückgabewert: -
Roboter erkennen den genauen Farbton oft nicht Präzise. Durch die Lichtverhältnisse kann so eine Farbe als zu dunkel oder zu hell wahrgenommen werden. Dieser Block ermöglicht die Einstellung eines Toleranzbereichs für die zu erkennende Farbe, damit beispielsweise jeder Rotton als Rot erkannt wird.
Eingabewerte: -
Mit dem Block »Schreibe Variable« kannst du den Wert einer Variablen verändern. Je nach Typ der Variablen (Zahl, Zeichenkette, logischer Wert, Liste, Farbe, Verbindung) kann der Variablen ein passender Wert übergeben werden.
Einstellmöglichkeit und Eingabewert: -
Mit dem Block »lies Variable« kannst du den Wert einer Variablen an einen anderen Block übergeben. Der Typ des Ausgabewertes entspricht immer dem Typ, mit dem die Variablen im Block »Start« initialisiert wurde.
Einstellmöglichkeit: -
Rückgabewert: -
In einem Funktionsblock ohne/mit Eingabe- und Rückgabewert wird eine Folge von Anweisungen zusammengefasst. Die Eingabewerte werden durch die lokalen Variablen im Funktionsblock festgelegt. Mit dem »+«-Zeichen können lokale Variablen als Eingabewerte für den Funktionsblock erzeugt werden. Lokale Variablen werden nicht initialisiert.
Falls in einen Funktionsblock eine Wenn-Abfrage (siehe unten) eingebaut wird, kann es zu einem vorzeitigen Abbruch der Funktion kommen.
Der Funktionsblock steht nach seiner Definition als zusätzlicher Block in der Kategorie »Funktion« zur Verfügung. Auf diese Weise kann die Lesbarkeit komplexer Programme wesentlich vereinfacht werden.
Einstellmöglichkeiten: -
In einem Funktionsblock ohne/mit Eingabe- und mit Rückgabewert wird eine Folge von Anweisungen zusammengefasst. Mit dem »+«-Zeichen können lokale Variablen als Eingabewerte für den Funktionsblock erzeugt werden. Nachdem alle Anweisungen durchlaufen wurden, wird abschließend ein Wert als Funktionswert zurückgegeben.
Falls in einen Funktionsblock eine Wenn-Abfrage eingebaut wird, kann es zu einem vorzeitigen Abbruch der Funktion kommen, und es kann ein alternativer Funktionswert zurückgegeben werden.
Der Funktionsblock steht nach seiner Definition als zusätzlicher Block in der Kategorie »Funktion« zur Verfügung. Auf diese Weise kann die Lesbarkeit komplexer Programme wesentlich vereinfacht werden.
Einstellmöglichkeiten: -
Rückgabewert: -
Die Wenn-Abfrage innerhalb einer Funktion ist von besonderer Bedeutung. Sobald der Funktionsablauf auf eine Wenn-Abfrage trifft, wird die Gültigkeit der Bedingung geprüft.
Einstellgabewerte: -
Rückgabewert: -
Mit diesem Block kannst du eine vorher definierte Funktion aufrufen. Diese Funktion gibt dabei keinen Wert zurück.
Eingabewerte: -
Mit diesem Block kannst du eine vorher definierte Funktion aufrufen und den Rückgabewerte abrufen.
Eingabewerte: -
Rückgabewerte: -
Jedes Programm beginnt mit dem »Start«-Block, welcher nicht gelöscht werden kann. Den ersten Block, den man verwenden möchte, verbindet man direkt mit der »Sequenzverbindung« am »Start«-Block.
+Einstellmöglichkeiten: +
+Mit dem Block »Fahre ... Tempo ... Strecke« kannst du zusätzlich zu Richtung und Tempo auch die Fahrstrecke des Roboters programmieren. Dein Roboter fährt so lange, bis die eingestellte Strecke gefahren ist. Die Geschwindigkeit kannst du im Feld Tempo einstellen. Wenn dieser Block »zu Ende« ist, stoppen die Motoren automatisch.
+»Fahre« steuert beide Motoren des Roboters gleichzeitig.
+Wenn die eingestellten Werte der Aktionen mit der Programmausführung nicht übereinstimmen, prüfe die Roboter-Konfiguration, insbesondere den Raddurchmesser.
+Einstellmöglichkeiten und Eingabewerte: +
+Mit dem Block »Fahre ... Tempo« kannst du die Richtung und das Tempo (Geschwindigkeit) deines Roboters programmieren. Dein Roboter fährt so lange vorwärts oder rückwärts, bis er gestoppt wird oder ein anderer Block zum Fahren verwendet wird.
+»Fahre« steuert beide Motoren des Roboters gleichzeitig.
+Einstellmöglichkeiten und Eingabewert: +
+Mit dem Block »Stoppe« werden die Motoren deines Roboters gestoppt. Das bedeutet, dein Roboter hält an.
Mit dem Block »Steure ... Tempo links ... Tempo rechts ...« kannst du den Roboter so programmieren, dass er eine Kurve fährt, indem du das Tempo für den linken und den rechten Motor auf unterschiedliche Werte setzt. Die Roboterkonfiguration beeinflusst den Radius der Kurve in Abhängigkeit von Radabstand und Raddurchmesser. Mit der Drehrichtung legst du die Fahrtrichtung fest.
+Einstellmöglichkeiten und Eingabewerte: +
+Mit dem Block »Steure ... Tempo links ... Tempo rechts ... Strecke ...« kannst du den Roboter so programmieren, dass er eine vorgegebene Strecke als Kurve fährt, indem du das Tempo für den linken und den rechten Motor auf unterschiedliche Werte setzt. Die Strecke bezieht sich auf die Mitte zwischen beiden Rädern. Die Roboterkonfiguration beeinflusst den Radius der Kurve in Abhängigkeit von Radabstand und Raddurchmesser. Mit der Richtung legst du die Fahrtrichtung fest.
+Einstellmöglichkeiten und Eingabewerte: +
+Mit dem Block »Drehe ... Tempo ... Grad« kannst du die Richtung (rechts/links), in der sich der Roboter um die eigene Achse drehen soll, programmieren. Zusätzlich zur Richtung kann noch im Feld »Grad« angegeben werden, um wie viel Grad sich dein Roboter (um die eigene Achse) drehen soll. Dies bedeutet, dass du beispielsweise mit der Einstellung 360 Grad deinen Roboter einmal um die eigene Achse drehen lassen kannst. Der Block »Drehe ... Tempo ... Grad« steuert beide Motoren des Roboters, damit sich der Roboter um die eigene Achse dreht.
+Wenn die eingestellten Werte der Aktionen mit der Programmausführung nicht übereinstimmen, prüfe die Roboter-Konfiguration, insbesondere den Raddurchmesser und die Spurbreite.
+Einstellmöglichkeiten und Eingabewerte: +
+Mit dem Block »Drehe ... Tempo« kannst du die Richtung (rechts/links), in der sich der Roboter drehen soll, programmieren. Dein Roboter dreht sich so lange auf der Stelle, bis er gestoppt wird oder ein anderer Block zum Fahren verwendet wird. Die Geschwindigkeit kannst Du im Feld »Tempo« einstellen. »Drehe« steuert beide Motoren des Roboters gleichzeitig in entgegengesetzten Richtungen, dadurch dreht sich der Roboter auf der Stelle.
+Einstellmöglichkeiten und Eingabewert: +
+Falls sich dein Roboter in die falsche Richtung dreht, sind die Motoren an die falschen Ports angeschlossen. Es genügt dann, die Ports zu tauschen, damit der Roboter in die richtige Richtung dreht.
+Mit dem Block »Motor Port ... an Tempo ... Umdrehungen/Grad« stellst du das Tempo (Geschwindigkeit) eines Motors ein. Dein Roboter startet den gewählten Motor, bis er die eingestellte Anzahl Umdrehungen bzw. Winkelgrade gemacht hat.
+Einstellmöglichkeiten und Eingabewerte: +
+Dieser Block setzt das Tempo (Geschwindigkeit) eines Motors auf einen neuen Wert.
+Optionen und/oder Eingabewerte: +
+Mit diesem Block kannst du einen Motor deines Roboters stoppen.
+Optionen: +
+Dieser Block steuert einen der Servomotoren. Wähle aus, welches Servo du betätigen willst und wie weit es sich bewegen soll.
+Optionen und/oder Eingabewerte: +
+Mit dem Block »Zeige Text« kannst du Text und Zahlen auf dem Display deines Roboters anzeigen lassen. Dabei kannst du zusätzlich noch bestimmen, in welcher Zeile der Text auf dem Bildschirm erscheinen soll.
+Das Display ist für Texte in mehreren Zeilen (von links nach rechts) eingeteilt.
+Wenn zuvor schon etwas auf dem Display angezeigt war, werden nur die Stellen überschrieben, in die der Text geschrieben wird.
+Eingabewerte: +
+Mit diesem Block kann der Bildschirminhalt deines Roboters gelöscht werden.
Mit diesem Block kannst du Text auf dem Serial Monitor über USB anzeigen.
+Eingabewert: +
+Mit diesem Block kannst du den Roboter einen Klang aus dem Auswahlmenü abspielen lassen.
+Auswahlmöglichkeiten: +
+Mit dem Block »Setze LED ... Helligkeit % ...« kannst du die Helligkeit der LED einstellen.
+Einstellmöglichkeiten: +
+Mit diesem Block kannst du die Bildschirmtasten deines Roboters abfragen, ob sie gerade gedrückt werden.
+Optionen: +
+Mit diesem Block kannst du den Ultraschallsensor deines Roboters abfragen. Dieser Sensor misst die Entfernung zum nächsten Objekt, indem er Ultraschallwellen aussendet und aus der Reflexion dieser Wellen die Distanz zu dem Objekt berechnet.
+Rückgabewert: +
+Mit diesem Block kannst du den Infrarotsensor deines Roboters verwenden, um eine Linie zu erkennen. Eine heller Bereich der Linie wird als »0« gelesen, ein dunkler Bereich wird als »1« gelesen. +
+Optionen:
+Rückgabewert:
+Mit dem Block »Gib Umdrehungen/Grad/Abstand Drehsensor« kannst du einem anderen Block die Motorumdrehungen »mitteilen«.
+Wenn »Umdrehungen« eingestellt wurde, wird die Zahl der Umdrehungen ausgegeben.
+Wenn »Grad« eingestellt wurde, wird die Gradzahl aller Umdrehungen ausgegeben, wobei eine volle Umdrehung genau 360 Grad entspricht.
+Wenn »Abstand« eingestellt wurde, wird berechnet, welche Strecke das Rad des Motors zurückgelegt hat. Das ist natürlich abhängig davon, wie groß das Rad in der Roboterkonfiguration eingestellt ist.
+Einstellmöglichkeiten: +
+Rückgabewert: +
+Mit dem Block »Setze Drehsensor zurück« kann der interne Sensor (Motor-Encoder) eines Motors auf den Wert 0 zurückgesetzt werden.
+Einstellmöglichkeiten: +
+Mit dem Block »Gib Wert Zeitgeber« kannst du einem anderen Block den aktuellen Stand des internen Zeitgebers in Millisekunden »mitteilen«. Der Zeitgeber wird automatisch mit dem Beginn eines Programms gestartet. Es stehen 5 Zeitgeber zur Verfügung.
+Einstellöglichkeiten: +
+Rückgabewert: +
+Mit dem Block »Setze Zeitgeber« können die internen Zeitgeber (1 bis 5) auf den Wert 0 zurückgesetzt werden.
+Einstellmöglichkeiten: +
+Mit dem Block »Mini-Taster ... gedrückt?« kann einem anderen Block mitgeteilt werden, ob der ausgewählte Taster gedrückt wird.
+Eingabewert: +
+Mit dem Block »Gib Wert % Lichtsensor« kann einem anderen Block mitgeteilt werden, wie hell das Licht ist, das den Lichtsensor des Roboters trifft.
+Rückgabewert: +
+Dieser Block nutzt den Phototransistor, der dem Roboter angeschlossen werden kann, um einem anderen Block mitzuteilen, ob es hell ist.
+Rückgabewert: +
+Der NTC-Widerstand enthält einen Heißleiter. Dieser zeichnet sich dadurch aus, dass er bei höheren Temperaturen Strom besser leitet als bei niedrigen. So kann der Roboter vom gemessenen Widerstand auch die Temperatur berechnen. Mit diesem Block können beide Werte jeweils zurückgegeben werden.
+Rückgabewert: +
+Mit dem Block »Gib ... Umweltsensor« kann einem Block ein bestimmter Messwert des Umweltsensors mitgeteilt werden. Der Umweltsensor hat diverse Funktionen. Er kann die Temperatur, die Luftfeuchtigkeit, den Luftdruck und die Innenraumluftqualität messen.
+Rückgabewert: +
+Mit dem Block »Kalibriere Umweltsensor« kann der Umweltsensor neu kalibriert werden. Das ist am Anfang nötig und wenn er ungenaue Messwerte liefert. Die Kalibrierung dauert etwa 5 Minuten.
+Mit dem Block »Gib ... RGB Gestensensor« kann einem anderen Block diverse Rückgabewerte des RGB Gestensensors mitgeteilt werden. Der Sensor nimmt Farbe, Umgebungslicht, Geste, Nähe und RGB wahr.
+Rückgabewert: +
+Mit dem Block »Gib Beschleunigung g Kombisensor« kann einem anderen Block mitgeteilt werden, wie schnell der mit Kombisensor ausgestattete Roboter beschleunigt.
+Eingabewert: +
+Rückgabewert: +
+Mit dem Block »Gib magnetischer Fluss °« kann über den Kombisensor anhand des Magnetfelds der Erde ermittelt werden, in welche Himmelsrichtung der Roboter gedreht ist.
+Rückgabewert: +
+Mit dem Block »Gib gyroscope °« kann einem anderen Block über den Kombisensor mitgeteilt werden, wie schnell sich der Roboter in eine bestimmte Richtung dreht. Die gemessene Achse (x,y,z) muss dabei angegeben werden.
+Eingabewert: +
+Mit dem Block »gib Farbe Farberkennung« kann einem anderen Block die erkannte Farbe mitgeteilt werden.
+Rückgabewert: +
+Mit dem Block »gib Anzahl Linien« kann einem anderen Block mitgeteilt werden, wie viele Linien im eingestellten Kamerabild erkannt werden.
+Rückgabewert: +
+Mit dem Block »Gib Informationen von Linie #« kann einem andern Block die Position der Linie im Kamerabild, sowie die erkannte breite mitgeteilt werden. Die Maximal 4 von der Kamera erkannten Bilder werden mit den Zahlen 0-3 Indiziert.
+Dabei Ist zu beachten, dass die erste Linie den Index »0« hat, und die vierte den Index »3«.
+Eingabewert: +
+Mit dem Block »Gib Farbe von Linie #« kann einem anderen Block die Farbe einer Linie am ausgewählten Index (0-3) mitgeteilt werden.
+Dabei Ist zu beachten, dass die erste Linie den Index »0« hat, und die vierte den Index »3«.
+Eingabewert: +
+Mit dem Block »Gib Ball Informationen« kann einem anderen Block die Position des Balls im Kamerabild sowie dessen vom Roboter gemessener Durchmesser mitgeteilt werden.
+Damit ein Ball erkannt wird, muss in der Konfiguration dessen Farbe festgelegt werden.
+Rückgabewert: +
+Mit dem Block »Gib Bewegung Bewegungserkennung« kann einem anderen Block mitgeteilt werden, ob der Roboter im Kamerabild eine Bewegung wahrnimmt.
+Rückgabewert: +
+Mit dem Block »Wenn mache« kannst du gezielt Aktionen auslösen, die von einer Bedingung abhängen. Der »Wenn mache«-Block benötigt einen logischen Wert als Eingabewert. Falls die Bedingung in »Wenn« erfüllt (wahr) ist, wird der eingefügte Block (oder die Blöcke) ausgeführt. Bei einem verschachtelten »Wenn mache« Block, also wenn eine weitere Unterscheidung eingefügt wurde, wird zuerst die erste »Wenn« Bedingung abgefragt und, falls diese nicht erfüllt ist (Bedingung = falsch), wird die zweite »oder wenn« Bedingung geprüft. Auch diese zweite Bedingung benötigt wieder einen logischen Wert als Eingabewert.
+Die Bedingungen können beliebig durch Anklicken des »+« Plus-Symbols erweitert und durch das »-« Minus-Symbol wieder bis auf eine einzige Bedingung reduziert werden.
+Einstellmöglichkeiten und Eingabewerte: +
+Mit dem Block »Wenn mache sonst« kannst du gezielt Aktionen auslösen, die von einer Bedingung abhängen. Der »Wenn mache sonst«-Block benötigt hierfür einen logischen Wert als Eingabewert. Falls die Bedingung erfüllt (wahr) ist, wird der dort eingefügte Block (oder die Blöcke) ausgeführt, ansonsten (Bedingung nicht erfüllt = falsch) wird der Block (bzw. die Blöcke), der bei »sonst« eingefügt wurde, ausgeführt. Bei einem verschachtelten »Wenn mache sonst« Block, also wenn eine weitere Unterscheidung dazugefügt wurde, wird zuerst die erste »Wenn« Bedingung abgefragt und, falls diese nicht erfüllt ist, wird die zweite »oder wenn« Bedingung geprüft. Auch diese zweite Bedingung benötigt wieder einen logischen Wert als Eingabewert. Nur wenn beide Bedingungen nicht erfüllt sind, wird der Block ausgeführt, der bei »sonst« eingefügt wurde.
+Die Bedingungen können beliebig durch anklicken des »+« Plus-Symbols erweitert und durch das »-« Minus-Symbol wieder bis auf eine einzige Bedingung reduziert werden.
+Einstellmöglichkeiten und Eingabewerte: +
+Mit dem Block »Wiederhole unendlich oft« kannst du Blöcke endlos von deinem Roboter ausführen lassen. Alle Blöcke, die sich im »Wiederhole unendlich oft«-Block befinden, werden immer wieder ausgeführt. Die Blöcke werden dabei von oben nach unten ausgeführt. Sobald der letzte Block ausgeführt wurde, beginnt das Programm wieder mit dem ersten Block. Deshalb wird dieser Block auch »Endlosschleife« genannt.
+Eingaben: +
+Mit dem Block »Wiederhole n mal« kannst du andere Blöcke beliebig oft von deinem Roboter ausführen lassen. Alle Blöcke, die sich im Block »Wiederhole n mal« befinden, werden so oft ausgeführt, wie im Eingabefeld eingestellt ist. Die Blöcke werden dabei von oben nach unten ausgeführt. Sobald der letzte Block ausgeführt wurde, beginnt das Programm wieder mit dem ersten Block, bis die eingestellte Wiederholungszahl erreicht ist. Deshalb wird dieser Block auch »Schleife« genannt.
+Nur ganzzahlige Werte können eingegeben werden.
Einstellmöglichkeiten und Eingabewerte: +
+Mit dem Block »Wiederhole solange/bis« kannst du andere Blöcke beliebig oft von deinem Roboter ausführen lassen. Alle Blöcke, die sich im Block »Wiederhole solange/bis« befinden, werden immer wieder ausgeführt, solange bzw. bis die Bedingung im Eingabefeld erfüllt ist. Die Blöcke werden dabei von oben nach unten ausgeführt. Sobald der letzte Block ausgeführt wurde, beginnt das Programm wieder mit dem ersten Block, solange bzw. bis die Bedingung im Eingabefeld erfüllt ist. Deshalb wird dieser Block auch »bedingte Schleife« genannt.
+Einstellmöglichkeiten und Eingabewerte: +
+Mit dem Block »Für Wert aus der Liste« werden nacheinander alle Werte einer Liste an eine Variable übergeben und können dann in der so genannten Schleife verarbeitet werden. Mit jedem Schleifendurchlauf wird das nächste Element aus der Liste geholt, bis die Liste vollständig abgearbeitet ist. Der Wert des Listenelements wird an die Variable Element gebunden und kann in den enthaltenen Blöcken verwendet werden.
+Einstellmöglichkeiten und Eingabewerte: +
+Mit dem Block »Zähle von bis« kannst du andere Blöcke mehrfach von deinem Roboter ausführen lassen. Alle Blöcke, die sich im Block »Zähle von bis« befinden, werden so oft ausgeführt, bis die Zählung im Eingabefeld abgearbeitet ist. Die Blöcke werden dabei von oben nach unten ausgeführt. Sobald der letzte Block ausgeführt wurde, beginnt das Programm wieder mit dem ersten Block, solange die Zählbedingung im Eingabefeld erfüllt ist, d.h. der Endwert der Zählung noch nicht erreicht ist. Die Werte der Zählung werden jeweils an die Zählvariable gebunden, deren Name frei eingestellt werden kann. Der Wert der Zählvariablen kann in den Blöcken der Schleife verwendet werden. Der letzte Eingabewert gibt an, in welcher Schrittweite gezählt wird.
+Einstellmöglichkeiten und Eingabewerte: +
+Mit dem Block »Die Schleife abbrechen/mit der nächsten Iteration der Schleife fortfahren« kann eine Schleife vorzeitig beendet bzw. wieder zum Anfang der Schleife gesprungen werden. Sobald dieser Block in einer Reihe von Blöcken erscheint, werden alle nachfolgenden Blöcke bis zum Ende der Schleife ignoriert.
+Einstellmöglichkeiten: +
+Mit dem Block »Warte bis« kannst du dein Programm an der Stelle »anhalten«, an der du den »Warte bis«-Block eingefügt hast. Dein Programm wartet dann so lange, bis die Bedingung erfüllt (wahr) ist. Den »Warte bis«-Block kannst du mit dem »+«-Zeichen um zusätzliche Bedingungen erweitern. Dein Programm wartet dann solange, bis (mindestens) eine der Bedingungen deines »Warte bis«-Blocks erfüllt ist.
+Einstelmöglichkeiten und Eingabewert: +
+Mit dem Block »Warte« kannst du dein Programm an der Stelle "anhalten", an der du den Block eingefügt hast. Dein Programm bleibt dann für die angegebene Dauer an dieser Stelle stehen. Nach Ablauf der angegebenen Zeit wird dann der nachfolgende Block ausgeführt. Beispielsweise kannst du dadurch einen Text in dem Display deines Roboters exakt für diese Zeit anzeigen lassen.
+Einstellmöglichkeiten: +
+Mit dem Block »Warte bis« kannst du dein Programm an der Stelle »anhalten«, an der du den »Warte bis«-Block eingefügt hast. Dein Programm wartet dann so lange, bis die Bedingung erfüllt (wahr) ist. Den »Warte bis«-Block kannst du mit dem »+«-Zeichen um zusätzliche Bedingungen erweitern. Dein Programm wartet dann solange, bis (mindestens) eine der Bedingungen deines »Warte bis«-Blocks erfüllt ist.
+Einstelmöglichkeiten und Eingabewert: +
+Mit dem Block »Vergleiche« kannst du verschiedene Eingabewerte (Zahl, Farbe, logischer Wert, Text) gleichen Typs miteinander vergleichen. Stimmt der Vergleich, wird der logische Wert »wahr« zurückgegeben, sonst »falsch«.
+Einstellmöglichkeiten und Eingabewerte: +
+Rückgabewert: +
+Mit dem Block »und/oder« kannst du logische Werte zueinander in Beziehung setzen. Der »und/oder« Block liefert bei der Einstellung »und« nur dann den logischen Wert »wahr«, wenn beide Eingabewerte des Blocks gleichzeitig »wahr« sind. Bei der Einstellung »oder« genügt es, wenn einer der beiden Eingabewerte »wahr« ist, damit der »und/oder« Block als logischen Wert »wahr« liefert.
+Einstellmöglichkeiten und Eingabewerte: +
+Rückgabewert: +
+Mit dem Block »nicht« kannst du einen logischen Wert umkehren. Der logische Wert ergibt sich aus der logischen Umkehrung des Eingabewertes, aus »wahr« wird »falsch« und umgekehrt.
+Eingabewert: +
+Rückgabewert: +
+Mit dem Block »wahr/falsch« kannst du entweder den logischen Wert »wahr« oder »falsch« an einen anderen Block übermitteln.
+Einstellmöglichkeiten: +
+Rückgabewert: +
+Der Block »null« ist ein Platzhalter für eine Eingabe, die noch unbestimmt ist. Wenn z.B. eine neue Verbindungsvariable für die Kommunikation erzeugt wird und noch nicht belegt ist, wird der Anfangswert auf »null« gesetzt.
+Rückgabewert: +
+Mit dem Block »teste« kannst du einen Test durchführen und je nach Ergebnis unterschiedliche Ergebnisse zurückgeben.
+Eingabewerte: +
+Rückgabewert: +
+Mit dem Block »Wert« kannst du Zahlen an einen anderen Block übermitteln.
+Eingabewert: +
+Rückgabewert: +
+Mit dem Block »Rechnen« kannst du Zahlen addieren, subtrahieren, multiplizieren, dividieren oder potenzieren. Dieser Block ist nur in Verbindung mit einem anderen Block nutzbar, der eine Zahl als Eingabewert benötigt.
+Einstellmöglichkeiten und Eingabewerte: +
+Rückgabewert: +
+Mit dem Block »Mathematische Funktionen« können einige elementare mathematische Funktionen berechnet werden.
+Einstellmöglichkeiten und Eingabewert: +
+Rückgabewert: +
+Mit dem Block »Trigonometrische Funktionen« können Sinus, Cosinus, Tangens und die zugehörigen Umkehrfunktionen berechnet werden. Die Eingabewerte werden im Bogenmaß erwartet (siehe Hinweis oben).
+Einstellmöglichkeiten und Eingabewert: +
+Rückgabewert: +
+Der Block »Konstanten« stellt einige mathematische Konstanten bereit. »π« (3,1415...), »e« (2,718...), »φ« (1,618...), »sqrt(2)« (1,414...), »sqrt(½)« (0,7071...), »∞«.
+Einstellmöglichkeiten: +
+Rückgabewert: +
+Mit dem Block »Zahleneigenschaft« wird geprüft, ob eine eingegebene Zahl eine bestimmte Eigenschaft aufweist. »gerade«, »ungerade«, »ist Primzahl«, »ganze Zahl«, »positiv«, »negativ«, »teilbar durch«.
+Einstellmöglichkeiten und Eingabewert: +
+Rückgabewert: +
+Mit dem Block »Erhöhe um x« wird der Wert einer numerischen Variable um einen Betrag erhöht.
+Eingabewerte: +
+Mit dem Block »runden« können Werte gerundet werden. Beim Runden werden die Nachkommastellen auf 0 gesetzt. Es wird je nach Größe der Nachkommastellen automatisch auf- oder abgerundet. Man kann jedoch auch einstellen, dass stets auf- bzw. stets abgerundet werden soll.
+Einstellmöglichkeiten und Eingabewert: +
+Rückgabewert: +
+Mit dem Block »Liste auswerten« können verschiedene Analysen einer Liste vorgenommen werden:
+Einstellmöglichkeiten und Eingabewert: +
+Rückgabewert: +
+Der Block »Rest von« führt eine Division durch und liefert den Rest der Division, der nicht mehr durch den Divisor geteilt werden konnte.
+Eingabewerte: +
+Rückgabewert: +
+Der Block »Begrenze« sorgt dafür, dass Grenzwerte nicht überschritten werden. Er erfordert drei Eingabewerte:
+Der Rückgabewert ist
+Eingabewerte: +
+Rückgabewert: +
+Mit dem Block »Ganzzahlige Zufallswerte« können ganzzahlige Zufallswerte innerhalb selbst gewählter Grenzen erzeugt werden.
+Eingabewerte: +
+Rückgabewert: +
+Mit dem Block »Zufallszahl« wird eine Zufallszahl zwischen 0,0 und 1,0 bestimmt.
+Rückgabewert: +
+Dieser Block wandelt eine Zahl in eine Zeichenkette um, die diese Zahl enthält. Als Beispiel wird die Zahl 123 in die Zeichenkette »123« umgewandelt.
+Optionen und Eingabewerte: +
+Dieser Block wandelt eine einzelne Zahl den dazugehörigen ASCII-Buchstaben um. Falls es zu dieser Zahl kein dazugehöriges ASCII-Zeichen gibt, wird eine leere Zeichenkette weitergegeben. So wird z.B. die Zahl 97 in den Buchstaben »a« umgewandelt. +
+Optionen und Eingabewerte: +
+Mit diesem Block führst du eine Berechnungsschritt deines Neuronalen Netzwerks aus. Bevor du diesen Block verwendest, solltest du die Werte der Eingabe-Neuronen mit dem Block »Schreibe Wert Eingabe-Neuron ...« setzen. + Die Eingabe-Werte werden in das Netzwerk gegeben und die Werte der Ausgabe-Neuronen werden anhand des Netzes aus dem Tab »Neuronales Netz« berechnet. Eine detaillierte Beschreibung des Neuronalen Netzwerks findest du hier. Die Werte der Ausgabe-Neuronen kannst du nach der Berechnung mit dem Block »gib Wert Ausgabe-Neuron ...« abfragen. +
Mit diesem Block kannst du den Wert eines Eingabeneurons setzen. Du kannst als Eingabewert entweder Variablen, Zahlen, Sensordaten oder mathematische Operationen verwenden, z.B. die Summe von zwei Zahlen.
+Optionen und Eingabewerte: +
+Mit diesem Block kannst du den Wert eines Ausgabe-Neurons abfragen. Du solltest diesen Block erst nach dem Block »Mache einen NN Schritt« verwenden, da sonst noch kein Wert für die Ausgabeneuronen berechnet worden ist.
+Optionen: +
+Rückgabewert: +
+Mit diesem Block kannst du das Gewicht einer Verbindung zwischen zwei Neuronen setzen, die direkt miteinander verbunden sind.
+Optionen und Eingabewerte: +
+Mit diesem Block kannst du den Bias eines Neurons setzen.
+Optionen und Eingabewerte: +
+Mit diesem Block kannst du den aktuellen Wert des Gewichts einer Verbindung zwischen zwei Neuronen abfragen, die direkt miteinander verbunden sind.
+Optionen: +
+Rückgabewert: +
+Mit diesem Block kannst du den Bias eines Neurons abfragen.
+Optionen: +
+Rückgabewert: +
+Mit dem einfachen »Text«-Block wird ein Stück Text bereitgestellt.
+Eingabewert: +
+Rückgabewert: +
+Dokumentiere dein Programm mit diesem Block, damit du und andere es später leichter haben, dein Programm zu verstehen. Dieser Kommentar wird auch im generierten Source Code zu sehen sein.
+Eingabewert: +
+Mit dem »Erstelle Text«-Block wird ein Stück Text aus verschiedenen Eingabewerten zusammengesetzt. Mit dem +-Zeichen können weitere Eingabemöglichkeiten geschaffen werden. Alle Eingaben werden zu einer kontinuierlichen Zeichenkette zusammengefügt.
+Eingabewerte: +
+Rückgabewert: +
+Mit dem »werte ... als ...«-Block wird ein als Text eingegebener Ausdruck ("expression") ausgewertet und das Ergebnis zurückgegeben. Der Ausdruck kann z.B. "sqrt(a^2 + b^2)" sein. Er wird zu einer Zahl ausgewertet. Der Block ist sehr leistungsstark: nahezu alle Ausdrücke, die mit Blockly-Blöcken erzeugt werden können, lassen sich auch als Text schreiben.
+Wie der Ausdruck aufgebaut werden kann, ist auf einer eigenen Wiki-Seite beschrieben. Bitte beachten: es gibt allgemeine Ausdrücke, die für jeden Roboter gültig sind, und spezifische Teile, die nur für den jeweils ausgewählten Roboter gelten. Das muss so sein, weil jeder Roboter eigene Sensoren und Aktoren unterstützt. Das ist detailliert auf der Wiki-Seite beschrieben. +
+Der Benutzer muss in einem Drop-Down angeben, welchen Typ für das Ergebnis erwartet wird. Welche Typen möglich sind, hängt vom jeweils ausgewählten Roboter ab.
+Eingabewerte: +
+Optionen: +
+Mit dem »Text anhängen«-Block können Zeichenketten erweitert werden, z.B. indem an empfangene Nachrichten eine Signatur angehängt wird.
+Eingabemöglichkeiten: +
+Dieser Block wandelt eine Zeichenkette in eine Zahl um, falls dies möglich ist. Wenn eine Zeichenkette also nur Zahlen enthält, kann dieser Block die Zeichenkette in eine Zahl umwandeln. Wenn der Block keine Zahlen enthält, gibt dieser Block »NaN« in der Simulation des Open Roberta Labs weiter, kann aber auch ein anderes Verhalten aufweisen, welches von der verwendeten Programmiersprache des Roboters abhängt. Falls die Zeichenkette zwar mit Zahlen beginnt, aber danach weitere Zeichen enthält, die keine Zahlen sind, gibt dieser Block nur die Zahlen weiter und stoppt, sobald das erste Zeichen in der Zeichenkette steht. Also als Beispiel macht dieser Block aus der Zeichenkette »52abcd« die Zahl 52. +
+Optionen und Eingabewerte: +
+Dieser Block wandelt einen Buchstaben oder ein Zeichen aus einer Zeichenkette in die dazugehörige ASCII-Nummer um. Jedes Zeichen hat dabei eine dazugehörige Nummer in der ASCII-Tabelle. So wird z.B. ein kleines »a« in die Zahl 97 umgewandelt. +
+Optionen und Eingabewerte: +
+Der Block »Erzeuge eine leere Liste« erzeugt eine Liste ohne Inhalt. Der Block »Liste« erzeugt eine Liste mit einigen voreingestellten Werten. Mit + und - können weitere Listenelemente am Ende hinzugefügt bzw. entfernt werden. Wenn das letzte Element einer Liste entfernt wurde, liegt eine leere Liste vor.
+Einstellmöglichkeiten: +
+Der Block »Wiederhole Element in Liste« erzeugt eine Liste mit gleichen Elementen.
+Einstellmöglichkeiten: +
+Der Block »Länge« gibt als Wert die Länge einer Liste zurück, die als Eingabewert angegeben wird. Eine leere Liste hat die Länge 0.
+Eingabewert +
+Eine als Eingabewert gegebene Liste wird geprüft, ob sie leer ist.
+Eingabewert +
+Eine Liste wird durchsucht, ob ein Element darin enthalten ist. Wenn das Element enthalten ist, wird die Listenposition zurückgegeben. Wenn das Element nicht enthalten ist, ist das Ergebnis -1.
+Einstellmöglichkeiten: +
+Zahl, die Position, an der das Element in der Liste steht.
+Beachte: Die Zählung der Listenpositionen beginnt bei 0.
Mit diesem Block wird auf ein Element einer Liste zugegriffen. Das Element wird gegebenenfalls verändert.
+Es wird eine Liste als Eingabe übergeben. Danach wird per Drop-Down-Liste spezifiziert, was mit dem Listenelement geschehen soll. Anschließend wird angegeben, in welcher Richtung die Liste durchsucht werden soll, ob von vorn (links), von hinten (rechts) oder zufällig.
+Einstellmöglichkeiten und Eingabewerte +
+Zahl, Listenposition. Dieser Eingabewert entfällt, wenn zuvor »erste«, »letzte« oder »zufälliges« als Position bestimmt wurde.
+Beachte: Die Zählung der Listenpositionen beginnt bei 0.
In einer als Eingabewert übergebenen Liste wird ein näher spezifiziertes Element durch einen neuen Wert ersetzt bzw. es wird ein Wert eingefügt.
+Einstellmöglichkeiten und Eingabewerte: +
+Aus einer als Eingabewert übergebenen Liste wird eine Unterliste erzeugt. In der Unterliste sind alle Elemente enthalten, die den weiteren Spezifikationen dieses Blocks entsprechen.
+Einstellmöglichkeiten und Eingabewerte: +
+Mit diesem Block kannst du eine Farbe aus einer Auswahl von vordefinierten Farben auswählen.
+Option: +
+Rückgabewert: +
+Mit diesem Block kannst du eine Farbe aus einer Auswahl von vordefinierten Farben auswählen.
+Option: +
+Rückgabewert: +
+Mit diesem Block kannst du eine Farbe aus einer Auswahl von vordefinierten Farben auswählen.
+Option: +
+Rückgabewert: +
+Mit diesem Block kannst du dir eine eigene Farbe erstellen, indem du deine Farbe aus Rot, Grün und Blau mischst.
+Eingabewerte: +
+Roboter erkennen den genauen Farbton oft nicht Präzise. Durch die Lichtverhältnisse kann so eine Farbe als zu dunkel oder zu hell wahrgenommen werden. Dieser Block ermöglicht die Einstellung eines Toleranzbereichs für die zu erkennende Farbe, damit beispielsweise jeder Rotton als Rot erkannt wird.
+Eingabewerte: +
+Mit dem Block »Schreibe Variable« kannst du den Wert einer Variablen verändern. Je nach Typ der Variablen (Zahl, Zeichenkette, logischer Wert, Liste, Farbe, Verbindung) kann der Variablen ein passender Wert übergeben werden.
+Einstellmöglichkeit und Eingabewert: +
+Mit dem Block »lies Variable« kannst du den Wert einer Variablen an einen anderen Block übergeben. Der Typ des Ausgabewertes entspricht immer dem Typ, mit dem die Variablen im Block »Start« initialisiert wurde.
+Einstellmöglichkeit: +
+In einem Funktionsblock ohne/mit Eingabe- und Rückgabewert wird eine Folge von Anweisungen zusammengefasst. Die Eingabewerte werden durch die lokalen Variablen im Funktionsblock festgelegt. Mit dem »+«-Zeichen können lokale Variablen als Eingabewerte für den Funktionsblock erzeugt werden. Lokale Variablen werden nicht initialisiert.
+Falls in einen Funktionsblock eine Wenn-Abfrage (siehe unten) eingebaut wird, kann es zu einem vorzeitigen Abbruch der Funktion kommen.
+Der Funktionsblock steht nach seiner Definition als zusätzlicher Block in der Kategorie »Funktion« zur Verfügung. Auf diese Weise kann die Lesbarkeit komplexer Programme wesentlich vereinfacht werden.
+Einstellmöglichkeiten: +
+In einem Funktionsblock ohne/mit Eingabe- und mit Rückgabewert wird eine Folge von Anweisungen zusammengefasst. Mit dem »+«-Zeichen können lokale Variablen als Eingabewerte für den Funktionsblock erzeugt werden. Nachdem alle Anweisungen durchlaufen wurden, wird abschließend ein Wert als Funktionswert zurückgegeben.
+Falls in einen Funktionsblock eine Wenn-Abfrage eingebaut wird, kann es zu einem vorzeitigen Abbruch der Funktion kommen, und es kann ein alternativer Funktionswert zurückgegeben werden.
+Der Funktionsblock steht nach seiner Definition als zusätzlicher Block in der Kategorie »Funktion« zur Verfügung. Auf diese Weise kann die Lesbarkeit komplexer Programme wesentlich vereinfacht werden.
+Einstellmöglichkeiten: +
+Die Wenn-Abfrage innerhalb einer Funktion ist von besonderer Bedeutung. Sobald der Funktionsablauf auf eine Wenn-Abfrage trifft, wird die Gültigkeit der Bedingung geprüft.
+Einstellgabewerte: +
+Mit diesem Block kannst du eine vorher definierte Funktion aufrufen. Diese Funktion gibt dabei keinen Wert zurück.
+Eingabewerte: +
+Mit diesem Block kannst du eine vorher definierte Funktion aufrufen und den Rückgabewerte abrufen.
+Eingabewerte: +
+Each program starts with the red »Program start« block.
This block is always available in the Open Roberta Lab and cannot be deleted. The little triangle below the start block is called »sequence connector«. The first block you want to use will be connected by using the »sequence connector« at the start block. The sequence connector color changes to yellow when a suitable block comes into its range.
Settings: -
If global variables have been created: -
With the »drive distance« block you can program the direction and the speed of the robot. The speed of your robot is set in the »speed« parameter. Once the block has been executed the motors stop automatically.
»drive distance« controls both motors of the robot at the same time, meaning that the settings you make here apply to both motors of the robot. If the robot's actions don't correspond with the block's settings when running the program, check the robot configuration settings, especially the wheel diameter and the track width.
Settings and input values: -
With the »drive« block you can program the direction and also the speed (velocity) of your robot. Your robot moves until it is stopped or another block specifies new driving parameters. The driving speed can be set in the field »speed«.
Options and Arguments: -
The »stop« block stops the motors immediately.
The block »steer ... speed left ... speed right ...« programs the robot to drive a curve by setting different speeds for the left and right motor. The robot configuration influences the radius of the curve depending from wheel distance and wheel diameter. The turning direction will define the driving direction.
Settings and input values: -
The block »steer ... speed left ... speed right ... distance ...« programs the robot to drive a curve by setting different speeds for the left and right motor and also a distance related to the middle between both wheels. The robot configuration influences the radius of the curve depending from wheel distance and wheel diameter. The turning direction will define the driving direction.
Settings and input values: -
With the »turn degree« block you program the direction (right/left) that your robot will turn. In addition to the direction you can also program the »degrees«, allowing you to program how many degrees your robot should rotate (around its axis). This means that you do a complete rotation by setting a 360 degree turn..
The »turn degree« block controls both motors of the robot in such a way that the robot turns around its own axis. If the robot's actions don't correspond with the block's settings when running the program, check the EV3 robot configuration settings, especially the wheel diameter and the track width.
Settings and input values: -
With the »turn« block you set the direction (right/left) which the robot will turn. Your robot turns until it is stopped or another block is used for driving. You can set the speed in the block parameter field »speed«.
»turn« controls both motors of the robot at the same time, therefore the robot turns on the spot. If the EV3 Robot's actions don't correspond with the block's settings when running the program, check the EV3 robot configuration settings, especially the wheel diameter and the track width.
Settings and input values: -
If your robot turns into the wrong direction, then the motors are connected to the wrong ports. Just swap the ports and your robot will turn into the right way.
With the »motor port ... rotation« block you can program the speed (velocity) of the selected motor. Your robot starts the selected motor and rotates the motor until the specified number of rotations or degrees is done.
Options and Arguments: -
With the »motor port ... on« block you can program the speed (velocity) of the selected motor. Your robot starts the selected motor, until it is stopped or another block specifies new moving parameters.
Options and Arguments: -
Using the block »stop motor port « switches off one selected motor. You can decide the motor to run out slowly (float) or to break immediately
Setting options: -
This block controls the servo motors on your Robot. Choose what servo you want to actuate, and to what degree it should move.
Options: -
With the »show text« block you can display text and numbers on the display of your robot. You can also specify in which column and row the text or numbers should be displayed on the robot screen.
Input values: -
With this block, you can delete what is shown on the display.
With this block you can display text on a Serial Monitor through USB.
Input value: -
With this block you can make the robot play a sound of your choice.
Options: -
With the »switch brick light« block you can program the background light of the display. The robot's brick light stays on until you reprogram it.
Settings: -
With the »brick light off« block you can turn off the brick light.
Settings:
-With this Block you can query one of the display buttons of your Robot, if it is currently being pressed.
Options: -
Return value: -
With this Block you can query an ultrasonic sensor. This sensor measures the distance to the closest object, by sending ultrasonic waves and capturing reflections to calculate distance to objects.
Options: -
Return value: -
With this block you can use the infrared sensors of your robot to detect a line. A light area of the line is read as "0", a dark area is read as "1".
Options: -
Returned Values: -
With the block »get rotation/degree« you can "tell" another block the rotation of the motor. The distance is transmitted as a number (in cm). In addition, this block can be set to »degree« in the drop down menu. With this setting the number of degrees is transmitted instead of cm. This block can only be used in conjunction with another block, which requires a number as an input parameter.
Settings: -
Return value: -
With the block »reset encoder« the internal sensor (motor encoder) of a motor can be reset to 0 .
Setting: -
With the block »get value« you can "tell" another block the current time in milliseconds of the internal timer. 5 timers are available.
Setting: -
Return value: -
With the block »reset timer« the internal timer (1 to 5) can be reset to the value 0.
Setting: -
With the block »get colour camera« you can "tell" another block the average colour of an area previously specified in the configurations.
Return value: -
With the block »get number of lines camera« you can "tell" another block the number of lines recognised using the camera. The robot can recognise up to 4 different lines.
Return value: -
With the block »get information by line #« you can "tell" another block the position of a chosen line as well as its' width. The up to 4 recognised lines are indexed by the numbers 0-3.
You have to keep in mind, that the first line is indexed by "0" and the last by "3".
Input value: -
With the block »get colour by line #« you can "tell" another block the colour of a chosen line.The up to 4 recognised lines are indexed by the numbers 0-3.
You have to keep in mind, that the first line is indexed by "0" and the last by "3".
Input value: -
With the block »get ball information« you can "tell" another block the position of a ball in the robot's field of vision, as well as its' width
In order to recognise a ball, you need to specify the ball's colour in the configurations.
Return value: -
With the block »get motion camera« you can "tell" another bock, whether the camera detects motion or not.
Return value: -
With the block »Mini-Switch ... pressed?« you can "tell" another block, whether the switch at a chosen port is currently being triggered or not. -
The »get value % light sensor« block can be used to tell another block how bright the light is that hits the robot's light sensor.
Return value: -
Rückgabewert: -
The »calibrate environmental sensor« block can be used to recalibrate the environmental sensor. This is necessary at the beginning and if it delivers inaccurate measured values. Calibration takes about 5 minutes.
Return value: -
The »get acceleration g Combi-sensor« block can be used to tell another block how fast the robot equipped with the combi sensor is accelerating.
Input value: -
Return value: -
The »get magnetic flux ° Combi-sensor« block can be used to determine the direction in which the robot is turned using the earth's magnetic field.
Return value: -
The »get gyroscope ° Combi-sensor« block can be used to tell another block via the combination sensor how fast the robot is turning in a certain direction. The measured axis (x,y,z) must be specified.
Input value: -
With the block »if do« you can selectively trigger actions to be executed by your robot. The »if do« block therefore requires a logical value as an input parameter, the condition. Only if the condition of the »if« statement is true, the inserted block will be executed. In a nested »if do« block, if a further distinction was added, the first »if« condition is queried. If it is not fulfilled (condition = false), the second »else if« condition will be checked. Also this second condition requires a logical value as an input parameter.
The conditions may arbitrarily be expanded by clicking the "+" plus symbol. The "-" minus symbol reduces the block.
Settings and input values: -
With the block »if do else« you can selectively trigger actions which are executed by your robot. The »if do then« block therefore requires a logical value as an input parameter. If the condition in »if« is true the inserted block will be executed, otherwise (condition is not fulfilled = false) the block connected to the »else« statement will be executed. In a nested »if do else« block with further distinctions added, the first »if« condition is queried. If it is not true, the second condition »else if« is checked. Also the second condition requires a logical value as an input parameter. Only when both conditions are not true, the block which is inserted at the »else« statement will be executed.
The conditions may arbitrarily be expanded by clicking the "+" plus symbol. The "-" minus symbol reduces the block.
Settings: -
With the block »repeat indefinitely« you can endlessly run the blocks on your robot. All blocks which are within the »repeat indefinitely« block will be executed endlessly. The blocks are applied sequentially from top to bottom. Once the last block has been executed, the program repeats with the first block again. Therefore, this block is also called »loop«.
Input: -
With the block »repeat« you can run other block as many times as you like. All blocks in the »repeat« block will be executed as often as defined in the entry field. The blocks are applied sequentially from top to bottom. Once the last block has been executed, the program repeats with the first block again. Therefore, this block is also called »loop«.
Only integer values can be entered.
Settings and input: -
With the block »wait« you can "pause" your program at the point where you inserted the »wait« block. Your program will then remain for the specified duration at this point. After the specified time the next block will be executed. For example you can display text in the screen of your robot for exactly the time you specified in the »wait« block.
Settings and input values: -
With the block »wait until« you can "stop" your program at the point you insert the »wait until« block. Your program then waits until the condition is true. The »wait until« block you can extended by click on "+" symbol. Your program then waits until (at least) one of the condition of your »wait until« block is true.
Settings: -
With the block »wait until« you can "stop" your program at the point you insert the »wait until« block. Your program then waits until the condition is true. The »wait until« block you can extended by click on "+" symbol. Your program then waits until (at least) one of the condition of your »wait until« block is true.
Settings: -
With the block »break out/continue with next iteration of loop« a loop can be terminated ahead of schedule. As soon as the block is entered within a sequence of blocks, all further blocks up to the end of the loop will be ignored.
Settings: -
With the block »count with from to« you can run other block as many times as you like. All blocks in the »count with from to« block will be executed as long as the counting is in progress. The blocks are applied sequentially from top to bottom. Once the last block has been executed, the program repeats with the first block again if the counting is in progress. The last parameter declares the step width for counting.
Settings: -
With the block »for each item in list« all list items will successively be bound to a variable. The variable can be used within the loop. With each loop cycle the next item of the list will be bound until all list elements have been processed.
Settings and input value: -
With the block »repeat while/until« you can run other block as many times as you like. All blocks in the »repeat while/until« block will be executed as long as the condition in the entry field is true. The blocks are applied sequentially from top to bottom. Once the last block has been executed, the program repeats with the first block again if the condition is still true. Therefore, this block is also called »conditional loop«.
Settings and input values: -
With the block »comparison« you can compare different parameters of the same type (number, color, logical value, text). This block can only be used in conjunction with another block which requires a logical value as an input parameter.
Settings and input values: -
Return value: -
With the block »and/or« you can interrelate logical values with each other. The »and/or« block with the setting "and" will be true only if both logical parameters are "'true"'. If the block has the setting »or« it is sufficient if one of the two parameters is "true", so that the »and/or« block will return true.
Settings: -
Return value: -
With the block »true/false« you can return either the logical value »true« or »false« to another block.
Settings: -
Return value: -
Using the »not« lets you invert a logical value and pass this value to another block.
Input value: -
Return value: -
Using the »test« block will perform a test and returns a value which depends on the test result.
Input values: -
Return value: -
The block »null« is a place holder for an input value that is not yet specified. If for instance a new connection variable has been created and is not yet bound, the initial value of this connection will be set to »null«.
Return value:: -
With the block »parameter« you can send numbers to another block.
Settings and input values: -
Return value: -
With the block »calculating« you can sum up, subtract, multiply, and divide numbers. This block can only be used in conjunction with another block which requires a number as an input parameter.
Settings and input values: -
Return value: -
With the block »mathematical function« some elementary mathematical functions may be calculated. Available functions are »square root«, »absolute«, »invert« (multiply by -1), »ln« (natural logarithm), »log10« (decadic logarithm), »e^« (exponential function), »10^« (base 10 exponent)
Settings and input value: -
Return value: -
With the block »trigonometric function« sine, cosine, tangent and their respective revers functions can be calculated. Input values are expected in radian measure(see hint above).
Settings and input value: -
Return value: -
With the »constant« block some mathematical constant values are available: »π« (3,1415...), »e« (2,718...), »φ« (1,618...), »sqrt(2)« (1,414...), »sqrt(½)« (0,7071...), »∞«
Settings: -
Return value: -
With the block »number property« you check whether a given number has a specific property: »even«, »odd«, »prime«, »whole«, »positive«, »negative«, »divisible by«.
Settings and input values: -
Return value: -
The block »change by ... « increments a numerical variable by a defined value.
Settings and input values: -
With the block »round« values may be rounded. Rounding will set the decimal places to 0. It depends on the value of the decimal places whether the block rounds up or down. You may also decide by settings to always round up or down.
Settings and input value: -
Return value: -
With the block »list evaluation« you may analyse a list.
Modes for list evaluation: -
Settings and input value: -
Return value: -
The block »remainder of« calculates a divison and returns the remainder of the division.
Input values: -
Return value: -
The block »constrain« ensures that given boundaries will not be exceeded.
Input values: -
Return value: -
With the block »random integer« you may generate random integer numbers within defined limits
Input values: -
Return value: -
With the block »random fraction« a random value between 0.0 and 1.0 is calculated.
Return value: -
This block converts a number into a string containing that number. So for example the number 123 would be converted into the string »123«.
Options and input values:
-
Return value: -
This block converts a single number to the corresponding ASCII letter. If there is no associated ASCII character for this number, an empty string is passed on. So for example the number 97 gets converted into the lower-case letter »a«.
Options and input values: -
Return values: -
With this block you perform a calculation step of your neural network. Before you use this block, you should set the values of the input neurons with the block "set value input neuron ...". The input values are given into the network and the values of the output neurons are calculated using the network from the tab »Neural Network«. A detailed description of the neural network can be found here. You can query the values of the output neurons after the calculation with the block »gett value output neuron ...«.
With this block you can set the value of an input neuron. You can use either variables, numbers, sensor data or mathematical operations as input values, e.g. the sum of two numbers.
Options and input values: -
With this block you can query the value of an output neuron. You should only use this block after the block »make one NN step«, otherwise no value has been calculated for the output neurons and the value is defaulted to 0.
Options: -
Return value: -
With this block you can set the weight of a connection between two neurons that are directly connected.
Options and input values: -
With this block you can set the bias of a neuron.
Options and input values: -
With this block you can query the current value of the weight of a connection between two neurons that are directly connected.
Options: -
Return value: -
With this block you can query the bias of a neuron.
Options: -
Return value: -
The simple »Text« block creates a little text.
Input value: -
Return value: -
Document your program with this block, so that you and others will find it easier to understand your program later. This comment will also be visible in the generated source code.
Input value: -
The »create text« block compiles a text from different input parameters. Using the + sign will insert further input slots. All input parameters will be connected one after the other. Essentially the »create text« block converts an arbitrary input value into a text string.
Input values: -
Return value: -
The »append text« block will append some string to a given string, for instance to extend a message with a signature.
Input values: -
This block converts a string into a number if this is possible. So if a string contains only numbers, this block can convert the string into a number. If the block does not contain numbers, this block will pass »NaN« when used in th Open Roberta Lab simulation and may have a different behavior depending on the programming language of the robot you are currently using. If the string starts with numbers but then contains other characters that are not numbers, this block will pass only the numbers and stop as soon as the first character is in the string. So, as an example, this block makes the number 52 out of the string »52abcd«.
Options and input values: -
Return values: -
This block converts a letter or a character from a character string into the corresponding ASCII number. Each character has an associated number in the ASCII table. For example, a lower-case »a« is converted into the number 97.
Options and input values: -
Return values: -
The block »empty list« creates a list with no content.The block »list« generates a list with some predefined values.
This block may only be used in the context of a »set variable« block.
Using »+« or »−« enables you to extend or reduce the list at its end.
Settings and input values: -
Return value: -
The »repeat element in list« block generates a list of equal elements.
Settings and input values: -
Return value: -
The »length of« block returns a value which is the length of the list given as parameter. An empty list has a length of 0.
Input value: -
Return value: -
A list given as parameter will be checked whether it is empty.
Input value: -
Return value: -
A list is searched for an item. If the item is in the list, the list position will be returned. If the item is not in the list the result is -1.
Settings and input values: -
Return value: -
Number, indicating the position where the element was found in the list.
Note: Counting list positions will start with 0.
This block accesses an item of a list. Depending on the settings this item may be altered.
A list is given as parameter. Then a drop-down-list specifies what will happen to the list item under consideration.
Settings: -
Number, indicating the list position. This input value is not required if »first«, »last« or »random« was selected as position.
Note: Counting of list positions starts with 0.
Return value: -
List element that has been found at the specified list position; »undefined«, if the list position does not exist.
With selection of »remove« there is no return value; instead the list will be shortened by this list element.
In a list given as input parameter one specified element will be replaced by a new value.
Settings and input values: -
From a list given as parameter a sublist will be created. The sublist contains all those elements that match the further specifications of the block.
Settings and input values: -
Number, indicating the list position. This input value is not required if »first« has been selected.
Note: Counting of list positions starts with 0.
Number, indicating the list position. This input value is not required if »last« has been selected.
Note: Counting of list positions starts with 0.
Return value: -
With this block you can choose from a pool of predefined colours for your robot.
options: -
Return value: -
With this block you can choose from a pool of predefined colours for your robot.
options: -
Return value: -
With this block you can choose from a pool of predefined colours for your robot.
options: -
Return value: -
With this block you can create your own colour by mixing red, green and blue.
Input values: -
Robots often do not recognise the exact colour tone precisely. The lighting conditions can cause a colour to be perceived as too dark or too light. This block allows you to set a tolerance range for the colour to be detected, so that every shade of red, for example, is detected as red.
Input values: -
Using the block »set variable« will assign a value to a variable. Depending on the variable type the value may be assigned by an input connector.
Settings and input value: -
Using the block »get variable« returns the value of a variable to another block.The type of the output parameter is equal to the type that has been assigned to the variable in the »start« block.
Settings:
-
Return value:
-
In a function block with/without input parameter and without return parameter a sequence of program statements will be condensed. The input parameters will be determined by the local variables of the function block. Local variables may be generated by using the »+« sign of the function block. Local variables will not be initialized.
If a function block contains an if-block the function may be terminated before reaching it's end.
The function block is available in the »Functions« category immediately after its definition. Using function blocks improves the readability of complex programs.
Settings: -
The name of a function block has to start with a lower case letter. Special characters are not allowed in a function block name.
If the function block defines input parameters (local variables), all the parameter slots have to be occupied when calling the function.
In a function block with/without input parameter and with return parameter a sequence of program statements will be condensed. The input parameters will be determined by the local variables of the function block. Local variables may be generated by using the »+« sign of the function block. Local variables will not be initialized. After running through all the blocks of the function a value will be returned.
If a function block contains an if-block the function may be terminated before reaching it's end. An alternative value may be returned by the if-block.
The function block is available in the »Functions« category immediately after its definition. Using function blocks improves the readability of complex programs.
Settings: -
Return value: -
The if statement within a function is of special importance. As the function sequence meets an if statement the validity of the condition will be checked.
Settings and input values: -
Return value: -
With this block you can call a previous defined function in your program.
Input values: -
With this block you can call a previous defined function in your program.
Input values: -
Return value: -
Each program starts with the red »Program start« block.
+This block is always available in the Open Roberta Lab and cannot be deleted. The little triangle below the start block is called »sequence connector«. The first block you want to use will be connected by using the »sequence connector« at the start block. The sequence connector color changes to yellow when a suitable block comes into its range.
+Settings: +
+If global variables have been created: +
+With the »drive distance« block you can program the direction and the speed of the robot. The speed of your robot is set in the »speed« parameter. Once the block has been executed the motors stop automatically.
+»drive distance« controls both motors of the robot at the same time, meaning that the settings you make here apply to both motors of the robot. If the robot's actions don't correspond with the block's settings when running the program, check the robot configuration settings, especially the wheel diameter and the track width.
+Settings and input values: +
+With the »drive« block you can program the direction and also the speed (velocity) of your robot. + Your robot moves until it is stopped or another block specifies new driving parameters. The driving speed can be set in the field »speed«. +
+Options and Arguments: +
+The »stop« block stops the motors immediately.
The block »steer ... speed left ... speed right ...« programs the robot to drive a curve by setting different speeds for the left and right motor. The robot configuration influences the radius of the curve depending from wheel distance and wheel diameter. The turning direction will define the driving direction.
+Settings and input values: +
+The block »steer ... speed left ... speed right ... distance ...« programs the robot to drive a curve by setting different speeds for the left and right motor and also a distance related to the middle between both wheels. The robot configuration influences the radius of the curve depending from wheel distance and wheel diameter. The turning direction will define the driving direction.
+Settings and input values: +
+With the »turn degree« block you program the direction (right/left) that your robot will turn. In addition to the direction you can also program the »degrees«, allowing you to program how many degrees your robot should rotate (around its axis). This means that you do a complete rotation by setting a 360 degree turn..
+The »turn degree« block controls both motors of the robot in such a way that the robot turns around its own axis. If the robot's actions don't correspond with the block's settings when running the program, check the EV3 robot configuration settings, especially the wheel diameter and the track width.
+Settings and input values: +
+With the »turn« block you set the direction (right/left) which the robot will turn. Your robot turns until it is stopped or another block is used for driving. You can set the speed in the block parameter field »speed«.
+»turn« controls both motors of the robot at the same time, therefore the robot turns on the spot. If the EV3 Robot's actions don't correspond with the block's settings when running the program, check the EV3 robot configuration settings, especially the wheel diameter and the track width.
+Settings and input values: +
+If your robot turns into the wrong direction, then the motors are connected to the wrong ports. Just swap the ports and your robot will turn into the right way.
+With the »motor port ... rotation« block you can program the speed (velocity) of the selected motor. Your robot starts the selected motor and rotates the motor until the specified number of rotations or degrees is done.
+Options and Arguments: +
+With the »motor port ... on« block you can program the speed (velocity) of the selected motor. Your robot starts the selected motor, until it is stopped or another block specifies new moving parameters.
+Options and Arguments: +
+Using the block »stop motor port « switches off one selected motor. You can decide the motor to run out slowly (float) or to break immediately +
+Setting options: +
+This block controls the servo motors on your Robot. Choose what servo you want to actuate, and to what degree it should move.
+Options: +
+With the »show text« block you can display text and numbers on the display of your robot. You can also specify in which column and row the text or numbers should be displayed on the robot screen.
+Input values: +
+With this block, you can delete what is shown on the display.
With this block you can display text on a Serial Monitor through USB.
+Input value: +
+With this block you can make the robot play a sound of your choice.
+Options: +
+Set the brightness of the robot's LED to a value from 0 to 100.
+Settings: +
+With this Block you can query one of the display buttons of your Robot, if it is currently being pressed.
+Options: +
+Return value: +
+With this Block you can query an ultrasonic sensor. This sensor measures the distance to the closest object, by sending ultrasonic waves and capturing reflections to calculate distance to objects.
+Options: +
+Return value: +
+With this block you can use the infrared sensors of your robot to detect a line. A light area of the line is read as "0", a dark area is read as "1".
+Options: +
+Returned Values: +
+With the block »get rotation/degree« you can "tell" another block the rotation of the motor. The distance is transmitted as a number (in cm). In addition, this block can be set to »degree« in the drop down menu. With this setting the number of degrees is transmitted instead of cm. This block can only be used in conjunction with another block, which requires a number as an input parameter.
+Settings: +
+Return value: +
+With the block »reset encoder« the internal sensor (motor encoder) of a motor can be reset to 0 .
+Setting: +
+With the block »get value« you can "tell" another block the current time in milliseconds of the internal timer. 5 timers are available.
+Setting: +
+Return value: +
+With the block »reset timer« the internal timer (1 to 5) can be reset to the value 0.
+Setting: +
+With the block »Mini-Switch ... pressed?« you can "tell" another block, whether the switch at a chosen port is currently being triggered or not. +
+The »get value % light sensor« block can be used to tell another block how bright the light is that hits the robot's light sensor.
+Return value: +
+This block uses the phototransistor that can be connected to the robot to tell another block whether it is bright.
Return value:
+
The NTC resistor contains a thermistor. This is characterised by the fact that it conducts electricity better at higher temperatures than at lower temperatures. The robot can therefore also calculate the temperature from the measured resistance. Both values can be returned with this block.
+Return value: +
+Rückgabewert: +
+The »calibrate environmental sensor« block can be used to recalibrate the environmental sensor. This is necessary at the beginning and if it delivers inaccurate measured values. Calibration takes about 5 minutes.
+Return value: +
+The »get acceleration g Combi-sensor« block can be used to tell another block how fast the robot equipped with the combi sensor is accelerating.
+Input value: +
+Return value: +
+The »get magnetic flux ° Combi-sensor« block can be used to determine the direction in which the robot is turned using the earth's magnetic field.
+Return value: +
+The »get gyroscope ° Combi-sensor« block can be used to tell another block via the combination sensor how fast the robot is turning in a certain direction. The measured axis (x,y,z) must be specified.
+Input value: +
+With the block »get colour colour detector« you can "tell" another block the average colour of an area previously specified in the configurations.
+Return value: +
+With the block »get number of lines detector« you can "tell" another block the number of lines recognised using the camera. The robot can recognise up to 4 different lines.
+Return value: +
+With the block »get information by line #« you can "tell" another block the position of a chosen line as well as its' width. The up to 4 recognised lines are indexed by the numbers 0-3.
+You have to keep in mind, that the first line is indexed by "0" and the last by "3".
+Input value: +
+With the block »get colour by line #« you can "tell" another block the colour of a chosen line.The up to 4 recognised lines are indexed by the numbers 0-3.
+You have to keep in mind, that the first line is indexed by "0" and the last by "3".
+Input value: +
+With the block »get ball information« you can "tell" another block the position of a ball in the robot's field of vision, as well as its' width
+In order to recognise a ball, you need to specify the ball's colour in the configurations.
+Return value: +
+With the block »get motion motion detector« you can "tell" another bock, whether the camera detects motion or not.
+Return value: +
+With the block »if do« you can selectively trigger actions to be executed by your robot. The »if do« block therefore requires a logical value as an input parameter, the condition. Only if the condition of the »if« statement is true, the inserted block will be executed. In a nested »if do« block, if a further distinction was added, the first »if« condition is queried. If it is not fulfilled (condition = false), the second »else if« condition will be checked. Also this second condition requires a logical value as an input parameter.
+The conditions may arbitrarily be expanded by clicking the "+" plus symbol. The "-" minus symbol reduces the block.
+Settings and input values: +
+With the block »if do else« you can selectively trigger actions which are executed by your robot. The »if do then« block therefore requires a logical value as an input parameter. If the condition in »if« is true the inserted block will be executed, otherwise (condition is not fulfilled = false) the block connected to the »else« statement will be executed. In a nested »if do else« block with further distinctions added, the first »if« condition is queried. If it is not true, the second condition »else if« is checked. Also the second condition requires a logical value as an input parameter. Only when both conditions are not true, the block which is inserted at the »else« statement will be executed.
+The conditions may arbitrarily be expanded by clicking the "+" plus symbol. The "-" minus symbol reduces the block.
+Settings: +
+With the block »repeat indefinitely« you can endlessly run the blocks on your robot. All blocks which are within the »repeat indefinitely« block will be executed endlessly. The blocks are applied sequentially from top to bottom. Once the last block has been executed, the program repeats with the first block again. Therefore, this block is also called »loop«.
+Input: +
+With the block »repeat« you can run other block as many times as you like. All blocks in the »repeat« block will be executed as often as defined in the entry field. The blocks are applied sequentially from top to bottom. Once the last block has been executed, the program repeats with the first block again. Therefore, this block is also called »loop«.
+Only integer values can be entered.
Settings and input: +
+With the block »wait« you can "pause" your program at the point where you inserted the »wait« block. Your program will then remain for the specified duration at this point. After the specified time the next block will be executed. For example you can display text in the screen of your robot for exactly the time you specified in the »wait« block.
+Settings and input values: +
+With the block »wait until« you can "stop" your program at the point you insert the »wait until« block. Your program then waits until the condition is true. The »wait until« block you can extended by click on "+" symbol. Your program then waits until (at least) one of the condition of your »wait until« block is true.
+Settings: +
+With the block »wait until« you can "stop" your program at the point you insert the »wait until« block. Your program then waits until the condition is true. The »wait until« block you can extended by click on "+" symbol. Your program then waits until (at least) one of the condition of your »wait until« block is true.
+Settings: +
+With the block »break out/continue with next iteration of loop« a loop can be terminated ahead of schedule. As soon as the block is entered within a sequence of blocks, all further blocks up to the end of the loop will be ignored.
+Settings: +
+With the block »count with from to« you can run other block as many times as you like. All blocks in the »count with from to« block will be executed as long as the counting is in progress. The blocks are applied sequentially from top to bottom. Once the last block has been executed, the program repeats with the first block again if the counting is in progress. The last parameter declares the step width for counting.
+Settings: +
+With the block »for each item in list« all list items will successively be bound to a variable. The variable can be used within the loop. With each loop cycle the next item of the list will be bound until all list elements have been processed.
+Settings and input value: +
+With the block »repeat while/until« you can run other block as many times as you like. All blocks in the »repeat while/until« block will be executed as long as the condition in the entry field is true. The blocks are applied sequentially from top to bottom. Once the last block has been executed, the program repeats with the first block again if the condition is still true. Therefore, this block is also called »conditional loop«.
+Settings and input values: +
+With the block »comparison« you can compare different parameters of the same type (number, color, logical value, text). This block can only be used in conjunction with another block which requires a logical value as an input parameter.
+Settings and input values: +
+Return value: +
+With the block »and/or« you can interrelate logical values with each other. The »and/or« block with the setting "and" will be true only if both logical parameters are "'true"'. If the block has the setting »or« it is sufficient if one of the two parameters is "true", so that the »and/or« block will return true.
+Settings: +
+Return value: +
+With the block »true/false« you can return either the logical value »true« or »false« to another block.
+Settings: +
+Return value: +
+Using the »not« lets you invert a logical value and pass this value to another block.
+Input value: +
+Return value: +
+Using the »test« block will perform a test and returns a value which depends on the test result.
+Input values: +
+Return value: +
+The block »null« is a place holder for an input value that is not yet specified. If for instance a new connection variable has been created and is not yet bound, the initial value of this connection will be set to »null«.
+Return value:: +
+With the block »parameter« you can send numbers to another block.
+Settings and input values: +
+Return value: +
+With the block »calculating« you can sum up, subtract, multiply, and divide numbers. This block can only be used in conjunction with another block which requires a number as an input parameter.
+Settings and input values: +
+Return value: +
+With the block »mathematical function« some elementary mathematical functions may be calculated. Available functions are »square root«, »absolute«, »invert« (multiply by -1), »ln« (natural logarithm), »log10« (decadic logarithm), »e^« (exponential function), »10^« (base 10 exponent)
+Settings and input value: +
+Return value: +
+With the block »trigonometric function« sine, cosine, tangent and their respective revers functions can be calculated. Input values are expected in radian measure(see hint above).
+Settings and input value: +
+Return value: +
+With the »constant« block some mathematical constant values are available: »π« (3,1415...), »e« (2,718...), »φ« (1,618...), »sqrt(2)« (1,414...), »sqrt(½)« (0,7071...), »∞«
+Settings: +
+Return value: +
+With the block »number property« you check whether a given number has a specific property: »even«, »odd«, »prime«, »whole«, »positive«, »negative«, »divisible by«.
+Settings and input values: +
+Return value: +
+The block »change by ... « increments a numerical variable by a defined value.
+Settings and input values: +
+With the block »round« values may be rounded. Rounding will set the decimal places to 0. It depends on the value of the decimal places whether the block rounds up or down. You may also decide by settings to always round up or down.
+Settings and input value: +
+Return value: +
+With the block »list evaluation« you may analyse a list.
+Modes for list evaluation: +
+Settings and input value: +
+Return value: +
+The block »remainder of« calculates a divison and returns the remainder of the division.
+Input values: +
+Return value: +
+The block »constrain« ensures that given boundaries will not be exceeded.
+Input values: +
+Return value: +
+With the block »random integer« you may generate random integer numbers within defined limits
+Input values: +
+Return value: +
+With the block »random fraction« a random value between 0.0 and 1.0 is calculated.
+Return value: +
+This block converts a number into a string containing that number. So for example the number 123 would be converted into the string »123«.
+
Options and input values:
+
Return value: +
+This block converts a single number to the corresponding ASCII letter. If there is no associated ASCII character for this number, an empty string is passed on. So for example the number 97 gets converted into the lower-case letter »a«.
+Options and input values: +
+Return values: +
+With this block you perform a calculation step of your neural network. Before you use this block, you should set the values of the input neurons with the block "set value input neuron ...". The input values are given into the network and the values of the output neurons are calculated using the network from the tab »Neural Network«. A detailed description of the neural network can be found + here. You can query the values of the output neurons after the calculation with the block »gett value output neuron ...«. +
With this block you can set the value of an input neuron. You can use either variables, numbers, sensor data or mathematical operations as input values, e.g. the sum of two numbers.
+Options and input values: +
+With this block you can query the value of an output neuron. You should only use this block after the block »make one NN step«, otherwise no value has been calculated for the output neurons and the value is defaulted to 0.
+Options: +
+Return value: +
+With this block you can set the weight of a connection between two neurons that are directly connected.
+Options and input values: +
+With this block you can set the bias of a neuron.
+Options and input values: +
+With this block you can query the current value of the weight of a connection between two neurons that are directly connected.
+Options: +
+Return value: +
+With this block you can query the bias of a neuron.
+Options: +
+Return value: +
+The simple »Text« block creates a little text.
+Input value: +
+Return value: +
+Document your program with this block, so that you and others will find it easier to understand your program later. This comment will also be visible in the generated source code.
+Input value: +
+The »create text« block compiles a text from different input parameters. Using the + sign will insert further input slots. All input parameters will be connected one after the other. Essentially the »create text« block converts an arbitrary input value into a text string.
+Input values: +
+Return value: +
+The »value ... as ...« block evaluates an expression entered as text (”expression") and returns the result. The expression can be “sqrt(a^2 + b^2)”, for example. It is evaluated to a number. The block is very powerful: almost all expressions that can be generated with Blockly blocks can also be written as text.
+How the expression can be constructed is described on a separate wiki page. Please note: there are general expressions that are valid for every robot and specific parts that are only valid for the selected robot. This is necessary because each robot supports its own sensors and actuators. This is described in detail on the wiki page. +
+The user must specify in a drop-down menu which type is expected for the result. Which types are possible depends on the selected robot.
+Input value: +
+The »append text« block will append some string to a given string, for instance to extend a message with a signature.
+Input values: +
+This block converts a string into a number if this is possible. So if a string contains only numbers, this block can convert the string into a number. If the block does not contain numbers, this block will pass »NaN« when used in th Open Roberta Lab simulation and may have a different + behavior depending on the programming language of the robot you are currently using. If the string starts with numbers but then contains other characters that are not numbers, this block will pass only the numbers and stop as soon as the first character is in the string. So, as an example, this block makes the number 52 out of the string »52abcd«. +
+Options and input values: +
+Return values: +
+This block converts a letter or a character from a character string into the corresponding ASCII number. Each character has an associated number in the ASCII table. For example, a lower-case »a« is converted into the number 97.
+Options and input values: +
+Return values: +
+The block »empty list« creates a list with no content.The block »list« generates a list with some predefined values.
+This block may only be used in the context of a »set variable« block.
+Using »+« or »−« enables you to extend or reduce the list at its end.
+Settings and input values: +
+Return value: +
+The »repeat element in list« block generates a list of equal elements.
+Settings and input values: +
+Return value: +
+The »length of« block returns a value which is the length of the list given as parameter. An empty list has a length of 0.
+Input value: +
+Return value: +
+A list given as parameter will be checked whether it is empty.
+Input value: +
+Return value: +
+A list is searched for an item. If the item is in the list, the list position will be returned. If the item is not in the list the result is -1.
+Settings and input values: +
+Return value: +
+Number, indicating the position where the element was found in the list.
+Note: Counting list positions will start with 0.
This block accesses an item of a list. Depending on the settings this item may be altered.
+A list is given as parameter. Then a drop-down-list specifies what will happen to the list item under consideration.
+Settings: +
+Number, indicating the list position. This input value is not required if »first«, »last« or »random« was selected as position.
+Note: Counting of list positions starts with 0.
Return value: +
+List element that has been found at the specified list position; »undefined«, if the list position does not exist.
+With selection of »remove« there is no return value; instead the list will be shortened by this list element.
In a list given as input parameter one specified element will be replaced by a new value.
+Settings and input values: +
+From a list given as parameter a sublist will be created. The sublist contains all those elements that match the further specifications of the block.
+Settings and input values: +
+Number, indicating the list position. This input value is not required if »first« has been selected.
+Note: Counting of list positions starts with 0.
Number, indicating the list position. This input value is not required if »last« has been selected.
+Note: Counting of list positions starts with 0.
Return value: +
+With this block you can choose from a pool of predefined colours for your robot.
+options: +
+Return value: +
+With this block you can choose from a pool of predefined colours for your robot.
+options: +
+Return value: +
+With this block you can choose from a pool of predefined colours for your robot.
+options: +
+Return value: +
+With this block you can create your own colour by mixing red, green and blue.
+Input values: +
+Robots often do not recognise the exact colour tone precisely. The lighting conditions can cause a colour to be perceived as too dark or too light. This block allows you to set a tolerance range for the colour to be detected, so that every shade of red, for example, is detected as red.
+Input values: +
+Using the block »set variable« will assign a value to a variable. Depending on the variable type the value may be assigned by an input connector.
+Settings and input value: +
+Using the block »get variable« returns the value of a variable to another block.The type of the output parameter is equal to the type that has been assigned to the variable in the »start« block.
+Settings:
+
Return value:
+
In a function block with/without input parameter and without return parameter a sequence of program statements will be condensed. The input parameters will be determined by the local variables of the function block. Local variables may be generated by using the »+« sign of the function block. Local variables will not be initialized.
+If a function block contains an if-block the function may be terminated before reaching it's end.
+The function block is available in the »Functions« category immediately after its definition. Using function blocks improves the readability of complex programs.
+Settings: +
+The name of a function block has to start with a lower case letter. Special characters are not allowed in a function block name.
+If the function block defines input parameters (local variables), all the parameter slots have to be occupied when calling the function.
+In a function block with/without input parameter and with return parameter a sequence of program statements will be condensed. The input parameters will be determined by the local variables of the function block. Local variables may be generated by using the »+« sign of the function block. Local variables will not be initialized. After running through all the blocks of the function a value will be returned.
+If a function block contains an if-block the function may be terminated before reaching it's end. An alternative value may be returned by the if-block.
+The function block is available in the »Functions« category immediately after its definition. Using function blocks improves the readability of complex programs.
+Settings: +
+Return value: +
+The if statement within a function is of special importance. As the function sequence meets an if statement the validity of the condition will be checked.
+Settings and input values: +
+Return value: +
+With this block you can call a previous defined function in your program.
+Input values: +
+With this block you can call a previous defined function in your program.
+Input values: +
+Return value: +
+Cada programa comienza con el bloque rojo "Inicio del programa".
Este bloque está siempre disponible en el Open Roberta Lab y no se puede borrar. El pequeño triángulo debajo del bloque de inicio se llama "conector de secuencia". El primer bloque que desee utilizar se conectará mediante el "conector de secuencia" al bloque de inicio. El color del conector de secuencia cambia a amarillo cuando un bloque adecuado entra en su rango.
Ajustes:
Cada programa comienza con el bloque rojo "Inicio del programa".
Este bloque está siempre disponible en el Open Roberta Lab y no se puede borrar. El pequeño triángulo debajo del bloque de inicio se llama "conector de secuencia". El primer bloque que desee utilizar se conectará mediante el "conector de secuencia" al bloque de inicio. El color del conector de secuencia cambia a amarillo cuando un bloque adecuado entra en su rango.
Ajustes:
Si se han creado variables globales:
Con el bloque "mover distancia" puedes programar la dirección y la velocidad del robot. La velocidad del robot se establece en el parámetro "velocidad". Una vez ejecutado el bloque, los motores se paran automáticamente.
El bloque "distancia de accionamiento" controla los dos motores del robot al mismo tiempo, lo que significa que los ajustes que realices aquí se aplican a los dos motores del robot. Si las acciones del robot no se corresponden con los ajustes del bloque al ejecutar el programa, comprueba los ajustes de configuración del robot, especialmente el diámetro de las ruedas y el ancho de la pista.
Ajustes y valores de entrada:
Con el bloque "mover distancia" puedes programar la dirección y la velocidad del robot. La velocidad del robot se establece en el parámetro "velocidad". Una vez ejecutado el bloque, los motores se paran automáticamente.
El bloque "distancia de accionamiento" controla los dos motores del robot al mismo tiempo, lo que significa que los ajustes que realices aquí se aplican a los dos motores del robot. Si las acciones del robot no se corresponden con los ajustes del bloque al ejecutar el programa, comprueba los ajustes de configuración del robot, especialmente el diámetro de las ruedas y el ancho de la pista.
Ajustes y valores de entrada:
Con el bloque "drive" puedes programar la dirección y también la velocidad de tu robot. El robot se mueve hasta que se detiene o hasta que otro bloque especifica nuevos parámetros de conducción. La velocidad de conducción puede ajustarse en el campo "velocidad".
Opciones y argumentos:
El bloque "para" detiene los motores inmediatamente.
El bloque "steer ... velocidad izquierda ... velocidad derecha ..." programa el robot para trazar una curva estableciendo distintas velocidades para el motor izquierdo y el derecho. La configuración del robot influye en el radio de la curva en función de la distancia y el diámetro de las ruedas. El sentido de giro definirá la dirección de conducción.
Ajustes y valores de entrada:
El bloque "steer ... velocdidad izquierda ... velocidad derecha ... distancia ..." programa el robot para trazar una curva estableciendo distintas velocidades para el motor izquierdo y el derecho y también una distancia relacionada con el centro entre ambas ruedas. La configuración del robot influye en el radio de la curva en función de la distancia y el diámetro de las ruedas. El sentido de giro definirá la dirección de conducción.
Ajustes y valores de entrada:
El bloque "steer ... velocdidad izquierda ... velocidad derecha ... distancia ..." programa el robot para trazar una curva estableciendo distintas velocidades para el motor izquierdo y el derecho y también una distancia relacionada con el centro entre ambas ruedas. La configuración del robot influye en el radio de la curva en función de la distancia y el diámetro de las ruedas. El sentido de giro definirá la dirección de conducción.
Ajustes y valores de entrada:
Con el bloque "grado de giro" programas la dirección (derecha/izquierda) en la que girará tu robot. Además de la dirección también puedes programar los "grados", lo que te permite programar cuántos grados debe girar tu robot (alrededor de su eje). Esto significa que puedes hacer una rotación completa programando un giro de 360 grados.
El bloque "grados de giro" controla ambos motores del robot de forma que éste gire alrededor de su propio eje. Si las acciones del robot no se corresponden con los ajustes del bloque al ejecutar el programa, comprueba los ajustes de configuración del robot EV3, especialmente el diámetro de las ruedas y el ancho de la pista.
Ajustes y valores de entrada:
Con el bloque "grado de giro" programas la dirección (derecha/izquierda) en la que girará tu robot. Además de la dirección también puedes programar los "grados", lo que te permite programar cuántos grados debe girar tu robot (alrededor de su eje). Esto significa que puedes hacer una rotación completa programando un giro de 360 grados.
El bloque "grados de giro" controla ambos motores del robot de forma que éste gire alrededor de su propio eje. Si las acciones del robot no se corresponden con los ajustes del bloque al ejecutar el programa, comprueba los ajustes de configuración del robot EV3, especialmente el diámetro de las ruedas y el ancho de la pista.
Ajustes y valores de entrada:
Con el bloque "gira" estableces la dirección (derecha/izquierda) en la que girará el robot. El robot gira hasta que se detiene o se utiliza otro bloque para conducir. Puedes ajustar la velocidad en el campo de parámetros del bloque "velocidad".
"girar" controla los dos motores del robot al mismo tiempo, por lo que el robot gira en el acto. Si las acciones del robot EV3 no se corresponden con los ajustes del bloque al ejecutar el programa, compruebe los ajustes de configuración del robot EV3, especialmente el diámetro de las ruedas y el ancho de la pista.
Ajustes y valores de entrada:
+
Con el bloque "gira" estableces la dirección (derecha/izquierda) en la que girará el robot. El robot gira hasta que se detiene o se utiliza otro bloque para conducir. Puedes ajustar la velocidad en el campo de parámetros del bloque "velocidad".
"girar" controla los dos motores del robot al mismo tiempo, por lo que el robot gira en el acto. Si las acciones del robot EV3 no se corresponden con los ajustes del bloque al ejecutar el programa, compruebe los ajustes de configuración del robot EV3, especialmente el diámetro de las ruedas y el ancho de la pista.
Ajustes y valores de entrada:
Si su robot gira en la dirección equivocada, entonces los motores están conectados a los puertos equivocados. Simplemente intercambia los puertos y tu robot girará en la dirección correcta.
Con el bloque "motor ... rotación" puedes programar la velocidad del motor seleccionado. El robot arranca el motor seleccionado y lo hace girar hasta realizar el número de rotaciones o grados especificado.
Opciones y Argumentos: +
Si su robot gira en la dirección equivocada, entonces los motores están conectados a los puertos equivocados. Simplemente intercambia los puertos y tu robot girará en la dirección correcta.
Con el bloque "motor ... rotación" puedes programar la velocidad del motor seleccionado. El robot arranca el motor seleccionado y lo hace girar hasta realizar el número de rotaciones o grados especificado.
Opciones y Argumentos:
Con el bloque "motor ... activado" puedes programar la velocidad del motor seleccionado. El robot arranca el motor seleccionado, hasta que se detiene u otro bloque especifica nuevos parámetros de movimiento.
Opciones y Argumentos:
+
Con el bloque "motor ... activado" puedes programar la velocidad del motor seleccionado. El robot arranca el motor seleccionado, hasta que se detiene u otro bloque especifica nuevos parámetros de movimiento.
Opciones y Argumentos:
Con el bloque "para motor" se apaga un motor seleccionado. Puede decidir que el motor se apague lentamente (flotación) o que se pare inmediatamente
Opciones de configuración:
+
Con el bloque "para motor" se apaga un motor seleccionado. Puede decidir que el motor se apague lentamente (flotación) o que se pare inmediatamente
Opciones de configuración:
Este bloque controla los servomotores de tu Robot. Elige qué servomotor quieres accionar y en qué grado debe moverse.
Opciones: +
Este bloque controla los servomotores de tu Robot. Elige qué servomotor quieres accionar y en qué grado debe moverse.
Opciones:
Con el bloque "mostrar texto" puedes mostrar texto y números en la pantalla de tu robot. También puede especificar en qué columna y fila debe mostrarse el texto o los números en la pantalla del robot.
Valores de entrada:
Con este bloque, puede borrar lo que se muestra en la pantalla.
Con este bloque puedes mostrar texto en un Monitor Serie a través de USB.
Valor de entrada:
Con este bloque, puede borrar lo que se muestra en la pantalla.
Con este bloque puedes mostrar texto en un Monitor Serie a través de USB.
Valor de entrada:
Puedes utilizar este bloque para que el robot reproduzca un sonido del menú de selección.
Opciones de selección:Puedes utilizar este bloque para que el robot reproduzca un sonido del menú de selección.
Opciones de selección:Con el bloque "switch brick light" puedes programar la luz de fondo de la pantalla. La luz de ladrillo del robot permanece encendida hasta que la vuelvas a programar.
Ajustes:
Con el bloque "apagar luz de ladrillo" puedes apagar la luz de ladrillo.
Ajustes:
-Con el bloque «set LED luminosidad % ...» se puede ajustar la luminosidad del LED.
Opciones de ajuste:
Con este Bloque puedes consultar uno de los botones de visualización de tu Robot, si está siendo pulsado en ese momento.
Opciones:
Valor de retorno:
Con este bloque, puede utilizar el sensor de infrarrojos de su robot para reconocer una línea. Un área clara de la línea se lee como «0», un área oscura se lee como «1».
Opciones:
+Con este bloque, puede utilizar el sensor de infrarrojos de su robot para reconocer una línea. Un área clara de la línea se lee como «0», un área oscura se lee como «1».
Opciones:
Valor de retorno:
@@ -77,34 +76,34 @@El bloque «Ajustar temporizador» permite poner a cero los temporizadores internos (1 a 5).
Opciones de configuración:
El bloque «obtener color cámara» da salida al color de una zona de la imagen capturada definida en la configuración.
Valor de retorno:
+
El bloque «obtener color cámara» da salida al color de una zona de la imagen capturada definida en la configuración.
Valor de retorno:
Con el bloque «obtener número de líneas cámara», puedes utilizar la cámara para contar las líneas reconocidas por el robot. Se pueden reconocer un máximo de 4 líneas al mismo tiempo.
Valor de retorno: +
Con el bloque «obtener número de líneas cámara», puedes utilizar la cámara para contar las líneas reconocidas por el robot. Se pueden reconocer un máximo de 4 líneas al mismo tiempo.
Valor de retorno:
El bloque «Dar información de la línea #» puede utilizarse para informar a otro bloque de la posición de la línea en la imagen de la cámara y de la anchura reconocida. El máximo de 4 imágenes reconocidas por la cámara se indexan con los números 0-3.
Tenga en cuenta que la primera línea tiene el índice «0» y la cuarta el índice «3».
Valor de entrada: +
El bloque «Dar información de la línea #» puede utilizarse para informar a otro bloque de la posición de la línea en la imagen de la cámara y de la anchura reconocida. El máximo de 4 imágenes reconocidas por la cámara se indexan con los números 0-3.
Tenga en cuenta que la primera línea tiene el índice «0» y la cuarta el índice «3».
Valor de entrada:
El bloque «obtener color por línea #» puede utilizarse para indicar a otro bloque el color de una línea en el índice seleccionado (0-3).
Tenga en cuenta que la primera línea tiene el índice «0» y la cuarta el índice «3».
Valor de entrada: +
El bloque «obtener color por línea #» puede utilizarse para indicar a otro bloque el color de una línea en el índice seleccionado (0-3).
Tenga en cuenta que la primera línea tiene el índice «0» y la cuarta el índice «3».
Valor de entrada:
El bloque «obtener información del balón cámara» puede utilizarse para informar a otro bloque de la posición de la pelota en la imagen de la cámara y de su diámetro medido por el robot.
Para que una bola sea reconocida, su color debe estar definido en la configuración.
Valor de retorno:
El bloque «obtener información del balón cámara» puede utilizarse para informar a otro bloque de la posición de la pelota en la imagen de la cámara y de su diámetro medido por el robot.
Para que una bola sea reconocida, su color debe estar definido en la configuración.
Valor de retorno:
El bloque «obtener movimiento cámara» puede utilizarse para indicar a otro bloque si el robot detecta movimiento en la imagen de la cámara.
Valor de retorno:
El bloque «obtener movimiento cámara» puede utilizarse para indicar a otro bloque si el robot detecta movimiento en la imagen de la cámara.
Valor de retorno:
El bloque «Mini-Switch ... ¿pulsado?» puede utilizarse para indicar a otro bloque si el botón seleccionado está presionado.
Valor de entrada:
El bloque «Mini-Switch ... ¿pulsado?» puede utilizarse para indicar a otro bloque si el botón seleccionado está presionado.
Valor de entrada:
El bloque «Dar valor % sensor de luz» puede utilizarse para indicar a otro bloque la intensidad de la luz que incide sobre el sensor de luz del robot.
Valor de retorno: +
El bloque «Dar valor % sensor de luz» puede utilizarse para indicar a otro bloque la intensidad de la luz que incide sobre el sensor de luz del robot.
Valor de retorno:
Con el bloque «Dar ... Sensor ambiental» se puede comunicar un valor medido específico del sensor ambiental a un bloque. El sensor ambiental tiene varias funciones. Puede medir la temperatura, la humedad, la presión atmosférica y la calidad del aire interior.
Valor de retorno: @@ -271,18 +270,18 @@
Valor de retorno:
Con este bloque puedes establecer el peso de una conexión entre dos neuronas que están directamente conectadas.
Opciones y valores de entrada:
+
Con este bloque puedes establecer el peso de una conexión entre dos neuronas que están directamente conectadas.
Opciones y valores de entrada:
Con este bloque puedes establecer el sesgo de una neurona.
Opciones y valores de entrada:
Con este bloque puedes establecer el sesgo de una neurona.
Opciones y valores de entrada:
Con este bloque puede consultar el valor actual del peso de una conexión entre dos neuronas que están directamente conectadas.
Opciones:
+
Con este bloque puede consultar el valor actual del peso de una conexión entre dos neuronas que están directamente conectadas.
Opciones:
Valor de retorno:
Con este bloque puede consultar el sesgo de una neurona.
Opciones:
+
Con este bloque puede consultar el sesgo de una neurona.
Opciones:
Valor de retorno:
@@ -385,10 +384,10 @@
Valor de retorno:
Una secuencia de instrucciones se resume en un bloque de funciones sin/con valores de entrada y de retorno. Los valores de entrada se definen mediante las variables locales del bloque de funciones. El signo «+» puede utilizarse para crear variables locales como valores de entrada para el bloque de funciones. Las variables locales no se inicializan.
Si se incorpora una consulta if (véase más adelante) en un bloque de funciones, la función puede cancelarse antes de tiempo.
Der Funktionsblock steht nach seiner Definition als zusätzlicher Block in der Kategorie »Funktion« zur Verfügung. Auf diese Weise kann die Lesbarkeit komplexer Programme wesentlich vereinfacht werden.
Opciones de configuración:
+
Una secuencia de instrucciones se resume en un bloque de funciones sin/con valores de entrada y de retorno. Los valores de entrada se definen mediante las variables locales del bloque de funciones. El signo «+» puede utilizarse para crear variables locales como valores de entrada para el bloque de funciones. Las variables locales no se inicializan.
Si se incorpora una consulta if (véase más adelante) en un bloque de funciones, la función puede cancelarse antes de tiempo.
Der Funktionsblock steht nach seiner Definition als zusätzlicher Block in der Kategorie »Funktion« zur Verfügung. Auf diese Weise kann die Lesbarkeit komplexer Programme wesentlich vereinfacht werden.
Opciones de configuración:
Una secuencia de instrucciones se resume en un bloque de funciones con/sin un valor de entrada y con un valor de retorno. El signo «+» puede utilizarse para crear variables locales como valores de entrada para el bloque de funciones. Una vez ejecutadas todas las instrucciones, se devuelve un valor como valor de la función.
Si se incorpora una consulta if a un bloque de función, la función puede cancelarse antes de tiempo y devolverse un valor de función alternativo.
Tras su definición, el bloque de función está disponible como bloque adicional en la categoría «Función». Esto puede simplificar considerablemente la legibilidad de programas complejos.
Posibilidades de ajuste:
Una secuencia de instrucciones se resume en un bloque de funciones con/sin un valor de entrada y con un valor de retorno. El signo «+» puede utilizarse para crear variables locales como valores de entrada para el bloque de funciones. Una vez ejecutadas todas las instrucciones, se devuelve un valor como valor de la función.
Si se incorpora una consulta if a un bloque de función, la función puede cancelarse antes de tiempo y devolverse un valor de función alternativo.
Tras su definición, el bloque de función está disponible como bloque adicional en la categoría «Función». Esto puede simplificar considerablemente la legibilidad de programas complejos.
Posibilidades de ajuste:
Valor de retorno: