Page not found :(
The requested page could not be found. Please check your spelling, or if a link led to this page, please let us know so we can fix the link.
All Bluetooth robots must be connected to Logo with the Bluetooth selection dialog available at the “Tools/Connect to Bluetooth Device” menu item or the SELECT.BLUETOOTH command.
Also: BLUEBOTP, BLUEBOT.OPEN
Tests if the Blue-Bot is connected and ready to receive commands.
BLUEBOT?
BLUEBOT? reports TRUE if it can talk to a Blue-Bot.
For backwards compatibility, BLUEBOT.OPEN is synonymous to BLUEBOT?.
BLUEBOT? Result: FALSE
Reports Blue-Bot’s battery level.
BLUEBOT.BATTERY
BLUEBOT.BATTERY reports Blue-Bot’s battery level, which is a number between 0 and 1. It may take a few seconds before Blue-Bot actually reports the battery level; the command would report 0 in that case.
BLUEBOT.BATTERY Result: 0.8
Clears all commands stored in Blue-Bot’s memory.
BLUEBOT.CLEAR
BLUEBOT.CLEAR clears all commands stored in a Blue-Bot. This is equivalent to pressing Blue-Bot’s CLEAR button, which is disabled when Blue-Bot is connected.
Disconnects the Blue-Bot from Logo.
BLUEBOT.CLOSE
BLUEBOT.CLOSE closes the connection to Blue-Bot. After a while, Blue-Bot turns off the blue lights, indicating that it is available for a new connection; it also turns its buttons back on.
Executes commands stored in Blue-Bot’s memory.
BLUEBOT.GO
BLUEBOT.GO executes all commands that a previous BLUEBOT.WRITE command has stored into Blue-Bot. This is equivalent to pressing Blue-Bot’s GO button, which is disabled when Blue-Bot is connected.
Executes Blue-Bot commands.
BLUEBOT.RUN procedurename
BLUEBOT.RUN [list of commands]
BLUEBOT.RUN transmits a list of commands to Blue-Bot and lets Blue-Bot execute them immediately. Use the BLUEBOT.WRITE and BLUEBOT.GO commands if you want Blue-Bot to repeatedly execute a list of stored commands.
If you call BLUEBOT.RUN with a procedure name, BLUEBOT.RUN downloads the contents of the procedure to Blue-Bot. Note that the use of variables like procedure inputs is not permitted.
Blue-Bot stores a maximum of up to 200 commands. Please note that a Logo
command may consume more than one Blue-Bot command. If you get an error
message that your code is too complex, consider using a repeat loop, or
fewer movements. A FD 10 command, for example, would store 10 FD
commands into Blue-Bot’s memory.
The following table provides an overview over all available Logo commands that Blue-Bot understands.
| FORWARD | Blue-Bot moves forward in fixed-size units. A value of 1 does not mean a single pixel as the screen turtle, but one Blue-Bot movement unit, which is about 6 inches (15 cm). If you, for example, use the command FD 2, Blue-Bot will move forward one unit, stop briefly, and then move forward a second unit. |
| BACK | As with the FORWARD command, Blue-Bot moves backwards in the same way that it moves forward. If you use negative values as input to BACK, Blue-Bot moves forward and vice versa. |
| LEFT | Blue-Bot turns left or right in 45-degree increments. Logo calculates the amount to turn in as few commands as possible. Therefore, Blue-Bot may make brief stops while turning. |
| RIGHT | The same limitations that are valid for the LEFT command also apply to this command. As with FORWARD and BACK, negative values make Blue-Bot turn in the opposite direction. |
| WAIT | This command corresponds to Blue-Bot’s Pause button. Blue-Bot pauses in units of about two seconds. Therefore, the input to WAIT (which is a millisecond value) should be a multiple of 2000. Logo rounds wait times to the nearest multiple of two seconds. |
| REPEAT | Blue-Bot has a simple built-in repeat feature that lets it execute a list of commands between 1 and 16 times. The REPEAT command cannot be nested. |
| FLASH | This Blue-Bot-only command flashes Blue-Bot’s eyes. |
BLUEBOT.RUN [REPEAT 4 [FD 1 RT 90]]
Downloads a procedure to Blue-Bot.
BLUEBOT.WRITE procedure-name
BLUEBOT.WRITE [runlist]
BLUEBOT.WRITE transmits a procedure to Blue-Bot. Its input is the name of the procedure to transmit. It does not run these commands; use the BLUEBOT.GO command to execute a stored list of commands.
TO MY.BLUEBOT REPEAT 4 [FD 1 RT 90] END MY.BLUEBOT defined BLUEBOT.WRITE “MY.BLUEBOT BLUEBOT.GO
Controls a robot’s LEDs.
LED word-or-list color
(LED word-or-list color duration)
LED controls the LEDs of a robot. Depending on the robot type, its first inputs can be a word or a list. The second input is a color name or color value.
If a third input is given, it is the duration in milliseconds that each of the LEDs should be turned on. Note that not all LEDs are turned on at the same time, but one after another, staying on for the given time. This allows for interesting light effects.
InO-Bot: InO-Bot has eight full-color LEDs. The first input is either a number from 1 to 8, or a list containing the numbers of the LEDs to set. The second input is a color name or a color value.
; InO-Bot example ; set LED #1 to red LED 1 “RED ; set LEDs 2, 3, and 4 to gold for half a second each (LED [2 3 4] “GOLD 500) ; turn all LEDs off LED [1 2 3 4 5 6 7 8] “BLACK
Controls a robot’s motors.
MOTORS speed
MOTORS controls the speed or a robot’s motors. It input is a value or a list of values between -1 and 1. The value 0 causes the motor to stop, and the value 1 turns on the motors at full speed. Positive values causes the motor to move forward, while negative values cause the motor to move backwards.
Currently, all floor robots accept a single number that controls the speed of all motors. Use MOTORS 0 to stop the motors.
MOTORS 0.5 WAIT 1000 MOTORS 0
Selects a Bluetooth device.
SELECT.BLUETOOTH
SELECT.BLUETOOTH opens the Bluetooth selection dialog and lets the user select a Bluetooth device. Its output is a two-element list. The first element is the device type, like e.g. BLUEBOT or INOBOT, and the second element is the Logo name of the device. This may be different from the first element if the user has renamed the Bluetooth device. If the user canceled the dialog, SELECT.BLUETOOTH outputs an empty list. On errors, SELECT.BLUETOOTH throws a runtime error which can be caught with the CATCH command.
SELECT.BLUETOOTH must be used in response to a user action, like clicking a button. Browser environments demand this functionality.
SELECT.BLUETOOTH Result: [BLUEBOT BETTY]
Also: TUFFBOTP, TUFFBOT.OPEN
Tests if the Tuff-Bot is connected and ready to receive commands.
TUFFBOT?
TUFFBOT? reports TRUE if Logo can talk to a Tuff-Bot.
For backwards compatibility, TUFFBOT.OPEN is synonymous to TUFFBOT?.
TUFFBOT? Result: FALSE
Reports Tuff-Bot’s battery level.
TUFFBOT.BATTERY
TUFFBOT.BATTERY reports Tuff-Bot’s battery level, which is a number between 0 and 1. It may take a few seconds before Tuff-Bot actually reports the battery level; the command would report 0 in that case.
TUFFBOT.BATTERY Result: 0.8
Programs Tuff-Bot’s buttons.
TUFFBOT.BUTTONS obstacle speed
TUFFBOT.BUTTONS programs Tuff-Bot’s obstacle avoidance and speed buttons. The first input is either TRUE or FALSE, and turns obstacle detection on or off. The second input is a value between 0 and 2, which indicates how many times Tuff-Bot’s speed button is pressed:
TUFFBOT.BUTTONS TRUE 1
Clears all commands stored in Tuff-Bot’s memory.
TUFFBOT.CLEAR
TUFFBOT.CLEAR clears all commands stored in a Tuff-Bot. This is equivalent to pressing Tuff-Bot’s CLEAR button, which is disabled when Tuff-Bot is connected. Note that Tuff-Bot’s obstacle avoidance subroutine cannot be cleared.
Disconnects the Tuff-Bot from Logo.
TUFFBOT.CLOSE
TUFFBOT.CLOSE closes the connection to Tuff-Bot. After a while, Tuff-Bot turns off the blue lights, indicating that it is available for a new connection; it also turns its buttons back on.
Executes commands stored in Tuff-Bot’s memory.
TUFFBOT.GO
TUFFBOT.GO executes all commands that a previous TUFFBOT.WRITE command has stored into Tuff-Bot. This is equivalent to pressing Tuff-Bot’s GO button, which is disabled when Tuff-Bot is connected.
Downloads an obstacle avoidance routine to Tuff-Bot.
TUFFBOT.OBSTACLE procedure-name
TUFFBOT.OBSTACLE [runlist]
TUFFBOT.OBSTACLE downloads an obstacle-avoidance subroutine to Tuff-Bot. This subroutine takes the same commands as the TUFFBOT.WRITE command. The subroutine should be short, and back up Tuff-Bot, and turin it into a different direction.
TUFFBOT.OBSTACLE [BACK 1 RT 45]
Executes Tuff-Bot commands.
TUFFBOT.RUN procedurename
TUFFBOT.RUN [list of commands]
TUFFBOT.RUN transmits a list of commands to Tuff-Bot and lets Tuff-Bot execute them immediately. Use the TUFFBOT.WRITE and TUFFBOT.GO commands if you want Tuff-Bot to repeatedly execute a list of stored commands.
If you call TUFFBOT.RUN with a procedure name, TUFFBOT.RUN downloads the contents of the procedure to Tuff-Bot. Note that the use of variables like procedure inputs is not permitted.
Tuff-Bot stores a maximum of up to 200 commands. Please note that a Logo
command may consume more than one Tuff-Bot command. If you get an error
message that your code is too complex, consider using a repeat loop, or
fewer movements. A FD 10 command, for example, would store 10 FD
commands into Tuff-Bot’s memory.
The following table provides an overview over all available Logo commands that Tuff-Bot understands.
| FORWARD | Tuff-Bot moves forward in fixed-size units. A value of 1 does not mean a single pixel as the screen turtle, but one Tuff-Bot movement unit, which is about 6 inches (15 cm). If you, for example, use the command FD 2, Tuff-Bot will move forward one unit, stop briefly, and then move forward a second unit. |
| BACK | As with the FORWARD command, Tuff-Bot moves backwards in the same way that it moves forward. If you use negative values as input to BACK, Tuff-Bot moves forward and vice versa. |
| LEFT | Tuff-Bot turns left or right in 45-degree increments. Logo calculates the amount to turn in as few commands as possible. Therefore, Tuff-Bot may make brief stops while turning. |
| RIGHT | The same limitations that are valid for the LEFT command also apply to this command. As with FORWARD and BACK, negative values make Tuff-Bot turn in the opposite direction. |
| WAIT | This command corresponds to Tuff-Bot’s Pause button. Tuff-Bot pauses in units of about two seconds. Therefore, the input to WAIT (which is a millisecond value) should be a multiple of 2000. Logo rounds wait times to the nearest multiple of two seconds. |
| REPEAT | Tuff-Bot has a simple built-in repeat feature that lets it execute a list of commands between 1 and 16 times. The REPEAT command cannot be nested. |
TUFFBOT.RUN [REPEAT 4 [FD 1 RT 90]]
Downloads a procedure to Tuff-Bot.
TUFFBOT.WRITE procedure-name
TUFFBOT.WRITE [runlist]
TUFFBOT.WRITE transmits a procedure to Tuff-Bot. Its input is the name of the procedure to transmit. It does not run these commands; use the TUFFBOT.GO command to execute a stored list of commands.
TO MY.TUFFBOT REPEAT 4 [FD 1 RT 90] END MY.TUFFBOT defined TUFFBOT.WRITE “MY.TUFFBOT TUFFBOT.GO