EasyManuals Logo

LEGO MINDSTORMS Robots User Manual

LEGO MINDSTORMS Robots
226 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #171 background image
Page 188
sub initialize() {
SetSensor(BUMP_SENSOR, SENSOR_TOUCH);
SetSensor(LIGHT_SENSOR, SENSOR_LIGHT);
ClearMessage();
score = 0;
Fwd(OUT_B);
SelectDisplay(5);
calibrateLightSensor();
}
#define NUMBER_OF_SAMPLES 10
int i;
int runningTotal;
void calibrateLightSensor() {
// Take an average light reading.
i = 0;
runningTotal = 0;
while (i < NUMBER_OF_SAMPLES) {
runningTotal += LIGHT_SENSOR;
Wait(10);
i += 1;
}
averageLight = runningTotal / NUMBER_OF_SAMPLES;
}
Online Resources
mattdm's Mindstorms stuff
http://www.mattdm.org/mindstorms/
This is the original RoboTag web page, created by Matthew Miller. It contains the original source code and a couple of movies of RoboTag in action.
Brooks' Subsumption Architecture
http://ai.eecs.umich.edu/cogarch3/Brooks/Brooks.html
This page has some background on subsumption architecture. If you really want to learn more, however, you should look up Brooks' papers; they're an excellent read.
Page 189
10
legOS

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the LEGO MINDSTORMS Robots and is the answer not in the manual?

LEGO MINDSTORMS Robots Specifications

General IconGeneral
Product LineLEGO MINDSTORMS
CategoryToy
Age Range10+
Batteries RequiredYes
Memory64 MB RAM, 16 MB Flash
ConnectivityBluetooth, USB
SensorsTouch, Color, Gyro
Battery TypeAA
Interactive FeaturesProgrammable, Remote Control
App CompatibilityiOS, Android
ProcessorARM9
Pieces Count601
Battery Count6
App NameLEGO MINDSTORMS EV3 Programmer App

Related product manuals