InO-Bot
An InO-Bot is a turtle-like robot, which Logo talks to just as it would talk to a turtle.
Logo does not TRACE or STEP these properties, but you can monitor them with WHEN or WHENEVER.
Logo cannot create an INOBOT directly; The Bluetooth connection dialog creates a turtle named “INOBOT” when connecting to an InO-Bot. The turtle takes the shape of an InO-Bot and offers the additional properties listed below.
BATTERY
Part of: INOBOT
Reports the battery level of InO-Bot.
Syntax
GPROP "INOBOT "BATTERY
Description
BATTERY reports the battery level of the internal InO-Bot battery in Volts.
Examples
; Connect an InO-Bot with Bluetooth GPROP “INOBOT “BATTERY Result: 60
CALIBRATION
Part of: INOBOT
Controls InO-Bot’s calibration factors for turns and movements.
Syntax
GPROP "INOBOT "CALIBRATION
PPROP "INOBOT "CALIBRATION list
Description
Most often, Ino-Bot needs to be calibrated somewhat. You can use this property to make the bot’s movements and turns more accurate. This property is a two-element list. The first element is a turn adjustment factor, and the second element is a movement adjustment factor. Initially, both values are set to 1.
Examples
; Connect an InO-Bot with Bluetooth GPROP “INOBOT “CALIBRATION Result: [1 1]
CONNECTOR
Part of: INOBOT
Controls InO-Bot’s external connector.
Syntax
GPROP "INOBOT "CONNECTOR
PPROP "INOBOT "CONNECTOR name
Description
InO-Bot has a small connector of the right side that can be used to attach a secondary motor, a light, or the like. This property controls the setting of this connector. Its input can be one of the values FORWARD, BACK, or STOP.
Examples
; Connect an InO-Bot with Bluetooth GPROP “INOBOT “CONNECTOR Result: FORWARD
DISTANCE
Part of: INOBOT
Reports InO-Bot’s distance to an obstacle.
Syntax
GPROP "INOBOT "DISTANCE
Description
DISTANCE reports the distance to an obstacle in centimeters. InO-Bot uses ultrasound to measure the distance, with a reasonable amount of inaccuracy.
Examples
; Connect an InO-Bot with Bluetooth GPROP “INOBOT “DISTANCE Result: 99
FRONTLEFT
Part of: INOBOT
Reports the status of InO-Bot’s front left obstacle sensor.
Syntax
GPROP "INOBOT "FRONTLEFT
Description
FRONTLEFT reports the status of InO-Bot’s front left obstacle sensor as either TRUE or FALSE.
Examples
; Connect an InO-Bot with Bluetooth GPROP “INOBOT “FRONTLEFT Result: FALSE
FRONTRIGHT
Part of: INOBOT
Reports the status of InO-Bot’s front right obstacle sensor.
Syntax
GPROP "INOBOT "FRONTRIGHT
Description
FRONTRIGHT reports the status of InO-Bot’s front right obstacle sensor as either TRUE or FALSE.
Examples
; Connect an InO-Bot with Bluetooth GPROP “INOBOT “FRONTRIGHT
INFRARED
Part of: INOBOT
Controls InO-Bot’s infrared sensor.
Syntax
GPROP "INOBOT "INFRARED
Description
InO-Bot has a built-in infrared emitter and sensor. You can turn the emitter on or off by setting the INFRARED property to TRUE or FALSE. If you read the INFRARED property, it reports a value between 0 and 1 according to the strength of the infrared signal.
Examples
; Connect an InO-Bot with Bluetooth GPROP “INOBOT “INFRARED Result: 0.5
LIGHT
Part of: INOBOT
Reports the status of InO-Bot’s light sensor.
Syntax
GPROP "INOBOT "LIGHT
Description
LIGHT reports the status of InO-Bot’s light sensors as a value between 0 and 1.
Examples
; Connect an InO-Bot with Bluetooth GPROP “INOBOT “LIGHT Result: 0.7
LIGHTS
Part of: INOBOT
Controls InO-Bot’s headlights.
Syntax
GPROP "INOBOT "LIGHTS
PPROP "INOBOT "LIGHTS list
Description
The LIGHTS property reports and sets the level of InO-Bot’s headlights. Its input is a list of two values between 0 and 1 for the left and right headlight, where 0 turns the headlight off, and 1 turns it on at full intensity.
Note that Logo assumes that the headlights are turned off when you connect. InO-Bot does not transmit information about its headlights.
Examples
; Connect an InO-Bot with Bluetooth PPROP “INOBOT “LIGHTS [1 1]
LINELEFT
Part of: INOBOT
Reports the status of InO-Bot’s left line sensor.
Syntax
GPROP "INOBOT "LINELEFT
Description
LINELEFT reports the status of InO-Bot’s left line sensor as either TRUE or FALSE.
Examples
; Connect an InO-Bot with Bluetooth GPROP “INOBOT “LINELEFT Result: FALSE
LINERIGHT
Part of: INOBOT
Reports the status of InO-Bot’s right line sensor.
Syntax
GPROP "INOBOT "LINERIGHT
Description
LINELEFT reports the status of InO-Bot’s right line sensor as either TRUE or FALSE.
Examples
; Connect an InO-Bot with Bluetooth GPROP “INOBOT “LINERIGHT Result: FALSE
NOISELEVEL
Part of: INOBOT
Reports InO-Bot’s microphone noise level.
Syntax
GPROP "INOBOT "NOISELEVEL
Description
NOISELEVEL reports the level of noise that InO-Bot’s microphone records. The more noise it records, the higher NOISELEVEL NOISE reports. Note that the noise level increases when InO-Bot’s motors are turned on.
Examples
; Connect an InO-Bot with Bluetooth GPROP “INOBOT “NOISELEVEL Result: 0.33
REARLEFT
Part of: INOBOT
Reports the status of InO-Bot’s rear left obstacle sensor.
Syntax
GPROP "INOBOT "REARLEFT
Description
REARLEFT reports the status of InO-Bot’s rear left obstacle sensor as either TRUE or FALSE.
Examples
; Connect an InO-Bot with Bluetooth GPROP “INOBOT “REARLEFT Result: FALSE
REARRIGHT
Part of: INOBOT
Reports the status of InO-Bot’s rear right obstacle sensor.
Syntax
GPROP "INOBOT "REARRIGHT
Description
REARRIGHT reports the status of InO-Bot’s rear right obstacle sensor as either TRUE or FALSE.
Examples
; Connect an InO-Bot with Bluetooth GPROP “INOBOT “REARRIGHT Result: FALSE