User Tools

Site Tools


weblogo:properties:inobot

InO-Bot Properties

inobot.jpgAn InO-Bot is a turtle-like robot, which Logo talks to just as talking to a turtle.

Logo does not TRACE or STEP these properties.

BATTERY

Reports the battery level of InO-Bot.

Description

BATTERY reports the battery level of the internal InO-Bot battery in Volts.

Example

GPROP "INOBOT "BATTERY
Result: 3.7

CALIBRATION

Controls InO-Bot's calibration factors for turns and movements.

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.

Example

GPROP "INOBOT "CALIBRATION
Result: [1 1]
PPROP "INOBOT "CALIBRATION LIST 85/90 1

CONNECTOR

Controls InO-Bot's external connector.

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 the values FORWARD, BACK, or STOP.

Example

GPROP "INOBOT "CONNECTOR
Result: STOP

DISTANCE

Reports InO-Bot's distance to an obstacle.

Description

DISTANCE reports the distance to an obstacle in centimeters. InO-Bot uses ultrasound to measure the distance, with a reasonable amount of inaccuracy.

Example

GPROP "INOBOT "DISTANCE
Result: 125

FRONTLEFT

Reports the status of InO-Bot's front left obstacle sensor.

Description

FRONTLEFT reports the status of InO-Bot's front left obstacle sensor as either TRUE or FALSE.

Example

GPROP "INOBOT "FRONTLEFT
Result: FALSE

FRONTRIGHT

Reports the status of InO-Bot's front right obstacle sensor.

Description

FRONTRIGHT reports the status of InO-Bot's front right obstacle sensor as either TRUE or FALSE.

Example

GPROP "INOBOT "FRONTRIGHT
Result: FALSE

INFRARED

Controls InO-Bot's infrared sensor.

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.

Example

GPROP "INOBOT "INFRARED
Result: 0.58

LIGHT

Reports the status of InO-Bot's light sensor.

Description

LIGHT reports the status of InO-Bot's light sensors as a value between 0 and 1.

Example

GPROP "INOBOT "LIGHT
Result: 0.38

LIGHTS

Controls InO-Bot's headlights.

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.

Example

; turn both headlights on
PPROP "INOBOT "LIGHTS [1 1]
; Use half intensity left, and full intensity right
PPROP "INOBOT "LIGHTS [0.5 1]
; Turn them off
PPROP "INOBOT "LIGHTS [0 0]

LINELEFT

Reports the status of InO-Bot's left line sensor.

Description

LINELEFT reports the status of InO-Bot's left line sensor as either TRUE or FALSE.

Example

GPROP "INOBOT "LINELEFT
Result: FALSE

LINERIGHT

Reports the status of InO-Bot's right line sensor.

Description

LINELEFT reports the status of InO-Bot's right line sensor as either TRUE or FALSE.

Example

GPROP "INOBOT "LINERIGHT
Result: FALSE

NOISELEVEL

Reports InO-Bot's microphone noise level.

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.

Example

GPROP "INOBOT "NOISELEVEL
Result: 15

REARLEFT

Reports the status of InO-Bot's rear left obstacle sensor.

Description

REARLEFT reports the status of InO-Bot's rear left obstacle sensor as either TRUE or FALSE.

Example

GPROP "INOBOT "REARLEFT
Result: FALSE

REARRIGHT

Reports the status of InO-Bot's rear right obstacle sensor.

Description

REARRIGHT reports the status of InO-Bot's rear right obstacle sensor as either TRUE or FALSE.

Example

GPROP "INOBOT "REARRIGHT
Result: FALSE
weblogo/properties/inobot.txt · Last modified: 2018/12/30 03:41 by michael