Chapter 14. Databases for Robots
Introduction
It is often necessary for an item of data (numeric, logic, text) to be stored away somewhere, and to be retrievable when required. The variable block is useful for this purpose, but has the disadvantage that the stored value is lost when the power is switched off. You might want to keep a value obtained during the running of a program so that it is available the next time the robot is switched on. Examples of this are settings used in calibrating the sensors, and data acquired in games programs.
Another feature that may be required is the ability to store data in an array, so that one particular item of data can be picked out simply by referring to its index (the number of its position) in the array. ...
Get Programming Lego Mindstorms NXT now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.